Abandoned Ruins - Updated (core)

by Keysivi

This mod doesn't do anything by itself. You need to install ruin-set mods or no ruin will be spawned. It then can spawn randomly choosen ruins in the world. These ruins are destroyed fragments of bases, forts, small oases, and more. (Now co-authored with roland77)

Content
18 days ago
2.0
5.81K

b [FIXED] spawning.lua:392: Array 'ruins' is empty

21 days ago

248.302 Error MainLoop.cpp:1468: Exception at tick 2088420: The mod Abandoned Ruins - Updated (1.4.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AbandonedRuins_updated_fork::on_nth_tick(10)
AbandonedRuins_updated_fork/lua/spawning.lua:392: Array 'ruins' is empty
stack traceback:
[C]: in function 'error'
AbandonedRuins_updated_fork/lua/spawning.lua:392: in function 'spawn_random_ruin'
AbandonedRuins_updated_fork/lua/events.lua:83: in function <AbandonedRuins_updated_fork/lua/events.lua:52>

about 10 seconds after loading into a game
with realistic ruins 2.0

21 days ago

spawning.spawn_random_ruin()'s first parameter requires to be an "array", means of type table. Here nil was provided which means when I look at the source code that the code ruinsets.get(ruinset_name)[queue_item.size] results in nil which is unexpected. I have added some code that splits that chained statement into smaller statements and now checks if some ruins have been found. I'm currently testing the code and if it works, 1.4.13 will include the fix.

21 days ago

Sounds good, thanks for your work

21 days ago
(updated 21 days ago)

1.4.13 is out now and includes many fixes, I also tried to start a Sandbox and ruins from realistic-ruins are spawning again.

Please also update any ruin-set mod, like base and realistic-ruins, of course.

New response