Oarc Multiplayer Spawn

by Oarc

Provides a better multiplayer experience by allowing players to have separate spawns around the map. This mod provides a custom spawn system for multiplayer co-operative play. The goal is to provide as close to a vanilla experience as possible (while also supporting compatibility with other mods where possible.) [Now supports all the new planets in Space Age!]

Utilities
8 days ago
0.17 - 2.0
3.48K
Enemies Environment

g Crash at start

2 months ago

Hello!
The game doesn't seem to be happy. It shows me this when loading the save.

"The mod Oarc Multiplayer Spawn (2.1.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event oarc-mod::on_init()
Force already exists
stack traceback:
[C]: in function 'create_force'
oarc-mod/lib/separate_spawns.lua:69: in function 'InitSpawnGlobalsAndForces'
oarc-mod/control.lua:48: in function <oarc-mod/control.lua:44>"

Without realizing it, I played a session without it (and it worked perfectly), and when I put it back in, this error appeared.

2 months ago
(updated 2 months ago)

Interesting, what was the process you did, you started a game with the mod, removed it and loaded the save, then added it back in?

Thanks for reporting! I'll try to get this fixed shortly (might be a day or two). I don't know if there might be other side effects though... Playing without the mod for awhile and then adding it again might cause other hidden issues.

EDIT:

So I think if you unload it, and reload the mod, you have essentially wiped all the storage data (with how my init function works). I suspect it may force you to respawn as a new player and other things will likely break too.

I can definitely fix the error, because the crash is simple, but it's not simple to allow players to remove the mod and re-add it and expect the rest of the mod to keep working...

Sorry! If you want to try and recover your save, if you have old saves where the mod was active, and a newer save, the one that is causing the error, please dm me on discord and I can try to help you fix the save file if I can.

If you haven't made much progress, I'd recommend starting a new save though.

2 months ago

Thanks for the quick response.
Yes, absolutely. I put the mod for the first sessions. Then, switching regularly between different games and mods, I forgot to sync again. Therefore, the game works without problems but the mod simply did not want to activate.

I'll try to see the effects of the mod once reactivated (and will come and report it here), and if it's catastrophic, we'll start again from scratch. Even if my friend won't necessarily be happy. x)

2 months ago
(updated 2 months ago)

@Valkyreina

So I looked into it some more, all mod data gets wiped if you remove a mod. Unfortunately, there is no way to recover it unless you have an older save with the mod still enabled. Sorry!

If you don't mind that the mod will reset your players (force you to respawn), then you can run this command to try your luck:
/c game.merge_forces("_ABANDONED_", "neutral")

Run that command first, save the game, then try re-adding the mod.

2 months ago

Nope, no luck! We'll have to start all over again!

Anyway, thank for your help. :D

New response