straight rail segment stuck (console to delete?)

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

straight rail segment stuck (console to delete?)

Post 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?
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

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

Post by orzelek »

It should be:

Code: Select all

/c game.player.selected.destroy()
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

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

Post 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.
orzelek
Smart Inserter
Smart Inserter
Posts: 3923
Joined: Fri Apr 03, 2015 10:20 am
Contact:

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

Post 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.
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

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

Post 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).
Attachments
dasdf.zip
(15.91 MiB) Downloaded 125 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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?
If you want to get ahold of me I'm almost always on Discord.
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

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

Post 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.
Attachments
dasdf - preupdate.zip
(17.69 MiB) Downloaded 119 times
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

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

Post 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.
Loewchen
Global Moderator
Global Moderator
Posts: 9196
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

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

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
crazybmanp
Inserter
Inserter
Posts: 27
Joined: Sun Feb 02, 2014 8:10 am
Contact:

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

Post 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.
aar
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 29, 2016 1:12 am
Contact:

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

Post 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 157 times
Last edited by aar on Tue May 23, 2017 2:07 am, edited 1 time in total.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
aar
Burner Inserter
Burner Inserter
Posts: 11
Joined: Wed Jun 29, 2016 1:12 am
Contact:

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

Post 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 :)
Post Reply

Return to “Technical Help”