The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Spacethingy on March 14, 2013, 11:45:49 AM

Title: r6381 Win (pak64) Bridge-station-port-delete bug
Post by: Spacethingy on March 14, 2013, 11:45:49 AM
Epic bug. Stumbled on it trying to build a London Bridge station kind of thing!  ;D  This was tested with the latest nightlies of both Simutrans (r6381) and pak64.


1) Build a bridge over water (any way-type).


2) Build a station on either of the bridge's end (i.e. above the slope where the bridge connects to the land).


(http://i.imgur.com/B7NeGsd.jpg)


3) Place a dock tile on the slope under the end of the bridge - I guess that shouldn't be allowed...  ;)


(http://i.imgur.com/hA6iz0N.jpg)


Now to invoke a CTD:


4) Delete the dock tile to give a wacky result:


(http://i.imgur.com/U2mcoEd.jpg)


5) Attempt to delete the "wreckage" of the bridge, get a CTD (i.e. "Simutrans has stopped working..." message).


(I tried to log the crash, but appending -log 1 didn't seem to do anything, as instructed by http://forum.simutrans.com/index.php?topic=56.0)
Title: Re: r6381 Win (pak64) Bridge-station-port-delete bug
Post by: Dwachs on March 14, 2013, 12:40:34 PM
Thanks for the report! Log-file is not needed, as this looks like a well-reproducable crash. Of course, dock building should be forbidden there, nevertheless it should not crash as well.
Title: Re: r6381 Win (pak64) Bridge-station-port-delete bug
Post by: Dwachs on March 15, 2013, 05:10:25 PM
Huh, this was a rather nasty loophole, which could be used to ruin your opponent's bridges. Should be fixed in r6384.

Upon save & reload of the game, deleting harbour and / or bridge should not give a crash (even in 112.1).

Thank you for this precise report.
Title: Re: r6381 Win (pak64) Bridge-station-port-delete bug
Post by: Spacethingy on March 16, 2013, 08:18:08 PM
Brilliant, thanks for the fix.