Profile image

AI Plane Replacer

106k hpgbproductions  one year ago
3,405 downloads
Version 1.0 Tool

This mod provides an automated process to replace aircraft files on launching the game.

By default, the game reloads a bunch of hidden aircraft files when it is started, preventing players from changing them and affecting how game missions play. However, this can be circumvented simply by modifying the aircraft files after starting the game.

Quick Start Guide

  1. Download the mod by clicking on the SPMOD option in the GitHub releases page.
  2. Install the mod and activate it in the game.
  3. Go to the AppData folder where SimplePlanes data is saved. Enter the NACHSAVE/REPLACER directory.
  4. Two files, README.TXT and REPLACER.TSV, will be available. Open the README for more information.
  5. Use the instructions to choose the AI aircraft file you want to clear, and the data you want to replace it with.

Example TSV file data (entries separated by horizontal tab characters):

__aiPlaneFile1__.xml    MyPlane.xml
__aiPlaneFile2__.xml    C:\\Users\Username\My Plane 2.xml

For aircraft testing purposes, you can also use the ReplaceAircraftFiles dev console command to reload aircraft files at any time.

My TSV implementation isn't full, it only uses string.Split(), and reads each line separately. This means it does not support line breaks and special whitespace characters. However, they cannot be added to file paths anyway, so it is good enoughtm for this application.

Danger

This mod is able to change any file you have selected, not just AI aircraft files. No support is available for the loss of any data, aircraft files or otherwise.

FAQ

Q: Some AI planes are not being replaced.
A: Check the dev console or log for error messages. This will tell you the problem. Check that:
- File names/paths are spelt correctly.
- REPLACER.TSV is in the REPLACER folder and formatted correctly.
- REPLACER.TSV does not have fields surrounded by double-quotes ( " )
- Files are not being used by a program other than this mod.
- Files are not hidden and you have permissions to modify them.

Q: AI planes in mods are not being replaced.
A: Mod maps and levels usually use the AI Aircraft Spawner Proxy in the mod tools. This uses aircraft files in the mods. They do not use files from the AircraftDesigns folder. Therefore, this mod cannot change these aircraft.

Q: I didn't read the instructions, and deleted the aircraft that I spent 420 hours on.
A: You could say that it has gone up in smoke.

Tanker Notice

The aerial refueling tanker can be changed by modifying __aiRefuelTanker__.xml. It uses Funky Trees to select a target speed using Throttle, which is fixed by the tanker spawner. The target IAS of a tanker is defined as lerp(55, 125, Throttle) m/s.

The tanker also uses Funky Trees for automatic flap deployment, but otherwise, it is just a normal plane flying with Pitch and Roll.

Version History

1.0 (2304141230) >

  • Initial release

  • Log in to leave a comment
  • Profile image
    1,197 SkyCruise

    I am gofs

    3 months ago
  • Profile image
    244 porgpilot

    @DatMaluchGuy19 i am

    +1 4 months ago
  • Profile image

    @hpgbproductions oh, thought you are japanese xd

    6 months ago
  • Profile image

    @DatMaluchGuy19 no

    6 months ago
  • Profile image

    @hpgbproductions

    Are You Japanes???

    6 months ago
  • Profile image
    7,544 TTL

    @hpgbproductions :)

    6 months ago
  • Profile image

    @TheTomatoLover no more 69, not nice >:(

    +2 6 months ago
  • Profile image
    7,544 TTL

    70th upvote :)

    6 months ago
  • Profile image
    11.5k Blueshift

    very good idea - great work - 👍👍👏 I would like to release a modified AiRefuelTanker that I need for myself with an automatic mod tool... but maybe I would write my own program for it - unfortunately I have so little time and so many more ideas.. 😊

    7 months ago
  • Profile image
    4,039 Itapilot

    @DatMaluchGuy19 im italian

    8 months ago
  • Profile image

    Is there a video on how to do this?

    11 months ago
  • Profile image

    @hpgbproductions

    Quelle intelligenze artificiali stanno diventando più intelligenti e io sono spaventato a morte per questo...

    and no im not italian, i just put all of the words to google translate because y e s

    +8 one year ago
  • Profile image
    410 Zilozite

    best mod cover ever but i still love tanker and enemy planes

    +2 one year ago
  • Profile image

    @Graingy it's either ww2 dogfight enemy, or i made a mistake and downloaded someone's repaint of the p-51

    +1 one year ago
  • Profile image
    3,572 JumpingJack

    @Spacejunkee8 I don't have the time and energy to spend hours a day on sp anymore. I got a life now bro.

    one year ago
  • Profile image
    23.5k Graingy

    wait hold up what's that propeller thing in the thumbnail?
    The orange and black P-51 looking thingamajig

    one year ago
  • Profile image
    3,846 Spacejunkee8

    @JumpingJack C'mon! Start building again, I love your builds!

    +1 one year ago
  • Profile image
    41.7k rexzion

    YIPEE

    one year ago
  • Profile image
    3,572 JumpingJack

    @Spacejunkee8 I ended up spending dozens of hours troubleshooting only to never fix the problem with my build. Thought it was a waste of time and I haven't worked on it since.

    one year ago
  • Profile image
    3,846 Spacejunkee8

    @JumpingJack Why don't you post anymore? Are you making something big, or...

    +1 one year ago
  • Profile image

    @dINE probably not, since text files work well enough for this

    one year ago
  • Profile image

    @JumpingJack generally the easier my mod is to make, the crappier the thumbnail i give it lol

    one year ago
  • Profile image
    3,572 JumpingJack

    You really understand marketing with that thumbnail lol

    one year ago
  • Profile image
    12.6k JuanShot2Go

    Oh boy! I can't wait to spend some with this mod. Going to be careful installing but has the potential to really up the game.

    one year ago
  • Profile image
    12.0k dINE

    Awesome mod, well done ! Will thesr settings be available as UI one day or that is out of question?

    one year ago
  • Log in to see more comments