Stuck on a train


You are stuck on a train and have to build your base from the train.

5 years ago
0.16 - 0.17
6

g [0.17.59] Doesnt works anymore trowhs crash

5 years ago
(updated 5 years ago)

I tried getting it run on 0.17.59 but everytime i load the map this error occurs:
The mod Stuck on a train caused a non-recoverable error.
Please report this error to the mod author.

Error while running event StuckTrain::on_player_joined_game (ID 43)
real number expected got nil.
stack traceback:
StuckTrain/control.lua:28: in function <StuckTrain/control.lua:15>
stack traceback:
[C]: in function 'get_inventory'
StuckTrain/control.lua:28: in function <StuckTrain/control.lua:15>

5 years ago

having the same problem, would love a fix as its a very fun mod

5 years ago

it looks like the player no longer has an armor inventory when in a train, because if i delete that section of code and just put the equipment inserted into the power armor into the train inventory and use the vehicle equipment grid mod to put them in the equipment grid of the train everything works the same as it did before, but when the game tries to load the player with an armor inventory in the train it throws that error

5 years ago
(updated 5 years ago)

found the solution. In version 0.17.35 they changed defines.inventory.player_armor to defines.inventory.character_armor, among other things and that was throwing the error out. If you change that section of the get_inventory line, and only that, it will continue working.

5 years ago
(updated 5 years ago)

Seems to have worked. Sad that he didnt fix it yet.
Btw its inside of Control.lua on line 28

New response