Depot problems. In saved game.

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Brainz
Engineer
Engineer
Posts: 2
Joined: 05 Apr 2005 13:23
Location: Sweden, Göteborg
Contact:

Depot problems. In saved game.

Post by Brainz »

I read that the depot problems with wagons that claims to be on a train in depots where fixed in the r2164.
That might be true but at least it dosen't helps me in my saved game.

Is it supposed to work again in saved games or do I have to restart to get rid of the problem?

//Andreas
Asterix
Engineer
Engineer
Posts: 121
Joined: 04 Apr 2005 18:17
Location: Germany

Post by Asterix »

as far as i understand it, it only helps for new games, not for saved where the problems already exist
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

Unfortunately new games can't be helped.

However, if you feel that your savegame is so important and so great that you don't want to lose it, post it here and I will fix it. It is actually not that hard of a fix, but it must be done by hand.

If you are brave enough to do it yourself:
http://ottd-darkvater.homeip.net/patche ... rains.diff

- It adds a new console command (debug build only) 'findbadtrains" that will find all your borked trains. If you then set a brakepoint where the printout occurs, you can fix the problem. Set v->u.rail.track to:
- 0x80 if the train is inside a depot
- 0x40 if the train is inside a tunnel
- ### if the train is on a piece of rail/station, ### corresponding to the rail combination.
map5 bits 0..5: track layout: bit set = track present:
bit 0: in the X direction
bit 1: in the Y direction
bit 2: in the north corner (direction W-E)
bit 3: in the south corner (direction W-E)
bit 4: in the west corner (direction N-S)
bit 5: in the east corner (direction N-S)
So 'X' is bit 0 AND bit 1: 1 | 2 = 3
Attachments
[fun]findinvisibletrains.diff
(864 Bytes) Downloaded 201 times
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."
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests