allista / AutoLoadGame

Simple KSP plugin that automatically loads the specified savegame upon game start.
MIT License
1 stars 3 forks source link

ALG loads persistent instead of <name> when saved at KSC #11

Open mlheur opened 6 years ago

mlheur commented 6 years ago

I think the subject says it all. If I make a save while in a vessel or on the map screen, ALG works great. When I make a save between missions at the KSC, ALG stops after loading the game, but not the save.

I peeked at the code, I'm thinking that line 117 in AutoLoadGame.cs has something to do with it, but I'm not sure. Line 128 seems crucial too.

Let me know if you want more info, logs, testing, etc.

P.S. I've got a perl script I wrote with some shell associations so I can double-click any .sfs file, the script will populate AutoLoadGame.conf and then run ksp exe. Let me know if you'd like a copy.

allista commented 6 years ago

Thanks for the report, it should be easy enough to fix. As for the script, that should be handy, provided it could be installed along with ALG and associated with .sfs files. Though I myself usually have the .cfg open at hand, as I often switch between the saves while testing other mods.

mlheur commented 6 years ago

https://github.com/mlheur/LoadKSP/

mlheur commented 5 years ago

I've been picking away at this. I've got enough traces going that I know after HighLogic.CurrentGame.Start(); HighLogic.CurrentGame.scenarios funding scenario has the correct funds value from my save game, but the funds displayed on screen is showing from persistent. Changing scenarios keeps the persistent funds on screen. I've been stabbing in the dark trying to find some means to reload the running scene with the stuff loaded from GamePersistence.LoadGameCfg

alg inconsistent load