Warp Drive Machine


You are in relative control of a spacecraft equipped with a warp drive that distorts the shape of the space-time continuum and may travel at speeds greater than that of light by many orders of magnitude. Jump from planet to planet and extract most resources you can to rebuild you ship. Each planet is unique with its own challenges, and you can stay limited time on it, until spaceship warps toward another world.

Overhaul
14 days ago
1.1 - 2.1
20.6K

g 2.1 Error when trying to jump back to old planet

a month ago

After the 2.1 update, we set it to jump back to an old planet and every time it does we get this error

The mod Warp Drive Machine (1.6.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Warp-Drive-Machine::on_nth_tick(30)
An error occured while compiling "entity:coal:probability" noise expression:
NoiseExpression cannot be NaN: spotNoise[3]
stack traceback:
[C]: in function 'create_surface'
Warp-Drive-Machine/warp-control.lua:795: in function 'warp_now'
Warp-Drive-Machine/ship-control.lua:903: in function 'update_ships_each_second'
Warp-Drive-Machine/control.lua:839: in function <Warp-Drive-Machine/control.lua:838>

I can provide save file both pre-update and post-update if requested.

a month ago
(updated 4 days ago)

After doing some digging into the mod code files. In 2.1 the game no longer allows you to send in 0 for resource spot noise, when generating new planets you call the function "check_non_zero_resources(map_gen)" to clean up the 0 values. However, when jumping to an already saved planet the value may still be 0 but you do not run the "check_non_zero_resources" function on those values, thus causing a crash.

A workaround is to call this from console (backup the save first)
/c Warp-Drive-Machine local n=0 local function bad(v) return v~=nil and not (v>0) end for _,mg in pairs(storage.planets) do local ac=mg.autoplace_controls if ac then for name,s in pairs(ac) do if in_list(storage.resource_names,name) and (bad(s.frequency) or bad(s.size) or bad(s.richness)) then ac[name]=nil n=n+1 end end end end game.print("WDM: removed "..n.." bad resource controls")

It should clean up all old saved planets that are broken. Does have the side effect of old planets getting all resources even if they shouldn't though.

15 days ago

please try the new version

15 days ago

We have the same issue - current version just downloaded as 1.6.5.

15 days ago

Please send me the saved game and what planet causas the issue

12 days ago
(updated 12 days ago)

We have got two saves from the same run - one that runs (the earlier save) and one that doesn't. My wife says "Please don't judge my layouts!":

https://drive.google.com/file/d/14nrtFlb3yXrhxlMslDi7g0pzJ6TSacSn/view?usp=sharing
https://drive.google.com/file/d/1ohySwmrpVkzyZlaSyrJzhXy0uJcFVMMW/view?usp=sharing

I'll leave them up for a few weeks and then delete them, so please make sure you take a local copy if you need them after that point :-)

Edit: Just noticed 1.6.6 has come out. Downloaded and tried that, same issue.

New response