The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: Erik on March 12, 2012, 09:13:38 PM

Title: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Erik on March 12, 2012, 09:13:38 PM
Each time I'm running the game somewhere a bus will get stuck. The bus accelerates (smoke) but goes nowhere.
It is each time on one busstop on top of a slope. If I change the road around it. (Get the slope further of the busstop.) It will happen again by a other busstop with stands also on top of a slope.

After saving the game and reloading it, the bus will leave, but after a while a other bus on the same busstop has the same.

Here a save game.
Bug staying bus.sve (http://dl.dropbox.com/u/18759965/Bug-staying-bus.sve)
The current busstop with the problems is "Vlissingen Kolonie Zuid bushalte". (on the middle of the screen.)

I have used pak128  2.0.0 and two add-ons.
(The add-ons are on the attachment.)

I run it with 10.10 Linux 64bit.

The settings inside the game are 100 m/tile and stations has 4 blocks radius.
(With the 100m/tile the breaking of the trains looks quite nice.)
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: jamespetts on April 11, 2012, 10:34:51 PM
I've just noticed that I haven't replied to this topic - apologies. I have asked Bernd Gabriel, who developed the physics code to look into it. He has not had time to look into this fully yet, but he thinks that it might be related to a known issue whereby a vehicle that does not accelerate to at least 1m/s within the first calculation cycle can become stuck. The 'bus might be underpowered - you could increase the global power factor percent in simuconf.tab as a quick fix for this for the time being - even a small increase might well fix this.

Sorry that I haven't responded sooner, and sorry that you've had trouble.
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Erik on April 23, 2012, 07:32:41 PM
I'm happy that the issue is known. I think you are on the right way of reason of the issue.
A bus with a stonger engine seems not to have the problem. (By that the problem solves itself bij playing along.  ;) )
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: greenling on April 23, 2012, 08:56:16 PM
Erik
Can You Please Replly The Scoure your Pakfiles how you devlopemd?
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Erik on May 06, 2012, 07:55:47 PM
I'm started to try to solve this.

I try it by running and analyse the game with gdb. But I have to relearn how to use that.
So it will take a while.

@Greenling: Sorry but I totally don't understand what you try to ask.
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: jamespetts on May 06, 2012, 07:56:40 PM
Erik - thank you for looking into this. Do let me know how you get on!
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: greenling on May 06, 2012, 08:50:09 PM
Erik i Have be ask after the scoure for this Pakfiles:
Quote(http://forum.simutrans.com/Themes/default/images/icons/clip.gif) ns-sein.pak (http://forum.simutrans.com/index.php?action=dlattach;topic=9534.0;attach=17943) (13.29 KB - runtergeladen 9 Mal.)
(http://forum.simutrans.com/Themes/default/images/icons/clip.gif) ns-einde-keuze-sein.pak (http://forum.simutrans.com/index.php?action=dlattach;topic=9534.0;attach=17944) (4.68 KB - runtergeladen 21 Mal.)
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Erik on May 07, 2012, 06:10:40 PM
Yes, now I understand the question.
Here the topic about this signal project: http://forum.simutrans.com/index.php?topic=6239.0 (http://forum.simutrans.com/index.php?topic=6239.0) (Is in Dutch)
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: greenling on May 07, 2012, 06:53:15 PM
Erik
Thanks you!
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Bernd Gabriel on May 19, 2012, 07:48:41 PM
Erik, I tried to reproduce the the issue at last.  In my devel branch the busses didn't stuck but were teleported.

I assumed that both stucking and teleporting had the same reason namely the still persistent drag of the passed slope.
I changed the behaviour to creeping with at least 4 km/h until the drag effect decreases.
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Milko on May 19, 2012, 08:59:42 PM
Hello Bernd

From github: "Fixed: This is the end of the teleporting era. "  :)

Thank's

Giuseppe
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: Erik on May 20, 2012, 05:56:12 AM
Thanks guy's.

With gdb I didn't has much success.
My programming skills are still not too well, but I'm learning.

I haven never seen a teleporting bus but because it happens on the same area it could be close to this bug.
From with version has the Teleport fix been implemented? Perhaps it has also effect this bug.
Title: Re: [Bug] Bus wouldn't leave the busstop. Accelerating (smoke) but speed stays 0.
Post by: HeinBloed on May 20, 2012, 12:39:51 PM
Quote from: Milko on May 19, 2012, 08:59:42 PM
From github: "Fixed: This is the end of the teleporting era. "  :)

This got me quite excited, but apparently it's referring to a different problem than the old XP/release library bug. That one isn't fixed unfortunately, just tested it.  :-[