DemianWSE wrote:
The nfo it generated kind of looks like the ones from my platforms, I think we are closer to make this work :D
Yeah, looks good.
Now I have a bunch of new errors
Ah! My bad. Initially, I felt being "forced" to introduce some placeholders, since much of the grf info was not available from your initial file. So, I thought leaving them to you would be a good idea.
1. The grf-ID has to be made of by 4 bytes, i.e. PG32 would be OK, but not "GRF_"PG3"". Indeed, to get PG32 as your grf-ID, its 4 bytes must be supplied as ASCII code: 50 47 03 02.
You might introduce it as your own macro in some header file (by yours):
define(JSADD, 50 47 03 02)
and then use
grfinit(JSADD,
...
or
grfinit(50 47 03 02,
...
directly. Both will work.
2. PLATFORM as well was simply a placeholder in my example. You'll have to assign it a station-ID for this particular class. See
http://www.ttdpatch.de/grfspecs/m4nfoMa ... tions.html
for an example. _ROOFS is simply the first station-ID in my set in my PLATFORMS class, so it's defined as
define(_ROOFS, 0)
There are more classes in my set for other platform types.
3. This bug had been introduced by me! Sorry about that (I hadn't been at home when I wrote it
):
Code: Select all
define(JSADD_0, "Long Platform end",
class(PLATFORMS)
callbacks(CB_LAYOUT)
exclude_widths(8)
exclude_lengths(8)
flags({GROUNDSPRITES, FOUNDATIONS})
)
This is wrong in my example!
It must read:
Code: Select all
definestation(JSADD_0, "Long Platform end",
class(PLATFORMS)
callbacks(CB_LAYOUT)
exclude_widths(8)
exclude_lengths(8)
flags({GROUNDSPRITES, FOUNDATIONS})
)
And PLATFORMS here must be (again) a 4-byte label, you'd have to define yourself.
4. The round brackets in grfinit() need to match!
regards
Michael