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
a month ago
2.0
7.68K

b [FIXED] spawning.lua:381: attempt to index global 'ruin' (a nil value)

a month ago
(updated a month ago)

after last update can`t load save or start new game.

The mod Abandoned Ruins - Updated (1.5.1) 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:381: attempt to index global 'ruin' (a nil value)
stack traceback:
AbandonedRuins_updated_fork/lua/spawning.lua:381: in function 'clear_area'
AbandonedRuins_updated_fork/lua/spawning.lua:435: in function 'spawn_ruin'
AbandonedRuins_updated_fork/lua/spawning.lua:511: in function 'spawn_random_ruin'
AbandonedRuins_updated_fork/lua/events.lua:107: in function <AbandonedRuins_updated_fork/lua/events.lua:61>

The mod Abandoned Ruins - Base (0.1.7)
The mod Abandoned Ruins - Updated (1.5.1)
The mod Abandoned Ruins 2.0 - silly extention (0.3.0)
The modRealistic Ruins - Updated to 2.0 (0.1.3)

a month ago
(updated a month ago)

Thank you for reporting this!

1.5.2 will fix this issue, along with an other one, I have discovered during loading a ~5 months old save game.

a month ago

new game and realistic ruins as standart

The mod Abandoned Ruins - Updated (1.5.2) 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/utilities.lua:110: Parameter amount=0.00 cannot be zero or below
stack traceback:
[C]: in function 'error'
AbandonedRuins_updated_fork/lua/utilities.lua:110: in function 'safe_damage'
AbandonedRuins_updated_fork/lua/spawning.lua:215: in function 'spawn_entity'
AbandonedRuins_updated_fork/lua/spawning.lua:289: in function 'spawn_entities'
AbandonedRuins_updated_fork/lua/spawning.lua:444: in function 'spawn_ruin'
AbandonedRuins_updated_fork/lua/spawning.lua:509: in function 'spawn_random_ruin'
AbandonedRuins_updated_fork/lua/events.lua:107: in function <AbandonedRuins_updated_fork/lua/events.lua:61>

a month ago
(updated a month ago)

Gee, that was unexpected as it didn't happen here. :-( I moved to an unexplored area and ruins spawn without a crash. The error message Parameter amount=0.00 cannot be zero or below is intended as no damage dealt is just a waste of invoking the game's function LuaEntity.damage() which is documented here: https://lua-api.factorio.com/latest/classes/LuaEntity.html#damage which reads: "The amount of damage to be done." I have added extra_options.dmg > 0 to the code which should fix this (1.5.3!).

This thread has been locked.