News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Track disappearing when season changes

Started by neroden, January 09, 2011, 08:33:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

The track doesn't actually disappear, but it does stop being visible -- only way to show it again is to rotate the map.

There's a problem in the tile-swapping routine which swaps out "green" for "snowy" and vice versa evidently; either that or a problem in the way the images for the track in the pak are laid out, so it's not compatible with said tile-swapping routine.  I've only identified it with Wrought Iron Track in pak128.britain.experimental, so far, but that's because that's the only track I'm using.

jamespetts

Thank you for the report - is this unique to Experimental? I ask because Experimental's changes don't go near the graphics routines.

ӔO

I think this was also happening back in 8.2.
In 8.2,  only diagonal tracks disappeared for some reason.

neroden

Quote from: jamespetts on January 09, 2011, 08:35:01 PM
Thank you for the report - is this unique to Experimental? I ask because Experimental's changes don't go near the graphics routines.
I don't play Standard any more (the TGV-on-sand-track bug is too annoying) so I wouldn't know.  :-)

The season changes are currently handled using a rather nasty piece of optimized code which swaps images according to their index numbers -- located in a place you'd never expect it -- so I'm wondering if it's something to do with the pak layout.

As AEO says, this was happening back in 8.2 as well.  That time it was due to new code in experimental managing to miss one of the cases where the optimized swap-out took place.

Unfortunately, I'm not currently finding the optimized swap-out code at all, I've completely forgotten where it is.  :-(

Junna

Quote from: AEO on January 09, 2011, 08:37:19 PM
I think this was also happening back in 8.2.
In 8.2,  only diagonal tracks disappeared for some reason.

For me, this still only happens with diagonal track.