The International Simutrans Forum

PakSets and Customization => Pak128 Bug Reports => Pak128 => Pak128 Solved Bug Reports => Topic started by: Dwachs on April 18, 2010, 07:00:11 PM

Title: Tunnel foreground image problem
Post by: Dwachs on April 18, 2010, 07:00:11 PM
see here:

(http://img1.imagilive.com/0410/tunnel1.jpg)

The way graphic is part of the foreground image, but should go into the back image. Tested with version 1.4.6.
Title: Re: Tunnel foreground image problem
Post by: Václav on April 19, 2010, 06:24:05 PM
Since some time I have used this tunnel very rarely ... but similar behaviour was in one very old release of *.exe files. But I don't remember that number. So I think it can be caused by *.exe file, not graphics.
Title: Re: Tunnel foreground image problem
Post by: Dwachs on April 19, 2010, 07:22:38 PM
I am pretty sure it is  caused by the graphic in the pak file.
Title: Re: Tunnel foreground image problem
Post by: Václav on April 19, 2010, 08:05:49 PM
So ... could you send me link to track what is in the front of tunnel? I would like to test something to making myself be sure it is right what you say.
Title: Re: Tunnel foreground image problem
Post by: Dwachs on April 20, 2010, 06:25:26 AM
link: http://forum.simutrans.com/index.php?topic=1442.msg41304#msg41304

you could as well compile simutrans yourself and comment out line boden/grund.cc:1078

Code: [Select]
#use big images for back to prevent graphics problems
#front is not displayed properly.
Imho this is no longer true (if it was true anyway)

Change the W-image part to:
Code: [Select]
#BackImage[W]=way-tunnel-rail-128.1.1
#FrontImage[W]=way-tunnel-rail-128.1.1
BackImage[W]=way-tunnel-rail-128.0.1
FrontImage[W]=way-tunnel-rail-128.0.0
does the trick. See attachment.
Title: Re: Tunnel foreground image problem
Post by: VS on April 20, 2010, 11:59:39 AM
Oops, I realized this is "my problem" only now. Fixed...
Title: Re: Tunnel foreground image problem
Post by: Dwachs on April 20, 2010, 02:28:34 PM
at last, somebody trusts my bug report.
Title: Re: Tunnel foreground image problem
Post by: VS on April 20, 2010, 04:57:18 PM
I already inspected this graphic a few months ago... but there is so much "ancient lore" that I simply decided to trust the comment then. Of course with new drawing it really shines :::) One persisting issue is that the graphic doesn't cover entirely trains in the back part of tile, but... well... this particular picture will be replaced later anyway, so why care now.
Title: Re: Tunnel foreground image problem
Post by: Dwachs on April 20, 2010, 05:34:53 PM
I already inspected this graphic a few months ago... but there is so much "ancient lore" that I simply decided to trust the comment then. Of course with new drawing it really shines :::)
imho the comment was wrong before with the old drawing as well.
Quote
One persisting issue is that the graphic doesn't cover entirely trains in the back part of tile, but...
there is another code bug in action.
Title: Re: Tunnel foreground image problem
Post by: Václav on April 20, 2010, 06:11:02 PM
at last, somebody trusts my bug report.

I did not write I don't trust this bug report.

I only wrote about experience with one very old release - and based on that experience I thought it could appear again.
Title: Re: Tunnel foreground image problem
Post by: VS on April 20, 2010, 07:59:39 PM
there is another code bug in action.
I would argue that it's impossible to get this special case (tunnel mouth) right without some compromise with graphics or forther information... but if you can make the vehicles disappear, all the better :)
Title: Re: Tunnel foreground image problem
Post by: VS on May 05, 2012, 10:39:59 AM
All tunnels are getting replacements, and much has changed since. Closing - open a new thread for discussion of bugs in new graphics, if needed.