[Crash] - game/sim/worldgen.lua281: attempt to index local 'templateUnitData' (a nil value)


Recommended Posts

Bug Submission:

Category: Crash

Platform: PC

Issue Title: game/sim/worldgen.lua281: attempt to index local 'templateUnitData' (a nil value)

Issue Description: Custom game using DLC settings

Occurs after Quantum Reservoir mission ended when loading the world map, Oops screen appears with 3 options, with this message:

game/sim/worldgen.lua281: attempt to index local 'templateUnitData' (a nil value)

Continue and Regenerate both just failed to proceed to world screen. Only option is Cancel to return to main menu.

This is was 2nd run to hit this bug exactly on the same mission.

Save files attach (both before and after mission)

Steps to Reproduce: Oops screen appears with 3 options, with this message:

game/sim/worldgen.lua281: attempt to index local 'templateUnitData' (a nil value)

Continue and Regenerate both just failed to proceed to world screen. Only option is Cancel to return to main menu.

Link to comment
Share on other sites

  • Developer

I know the cause of the problem now. It's rather silly of me. You selected to not play with the new guard types in your game, but there are  units that are spawned in to the new mission that are also part of those guards. But they aren't being loaded in. The scientists to be exact. 

So I will need to make a real fix for this, but there is a way you can progress if you want before that. 

You can edit your savegame file to turn the new guard types back on. 

If you look for this line in the save game file, the numbers may be different, so don't include those in your search:

table [ "guards" ] = objects [ 0x0000028A ]
 
Then search for the number that is in that entry, so in this case: 0x0000028A

That will take you here:
table = objects [ 0x0000028A ]
table [ "enabled" ] = false

change the "false" to "true"



Again, you DO NOT have to do this. It's  just a way for you to progress while you wait for the real fix. ;)
 
Link to comment
Share on other sites

Read the latest hotfix today and noticed that this issue had been fixed.

 

Thank you for the world class support and your response time is really 1st rate - really appreciate that! :encouragement:

 

Hoping for more new features and exciting new DLCs in the coming months!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.