Closed OgelGames closed 5 years ago
I just tested that and pipeworks
and the jumpdrive
mod point to the right commit (the pipeworks mod still needs a patch for the tp-tube, hence the separate repo, but i'm working on removing that):
Can your run these commands in the worldmods folder:
# just in case
git pull
# syncs the repo url's
git submodule sync
# updates to the specified commits
git submodule update
Can you also check if you have this warning in the console:
[jumpdrive] pipeworks teleport patch not applied, tp-tubes don't work as expected!
Can your run these commands in the worldmods folder:
I have, and do every day or two, that's how I know the mods are up-to-date.
Can you also check if you have this warning in the console:
No, never had that...
Can you check that the contents of pipeworks/teleport_tube.lua
match that in:
https://github.com/pandorabox-io/pipeworks/blob/b33c1695a70c869ff8a1ccbbeb3e542282d6979a/teleport_tube.lua#L55
Alternatively: can you zip/tar it and upload it somewhere?
Yep, all of it matches.
Can you provide how you start the server? Directories, command line, where do you place the mods?
My guess is, that an old mod-version in another directory gets loaded... :confused:
So I found the problem: I didn't have a tp tube in the world. (also explains why it works fine on the server)
From what I could work out, because there was no tp tube in the world, read_tube_db was never called, and thus tp_tube_db was always nil (https://github.com/pandorabox-io/pipeworks/blob/master/teleport_tube.lua#L3), so when save_tube_db was called at https://github.com/pandorabox-io/pipeworks/blob/master/teleport_tube.lua#L57, it resulted in the nil error.
The fix for it is to add a nil check, which I will do shortly 😉
oh, that thing is nil on the first start... :man_facepalming:
Crash happens in my singleplayer testing world (which has a up-to-date clone of https://github.com/pandorabox-io/pandorabox-mods in its worldmods), every time I try to use a jumpdrive.