The Ruins Mod 2.0 deprecated


This mod is now deprecated and merged with `AbandonedRuins_updated_fork`.

Content
a month ago
2.0
3.15K
Environment

g Had been a long working day

5 months ago

It was a long working day, today. So I'm no longer much focused, sorry for the many releases this evening.

5 months ago

I appreciate the updates, friend, but the latest hotfix is still breaking something for me.
Maybe roll it back for now and get some rest? Sorry if this one's my fault from another one of my mods.

AbandonedRuins20/lua/ruins/medium/init.lua:3: bad argument #1 of 33 to 'pairs' (table expected, got string)
stack traceback:
[C]: in function 'pairs'
AbandonedRuins20/lua/ruins/medium/init.lua:3: in main chunk
[C]: in function 'require'
AbandonedRuins20/lua/ruins/base_ruin_set.lua:4: in main chunk
[C]: in function 'require'
AbandonedRuins20/control.lua:5: in main chunk

5 months ago

AbandonedRuins20/lua/ruins/base_ruin_set.lua:4: AbandonedRuins20/lua/ruins/small/init.lua:106: 'do' expected near 'return'
stack traceback:
[C]: in function 'require'
AbandonedRuins20/lua/ruins/base_ruin_set.lua:4: in main chunk
[C]: in function 'require'
AbandonedRuins20/control.lua:5: in main chunk

5 months ago

@Arrevax Thank you for understanding. I have hopefully now fixed all in 1.2.4. :-)

5 months ago

Next time, I upload only when the release isn't crashing at least. That was to much many small releases ...

5 months ago
 161.988 Error AppManagerStates.cpp:1649: The mod The Ruins Mod 2.0 (1.2.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AbandonedRuins20::on_configuration_changed
value for required parameter 1 (other) is missing
stack traceback:
        [C]: in function 'set_cease_fire'
        __AbandonedRuins20__/lua/utilities.lua:85: in function 'set_enemy_force_cease_fire'
        __AbandonedRuins20__/control.lua:25: in function <__AbandonedRuins20__/control.lua:24>

No idea why this is happening now. :-(

5 months ago

Thank you for your work on the mod! I'm still having trouble, though. Wouldn't be anything to do with using the Silly Pack, would it?

The mod The Ruins Mod 2.0 (1.2.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event AbandonedRuins20::on_configuration_changed
value for required parameter 1 (other) is missing
stack traceback:
[C]: in function 'set_cease_fire'
AbandonedRuins20/lua/utilities.lua:85: in function 'set_enemy_force_cease_fire'
AbandonedRuins20/control.lua:25: in function <AbandonedRuins20/control.lua:24>

5 months ago

In case it helps, changing the "hostile ruin defenses" setting doesn't affect the error.

5 months ago

```
local function setup_enemy_force()
local enemy_force = game.forces["AbandonedRuins:enemy"] or game.create_force("AbandonedRuins:enemy")

util.set_enemy_force_diplomacy(enemy_force, false)

storage.enemy_force = enemy_force
return enemy_force
end

util.get_enemy_force = function()
if (storage.enemy_force and storage.enemy_force.valid) then
return storage.enemy_force
end
return setup_enemy_force()
end
```

I haven't change every wrong occurrence of game.forces.enemy which are the biters, not an other fake "player".

5 months ago

The latest patch worked! Thanks again!

This thread has been locked.