[Z] Adventure


As you expand your base or simply explore the surface of Nauvis, you will find abandoned constructions left behind by someone else, among those will be storages with useful resources, deserted production lines, as well as whole complexes for mass production of various parts.

5 years ago
0.16 - 0.17
20

b Crash

4 years ago

Just got this while I was chopping wood and laying rails. There still were some defender bots around me. Can't say what the actual trigger was:

Error while running event ZAdventure::on_chunk_generated (ID 12)
__ZAdventure__/control.lua:631: attempt to index field '?' (a nil value)
stack traceback:
    __ZAdventure__/control.lua:631: in function 'GetRandomArea'
    __ZAdventure__/control.lua:1028: in function <__ZAdventure__/control.lua:1000>
4 years ago

Turns out the game crashes during a test for researched technologies due to a technology from a mod that wasn't active. Changing line 631 from

if not f.technologies[t].researched then

to

if not (f.technologies[t] and f.technologies[t].researched) then

fixed this crash, but it's just a hack and I didn't check the code for any similar errors. The cleanest fix would be to look for removed technologies and remove them from the list in on_configuration_changed().

New response