In NFO, it is possible to determine whether another GRF is loaded or not (via var 88).
But is there a way to determine which version (VRSN) of this other GRF is loaded?
[NFO] Access VRSN of another NewGRF
Moderator: Graphics Moderators
Re: [NFO] Access VRSN of another NewGRF
Yes, take a look at:
https://newgrf-specs.tt-wiki.net/wiki/R ... Parameters
https://newgrf-specs.tt-wiki.net/wiki/R ... Parameters
Code: Select all
<Sprite-number> * <Length> 0D <target> 00 FE FE <GRFID>
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
-
- Route Supervisor
- Posts: 466
- Joined: 15 Jun 2007 09:27
- Skype: madchimiste
- Location: Berlin, Deutschland
Re: [NFO] Access VRSN of another NewGRF
Thank you for the quick answer, frosch.
That raises another question, however. In the action D code:
<target> is the parameter to read from the other NewGRF.
What target should I use, then? "VRSN"? "VRSN" 00 ? Would that work, considering the specs say that <target> should be Byte-sized?
That raises another question, however. In the action D code:
Code: Select all
<Sprite-number> * <Length> 0D <target> 00 FE FE <GRFID>
What target should I use, then? "VRSN"? "VRSN" 00 ? Would that work, considering the specs say that <target> should be Byte-sized?
Re: [NFO] Access VRSN of another NewGRF
no, "target" is the place where you want to store the value to that you read from the other GRF, for use in later operations
-
- Route Supervisor
- Posts: 466
- Joined: 15 Jun 2007 09:27
- Skype: madchimiste
- Location: Berlin, Deutschland
Re: [NFO] Access VRSN of another NewGRF
Oops.
Sorry, I didn't read attently the specs...
I appreciate your help, thank you!
Sorry, I didn't read attently the specs...
I appreciate your help, thank you!
Who is online
Users browsing this forum: No registered users and 27 guests