In an attempt to solve the "disappearing depot grid lines" problem I noticed in HEQS and OpenGFX+ Trains, I decided to learn to code my own newGRF, hopefully ultimately making an add-on to HEQS that would not destroy the grid lines. But as soon as I followed through the tutorial to make a single locomotive, it seems that the vertical grid lines in train depots, which help indicate how many station tiles long a train is, are gone.
They're still there in a climate where the new loco is not available:
But are missing in any climate where the new loco is available:
Why do the vertical grid lines disappear, and how do I make them come back?
Making a super-basic newGRF with one engine causes depot grid to disappear
Moderator: Graphics Moderators
-
- Engineer
- Posts: 9
- Joined: 04 Aug 2021 03:06
Re: Making a super-basic newGRF with one engine causes depot grid to disappear
The grid lines are only shown if all available trains are full-length (i.e. 32px), as defined in bit 3 or NewGRF global variable 1E/9E.Droideka30 wrote: ↑18 Aug 2021 18:09 In an attempt to solve the "disappearing depot grid lines" problem I noticed in HEQS and OpenGFX+ Trains, I decided to learn to code my own newGRF, hopefully ultimately making an add-on to HEQS that would not destroy the grid lines. But as soon as I followed through the tutorial to make a single locomotive, it seems that the vertical grid lines in train depots, which help indicate how many station tiles long a train is, are gone.
They're still there in a climate where the new loco is not available:
But are missing in any climate where the new loco is available:
Why do the vertical grid lines disappear, and how do I make them come back?
See here: https://newgrf-specs.tt-wiki.net/wiki/GlobalVariables
Ex TTDPatch Coder
Patch Pack, Github
Patch Pack, Github
Re: Making a super-basic newGRF with one engine causes depot grid to disappear
in case you're using NML, you should check if this line is in your NewGRF:
if this is the case, then you need to replace all trains, as the default vehicle set does not have this bit set. (but almost all NewGRF vehicle sets do)
the grid lines are there if either all or none of the vehicles have this bit set, there can't be a mix.
Code: Select all
train_width_32_px = 1;
the grid lines are there if either all or none of the vehicles have this bit set, there can't be a mix.
-
- Engineer
- Posts: 9
- Joined: 04 Aug 2021 03:06
Re: Making a super-basic newGRF with one engine causes depot grid to disappear
Thanks, that worked!
Who is online
Users browsing this forum: No registered users and 5 guests