Urgent help needed - problem loading saves

deanej

Deity
Joined
Apr 8, 2006
Messages
4,859
Location
New York State
I'm having a major (gamebreaking) issue with my Star Trek mod (link in sig) - whenever a save game is loaded from a scenario (except 22nd Century and probably Earth-Romulan War), I get the following python exception:

Traceback (most recent call last):

File "CvAppInterface", line 56, in onLoad

File "CvEventInterface", line 19, in onEvent

File "CvEventManager", line 187, in handleEvent

File "CvFinalFrontierEvents", line 2401, in onLoadGame

File "CvFinalFrontierEvents", line 2449, in loadSystemsFromPlots

ValueError: insecure string pickle
ERR: Python function onLoad failed, module CvAppInterface

Does anyone have any idea what this means? This is a major issue because it prevents the planets from properly loading. It only happens with the latest patch but I can't identify a reason for that. I never messed with that method. Please help, if you can fix this you'll be a lifesaver!
 
"insecure string pickle" to me points towards a problem loading saved script data. See what kind of script data is being loaded at that place in the code and check the corresponding place where the script data for that object gets saved.
 
Well, in one of the patches I put ScriptData = Scenario in plot 0, 0 in all the scenario files and instructed the method onGameStart to look for that script data to see if it was loading a scenario or not (like the Next War mod does; the default code from Final Frontier for this purpose wasn't working). Could this be the issue? (If not I'll get to looking at the load game and save game events tomorrow.)
 
That could definitely be the issue; since the last line of the traceback (and hence the most recent function call) is "loadSystemsFromPlots" it may be having a problem reading that plot 0,0 script data. What does line 2449 of CvFinalFrontierEvents.py look like?
 
All it does is load data from the plot, but looking at the method as a whole, the problem is actually before that line. The game was attempting to load a solar system there, and it is able to compensate for plots that don't have solar systems on them; I just added a check for the scenario scriptdata as well. Thanks for the help.
 
Top Bottom