HELP with a very weird error when loading a save

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Realspace
Posts: 1834
Joined: Wed, 15. Nov 06, 10:21
x4

HELP with a very weird error when loading a save

Post by Realspace »

I am having a very strange error on my XRSGE mod after I made several changes (but not to structure).
All seems related to superhighways, which I write on a separated file (no difference if I add them to vanilla sechighways.xml, same errors and stuck behavior). When starting a new game all is fine and performance is great, but when loading a save, this error pops-up, which is normal, but it loops THOUSANDS times:

Code: Select all

[FileIO ] 3924.28 File I/O: Failed to verify the file signature for file '.\extensions\xrsge\maps\xu_ep2_universe\xrsge_intrasechighways.xml' (error: 14)
This does not happen with the old version of the mod which has an identical file structure. It even can load a save from a different version of the mod without issues. I never had this bug before, could remove/add the superhighways during any game and the engine would simply update the save.

Seems like the file signature verification loops and the loading stucks there, I get no other error. I really can't guess what I made differently from previous mod's version to trigger this behavior.
If I remove the superhighways the issue is no more. But it seems related to something else that recalls that file. If I use the same file from the old version, the same loop happens. So something is wrong in the reading from that file, but only when loading a game :|

I tested any possible variation, packed the files, used the -prefersinglefiles or not, debug or not etc. It eventually gets to load the save but only after looping for several minutes doing nothing except repeating the same error. Sometimes it stucks forever.

I start the game from Steam or from a shortcut to the exe in Steam.
Realspace
Posts: 1834
Joined: Wed, 15. Nov 06, 10:21
x4

Re: HELP with a very weird error when loading a save

Post by Realspace »

Seems I found the cause. I referenced all superhighways in the main mod but some are only listed in a separated file as optional. When these references miss the listener in the superhighway file, the loading gets stuck.
Strange that if I remove them entirely in the superhighway file, so even more (all) references find no listener, the loading is not affected, just a quick error check. But in this case the error check takes forever.
User avatar
ChemODun
Posts: 598
Joined: Mon, 12. Feb 07, 21:58
x4

Re: HELP with a very weird error when loading a save

Post by ChemODun »

Strange ...
Multiply entropy by absolute zero

Freedom in space

Return to “X4: Foundations - Scripts and Modding”