Skip to main content
Topic: r3802 - Farm overgrowing station (Read 2456 times) previous topic - next topic

r3802 - Farm overgrowing station

After upgrading simutrans through several weeks of revisions to revision 3802, and pak64 from r300 or something to r321, I have started getting crashes shortly after loading one of my savegames. I have since managed to track the problem down to a train trying to enter a station where one of the tracks have been overgrown by a crop-tile belonging to the old farm served by the station (and the train). Last time I checked, that farm had no crop tiles.

The crash itself is at vehicle/../boden/wege/weg.h:283, but I suspect the real bug is crops overgrowing stations. I have tried building older revisions of simutrans, and the problem is still there, but I have not been able to figure out which revision I was using before. I have not tried downgrading pak64, but nothing in the changelog looks like it could cause this. Any ideas?

I am using a self-compiled simutrans (using mingw), SDL, Windows 32-bit.

Re: r3802 - Farm overgrowing station

Reply #1
Does this patch help?
Parsley, sage, rosemary, and maggikraut.

Re: r3802 - Farm overgrowing station

Reply #2
Yes, that helps. The farm tile is now gone from the station and the train drives in to load its cargo without bringing down the game.

What did you figure out that the problem was?

Re: r3802 - Farm overgrowing station

Reply #3
There was a similar bug & report some time ago. Obviously, but the fix applied back then was not enough.

The problem is in fabrik_t::fabrik_t(karte_t* wl, loadsave_t* file) : fields are not saved separately in the savegame but are restored when loading. In your case the fields was build on your track. The patch fixes the symptoms not the cause :/

Edit: Did you build the track on the field before you saved the game?

I have no idea how there could be track and field on the same tile. :/

Edit2: Patch committed with revision 3807.
Parsley, sage, rosemary, and maggikraut.

Re: r3802 - Farm overgrowing station

Reply #4
That particular track has been there for gameyears. The track to the lower left is recent, probably built during my last play session prior to this problem appearing. I don't remember seeing any fields when I built that third track/platform. In fact, I was wondering why the farm had no fields. It is as if the fields just popped into place when either saving or loading the game, but they might also have appeared before that when I was not watching. It is not a station I visit often. I am not sure what triggers field growth.