Bus on water bug (win32)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
weeble888
Engineer
Engineer
Posts: 7
Joined: 03 May 2006 21:11
Location: West Somerset

Bus on water bug (win32)

Post by weeble888 »

after removing a bridge I found that in the water where the bridge had spaned was a bus which was just about to cross from the North East end. I installed the latest nightly (03 May) and the same problem reoccurs. attached is a picture of the offending bus ?(
Attachments
Chardton Transport, 15th May 1995.gif
One loss making bus
(1.18 MiB) Downloaded 189 times
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post by Sacro »

Any chance that you can post your savegame and openttd.cfg please.
We Am De Best

Host of ThroughTheTube site
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Which bus? To me it looks like all busses are on the bridge.
Please post savegame + openttd.cfg and exact instructions which bridge and when to destroy. Best would be a savegame in paused mode and you saying destroy bridge1 and the bus goes swimming.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
weeble888
Engineer
Engineer
Posts: 7
Joined: 03 May 2006 21:11
Location: West Somerset

Post by weeble888 »

The bus which is in the upper part of the lake behind the office block I've attached an autosaved game and the cfg file
Attachments
autosave11.sav
(30.02 KiB) Downloaded 115 times
openttd.cfg
(3.85 KiB) Downloaded 112 times
gigajum
Route Supervisor
Route Supervisor
Posts: 511
Joined: 08 Mar 2006 08:33
Location: Germany

Post by gigajum »

OK that bus does the same thing as the bug i recognized while coding the bridge upgrade patch. I never reported that :(. The bridge can be removed while a bus is on it. Dunno now if you need to demolish the bridge tile on which the bus is or another. But if i remember correct it has to be not a ramp, the bus was on the bridge and not on the ramp (maybe regardless). The bridge was over water while the ramps are on slopes.

OK after some tests, it apears to trains and road vehicles. The vehicle has to be complete on the bridge and both ramps need to be empty. The bridge must go over water. The tile selected to demolish does not matter

So enough for today :) time to sleep

here is a picture of the reproduced bug:
Attachments
Klein Comünster Transport, 19. Feb 1950.png
Klein Comünster Transport, 19. Feb 1950.png (59.8 KiB) Viewed 1533 times
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Post by peter1138 »

It happens on any tile type. This code is wrong:

Code: Select all

	/* Bridges on slopes might have their Z-value offset..correct this */
	v = FindVehicleBetween(
		tile    + delta,
		endtile - delta,
		TilePixelHeight(tile) + TILE_HEIGHT + GetCorrectTileHeight(tile)
	);
It works for bridges with sloped ramps, but not for flat ramps...
He's like, some kind of OpenTTD developer.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 8 guests