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
5 days ago
2.0
4.50K

b [FIXED] attempt to index field 'spawn_chanes' (a nil value)

28 days ago

The mod Abandoned Ruins - Updated (1.3.14) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AbandonedRuins_updated_fork::on_chunk_generated (ID 15)
AbandonedRuins_updated_fork/lua/spawning.lua:407: attempt to index field 'spawn_chanes' (a nil value)
stack traceback:
AbandonedRuins_updated_fork/lua/spawning.lua:407: in function 'get_spawn_chance'
AbandonedRuins_updated_fork/control.lua:159: in function <AbandonedRuins_updated_fork/control.lua:136>

28 days ago

Crash

28 days ago

Same error here, looks like maybe you (the dev, I mean) might've misspelled the variable name for spawning.spawn_chances on line 407 in spawning.lua? It returns with it spelled "spawning.spawn_chances" at the end of that function but it's missing the second "c" in "chances" earlier up in the elseif condition.

28 days ago

Yep, just relaunched it with that line edited and I'm not getting the error on startup anymore :)

28 days ago

To fix the issue until it is updated.
%appdata%\Factorio\mods
Open the mod zip. Look into folder "lua" and edit "spawning.lua" look for "chanes" replace with "chances"
Save and reload game.

28 days ago

Ops! Tpzo found. Thank you. :-)

28 days ago

1.3.15 should fix all those typos. Hmm, LUA isn't doing any lint-checks at loading the script. That's very tragic as it let slip more mistakes like this through.

This thread has been locked.