Logo Platform
logo amplifiers simplified

[Steam] Save stuck at infinite turn end

Copied to clipboard!
8 months ago
Apr 6, 2024, 3:13:01 PM

My first Nakalim playthrough keeps getting stuck ending turn 56 and starting turn 57.


I played Imperials earlier in the week without major issue so, this bug is not affecting all my games.


Save attached. The website keeps failing to upload the diagnostic file; I will try to upload it in a reply.

infinite 2.sav


V 1.5.60 S5 GOLD-Public

No mods

0Send private message
8 months ago
Apr 6, 2024, 3:16:37 PM

Yup can't seem to upload the diagnostic. It seems to generate when loading the save; hopefully that is enough.


PS  I also should note that a turn 57 autosave is created but, it gets stuck loading as well.

0Send private message
8 months ago
Apr 7, 2024, 1:27:52 AM

It's a hacking-related error from Penumbra.


DefaultSTACKThe given key was not present in the dictionary.
 at get_Item in :line 0 at ServerPickPVEOutcomeForOperation in :line 0 at ServerPickPVEOutcomesIFN in :line 0 at ServerBeginTurn in :line 0 at MoveNext in :line 0 at Run in :line 0


Workaround for now is to disable Penumbra from main menu before starting a new game.

0Send private message
8 months ago
Apr 9, 2024, 11:46:33 AM

Well I digged a bit into it, this error never happened to me but I see how is happening thanks to the save game.


Seems Lumeris is passing through Arkab, an Academy-Owned System. The system wants to launch a hacking outcome, but fails to do so and locks the player.


The empire index for the function is indeed the Academy (index 14 in this game), but there's a collection of outcomes inside the function: this.pveOutcomesByEmpireIndex[operation.TargetSystem.EmpireIndex]; this object only has the major empires inside (player and the other 5 AIs), so, the pveOutcomesByEmpireIndex [14] is a non-set key, and the function fails to address this situation.


By that information, this can't be solved without editing the Assembly-Csharp DLL. Either disable the nakalim or penumbra to avoid this error.


For testing purposes, I added the blue code below before the error that leads to hang (red code), as it is a void function, that completely bypasses the error, and allows the game to continue. But probably that's a bandaid aid, and don't target the real problem.


if (!this.pveOutcomesByEmpireIndex.ContainsKey(operation.TargetSystem.EmpireIndex))
{
return;
}

List<StaticString> list = this.pveOutcomesByEmpireIndex[operation.TargetSystem.EmpireIndex];

Updated 8 months ago.
0Send private message
8 months ago
Apr 21, 2024, 4:16:40 AM

Wow. Nice catch.


Means the issue is likely in HackingManager.InitializePVE(), since that's where pveOutcomesByEmpireIndex is set.

0Send private message
6 months ago
Jun 14, 2024, 6:51:02 PM

Just wanted to +1 this. Playing my first game with Nakalim and Penumbra and I encountered this error 162 turns in. 


“The given key was not present in the dictionary.”


I’m curious if I have the ability to edit the DLL and code myself, per the comment above, to bypass the error so I can finish up this game? I’ve sunk a lot of hours and would love not to abandon. 


Also, bugs are bugs…but bummer! I was excited to check out DLC I hadn’t played with. 

Updated 6 months ago.
0Send private message
6 months ago
Jun 14, 2024, 7:21:33 PM

I realized it may have been bad assumption to say my error derived from the same circumstances. Including my save file as well! Just hit end turn to go boom. 


endturngoboom.zip


HUGE thank you to anyone who looks at this. ES2 has quickly become one of my all-time favorites. Happy to see it still has some support here after so many years. 

0Send private message
6 months ago
Jun 16, 2024, 8:37:40 AM

I have also just now encountered this problem. (I assume, I didn't dig too deep into it.)

Find my savefile attached, simply end turn and the game will get stuck.

Nakalim.sav

Updated 6 months ago.
0Send private message
0Send private message
5 months ago
Jun 26, 2024, 6:34:37 AM

Drahcir0 wrote:

I have now encountered this in a game with no more enemy empires, and no academy, so neither academy systems nor hacking should exist. I even went back and redid 4 turns, which is why there are 2 savefiles. I have played ES2 a lot this past week, I'm suprised I am just now encountering this bug so often.

Home is where the heart is.sav

Home is where the heart is 2.sav

Hi, quickly tested, seems it is the academy bug with isander's gambit competitive quest fixed on latest version:


Re-Awakening Hotfix Beta :: ENDLESS™ Space 2 General Discussions (steamcommunity.com)


  • Fixed an error were certain combinations of Academy Expansion and Metaplot Quest would cause a "pending turn"


0Send private message
4 months ago
Aug 11, 2024, 11:37:05 PM

Hey there! I opted into the beta and have tried my game posted above (it's the one called endturngoboom.zip). I’m still caught on the endless turn bug. I’m wondering if perhaps it is either still an issue in my use case, if it only fixes new games, or if I am missing some obvious step in opting into the beta? Thanks in advance! 

Updated 4 months ago.
0Send private message
4 months ago
Aug 12, 2024, 10:18:56 AM

Both, I'm afraid.

The fix we were testing turned out to still have problems, which is why it has not been released to the main update branch.

But the fix would most likely not be retroactive in either case, since your savegame includes the bugged game state.

0Send private message
4 months ago
Aug 13, 2024, 5:46:30 AM

Thanks for the reply! Deeply appreciate this.


I’ll soldier on with a new game then. Good luck with the fix and thanks for making amazing games. 

Updated 4 months ago.
0Send private message
0Send private message
14 days ago
Nov 23, 2024, 7:51:41 PM

Did not expect to have this bug til this day


My game stuck on turn 205, i already tryed change diplomacies, close the popup notifications. Tryed this on a "save 1" from turn 202(Meu1) and on a "save 2" from turn 204 (Hadryel), both stuck no mather what, no MODs.


I can't atach the saves files here, so, google drive....

https://drive.google.com/drive/folders/1BktdcCkpjkDyshSNQ0il3uh1ytJfA3rD?usp=drive_link


Hope some1 can help me.

0Send private message
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message