News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

Multi Train Bug

Started by brunoresende29, March 14, 2009, 05:28:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brunoresende29

Before a train leaves the station, another train is already going. This is making to trains run at the same track. Look at the pic.
Thanks for reading.

Dwachs

Do train 2 and 3 fit into the platform or are they too long? Are they driving or waiting?
Parsley, sage, rosemary, and maggikraut.

prissi

This will only happen with vehciles longer than 8 and the front engine already passing a signal. The trans will stop at next signal, imho.

brunoresende29

Quote from: prissi on March 14, 2009, 08:35:01 PM
This will only happen with vehciles longer than 8 and the front engine already passing a signal. The trans will stop at next signal, imho.
But I have many trains, and just those 3 does that. I'll change these trains by newer ones. Talk to you later.

brunoresende29

I divided the exit in two ways, now the trains does not goes one over other. Thanks for you helping!

prissi

They should not do this anyway ... Thus I would say the bug is not solved. WOuld you upload the savegame to simutrans-germany.com/files for instance?

brunoresende29

Well, The bug just happened once after I remake the the station (remove the old tracks and put new ones). But anyway, I put an link to download the file: http://keeffs-fm.webs.com/Multi_Train_Bug_Bruno.sve Is in my website radio profile, but works!  ;D

prissi

I cannot reproduce this. With version did you use?

brunoresende29

Quote from: prissi on March 15, 2009, 11:05:47 PM
I cannot reproduce this. With version did you use?
Version 102 pak 128 v.1.4.4

whoami

I couldn't reproduce this either, but there are two situations where this can happen (my experience):
1) if the track layout has been changed and/or train schedules have been updated, trains will jump (ahead), ignoring necessary reservations. This behaviour will eventually go away by itself (once all affected trains have returned to normal operation). I can imagine that the problem can appear also on loading a savegame. I guess that there is still a chance for deadlocks that is caused by this.
2) In recent versions, there seems (by my observations) to be a bug by which ST loses track (sic!) of the trains' reservations, which then appear in chaotic ways, leading to a situation as discussed here. This happens mostly after a longer time (hours) of continuous playing, and will not resolve by itself. Save+reload should help, but if data structures are damaged, completely restarting ST will be wiser.

prissi

I have a savegame where sometimes a certain train will reserve a certain tile but never frees it. Unfourtunately it is neither reproducable (but it is always the same tile) and happens only after some months. I have no idea why. Saving will work, as those structures are not saved and will be recalculated from the start after loading.

brunoresende29

OK! Thank you all folks!  :D

Amelek

#12
Hi all

sorry for starting with my first post in ancient topic, I hope no one will kill me  ;)

there is a save which somehow reproduce this.

It uses simutrans from main page and pak64

After you load test2, wait two for coal mine train to do two loops. In second one, second train from left (one with last wagon in corrupted direction) will jump forward and clip with coal mine train. See screens bellow

It was done in this way: do station as long as required (eg 8 for waiting trains), then sometimes trains which should have filled into it won't do it - last wagon will be out (see test2Railblock - you are unable to start trains from depot, even though line is empty). Then, just expand station by one. And last wagon will look like on that screen.

Please note, that this is not only moment when trains clip - they generally do on stations shaped like this. If in single moment two trains leave it and go in different direction, they will most likely clip.

This save reproduce more bugs, like http://www.ii.uj.edu.pl/~szklarze/simscr04.png <-- what happen if transfer goods are waiting on station and you delete target station, will disappear after a while.
http://www.ii.uj.edu.pl/~szklarze/simscr05.png <-- clipping1
http://www.ii.uj.edu.pl/~szklarze/simscr06.png <-- same + railblock displayed

and, all 4 trains are exactly the same. As you may see, some are displayed too short

Dwachs

thank you very much. I can confirm that there something strange is happening. Hopefully, the savegames help to find the bug(s).
Parsley, sage, rosemary, and maggikraut.

Dwachs

@Amelek: the jumping of the train happens, because the train itself is somehow corrupted (the last wagon is not on track) and simutrans corrects this (moving the entire train one train length forward - jumping).

How did you produce that train? I mean - getting the last wagon diagonal to the track. I could not reproduce it. Whenever I tried to build a station tile over the last wagon, I could not, since I could not delete the curved track first.
Parsley, sage, rosemary, and maggikraut.

Amelek

that's pretty simple:

build station with 3 platforms, like one on screenshot: http://www.ii.uj.edu.pl/~szklarze/simscr51.png. If you will make it one wagon longer then the station, it will be like on that screenshot, but this might also happen with correct train and http://forum.simutrans.com/index.php?topic=2374.0 this one.

Then just delete (with simple remove tool, not track remove tool which won't work) tracks on both sides. http://www.ii.uj.edu.pl/~szklarze/simscr52.png

that's it ;)

by the way, I'm pretty sure that my patch solves http://forum.simutrans.com/index.php?topic=2927.0 this issue. Can you commit it to SVN?

Dwachs

Thank you :)
Quote from: Amelek on August 29, 2009, 09:02:57 AM
by the way, I'm pretty sure that my patch solves http://forum.simutrans.com/index.php?topic=2927.0 this issue. Can you commit it to SVN?
I do not see how this patch is related to the issues in this thread  ???
Parsley, sage, rosemary, and maggikraut.

Amelek

it isn't really, I just accidentally crashed my game while trying to reproduce this, so that went into my mind ;f