[NML] Y-Offset of trains waiting to leave Depot

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
Quast65
Tycoon
Tycoon
Posts: 2642
Joined: 09 Oct 2011 13:51
Location: The Netherlands

[NML] Y-Offset of trains waiting to leave Depot

Post by Quast65 »

Hi all,

I am fiddeling around a bit with trains and I have an issue with trains when shown waiting to leave a depot:
Example683.png
Example683.png (1.31 KiB) Viewed 3024 times
As you can see they "float" a bit ;-) 2 pixels too high in my case.
I searched a bit and I understand that it is a known issue, but I can't find the solution.
Can anyone help me?
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: [NML] Y-Offset of trains waiting to leave Depot

Post by Eddi »

typically you put a line like

Code: Select all

traininfo_y_offset = 2;
somewhere near the beginning of your nml file
User avatar
Quast65
Tycoon
Tycoon
Posts: 2642
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: [NML] Y-Offset of trains waiting to leave Depot

Post by Quast65 »

Eddi wrote: 01 Dec 2021 20:28 typically you put a line like

Code: Select all

traininfo_y_offset = 2;
somewhere near the beginning of your nml file
Thank you Eddi, that did the trick! :bow:
I placed the line just after the Parameter definitions.

Quoting Erato here for attention, as I believe his North Korean Trainset has the same issue:
Erato wrote:

And to complete it, in NFO it's this:

"action 0D Y-Offset for train sprites (8E)"

Code: Select all

0D 8E 00 FF FF 02 00 00 00
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests