Bus on water bug (win32)
Moderator: OpenTTD Developers
Bus on water bug (win32)
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
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.
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."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
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
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:
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 (59.8 KiB) Viewed 1533 times
It happens on any tile type. This code is wrong:
It works for bridges with sloped ramps, but not for flat ramps...
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)
);
He's like, some kind of OpenTTD developer.
Who is online
Users browsing this forum: No registered users and 8 guests