The International Simutrans Forum

 

Author Topic: Tunnel foreground image problem  (Read 4588 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4601
  • Languages: EN, DE, AT
Tunnel foreground image problem
« on: April 18, 2010, 07:00:11 PM »
see here:



The way graphic is part of the foreground image, but should go into the back image. Tested with version 1.4.6.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Tunnel foreground image problem
« Reply #1 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4601
  • Languages: EN, DE, AT
Re: Tunnel foreground image problem
« Reply #2 on: April 19, 2010, 07:22:38 PM »
I am pretty sure it is  caused by the graphic in the pak file.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Tunnel foreground image problem
« Reply #3 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4601
  • Languages: EN, DE, AT
Re: Tunnel foreground image problem
« Reply #4 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.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Tunnel foreground image problem
« Reply #5 on: April 20, 2010, 11:59:39 AM »
Oops, I realized this is "my problem" only now. Fixed...

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4601
  • Languages: EN, DE, AT
Re: Tunnel foreground image problem
« Reply #6 on: April 20, 2010, 02:28:34 PM »
at last, somebody trusts my bug report.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Tunnel foreground image problem
« Reply #7 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.
« Last Edit: April 20, 2010, 05:04:08 PM by VS »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4601
  • Languages: EN, DE, AT
Re: Tunnel foreground image problem
« Reply #8 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.

Offline Václav

  • Devotee
  • *
  • Posts: 3267
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: Tunnel foreground image problem
« Reply #9 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.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Tunnel foreground image problem
« Reply #10 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 :)

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Tunnel foreground image problem
« Reply #11 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.