Page 1 of 1

straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 8:45 pm
by crazybmanp
After the new update i have a rail segment that is broken and stuck where it is, it is red and unmineable and the train cannot travel over it. i can't seem to make a console command that destroys it, or makes it mineable. anyone have any insight?

Re: straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 8:58 pm
by orzelek
It should be:

Code: Select all

/c game.player.selected.destroy()

Re: straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 9:06 pm
by crazybmanp
i haven't seemed to have any luck with that command, for me it seems to do nothing when i run that command. I will try again now and report back.

Re: straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 9:11 pm
by orzelek
crazybmanp wrote:i haven't seemed to have any luck with that command, for me it seems to do nothing when i run that command. I will try again now and report back.
You need to run it when you are pointing with cursor at the offending rail piece. If it doesn't work then then something is more broken then it seems.

Re: straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 9:11 pm
by crazybmanp
yea, trying to delete the rail with destroy() when its selected returns no output and doesn't seem to delete anything. printing game.player.selected prints nothing.

i have uploaded a copy of the world for reference, the affected rails are above the top row of my station (the two solitary rails on their own line).

Re: straight rail segment stuck (console to delete?)

Posted: Mon Jun 27, 2016 10:59 pm
by Rseding91
Can you please upload the save file from 0.12 so I can load it locally and figure out what's going wrong causing the rails to be unmineable?

Re: straight rail segment stuck (console to delete?)

Posted: Tue Jun 28, 2016 4:49 am
by crazybmanp
Rseding91 wrote:Can you please upload the save file from 0.12 so I can load it locally and figure out what's going wrong causing the rails to be unmineable?
Here is the world from 12.22. The previous was converted 12.22->13, i have also tried 12.22->12.35->13 with the same result.

Re: straight rail segment stuck (console to delete?)

Posted: Wed Jun 29, 2016 11:04 am
by crazybmanp
I have tried more commands on the rail entity, but i can't seem to interact with it through scripting. I believe i have reached the end of my understanding of the engine.

Re: straight rail segment stuck (console to delete?)

Posted: Thu Jun 30, 2016 2:30 pm
by Loewchen
The bug is fixed for 13.2 but only if you load your original .12 save. The problematic rail can not be removed via console command either.

Re: straight rail segment stuck (console to delete?)

Posted: Thu Jun 30, 2016 2:57 pm
by Rseding91
Loewchen wrote:The bug is fixed for 13.2 but only if you load your original .12 save. The problematic rail can not be removed via console command either.
It should fix any problematic rails when loading saves in 0.13.2.

Re: straight rail segment stuck (console to delete?)

Posted: Fri Jul 01, 2016 12:54 am
by crazybmanp
I can confirm it is fixed, but i should note that when i loaded the 13.0 save that was affected, it was also fixed. so the fix may have worked better than you thought. Either way, great job guys.

Re: straight rail segment stuck (console to delete?)

Posted: Tue May 23, 2017 1:47 am
by aar
I also had this issue, and all the broken rail pieces I knew about were fixed with 13.2 like you said. But now I found a new broken piece while running 15.12 and it's blocking trains :( the console command does nothing to remove it


a couple just before stop "Andy"
stuckrail.zip
(55.18 MiB) Downloaded 164 times

Re: straight rail segment stuck (console to delete?)

Posted: Tue May 23, 2017 1:59 am
by Rseding91
aar wrote:I also had this issue, and all the broken rail pieces I knew about were fixed with 13.2 like you said. But now I found a new broken piece while running 15.12 and it's blocking trains :( the console command does nothing to remove it
Can you upload the save file? Also which command are you referring to?

Code: Select all

/c game.player.selected.fix_rail()
Should fix any previously broken rail you mouse over.

Re: straight rail segment stuck (console to delete?)

Posted: Tue May 23, 2017 2:08 am
by aar
oh, sorry was slow to upload the file, just got done. but it's not necessary as '/c game.player.selected.fix_rail()' fixed it!

thanks a bunch :)