lepkka wrote:-proper ID. Now the first two bytes will be 62 70,next 01 (my first project),next 02 (second release, and so on)
Oi! No!
I made that mistake with the first few GRFs I made. If the GRFs are equivilant[0], please do not change the GRFid; at best it means we have to re-enable the GRF. If, OTOH, it is reasonable to use both GRFs simultaneously, then you do need to change the GRFid.
[0] That is, the new one should replace the old one.
lepkka wrote:I will need some help with coding. i'm doing different sprites for the others climates, but no idea about actions (7/9?)
Use action 7. check variable 83 against one or more of conditions 2-5.
I would code this type of GRF as follows:
Code: Select all
0*4
0*0 07 83 01 02 03 00 // if toyland climate, refuse to load
0*0 08 //...
0*0 0A //...
//real sprites for temp climate
0*0 07 83 01 02 00 00 // if temperate climate, skip everything else
0*0 0A //...
//real sprites for arctic climate
0*0 07 83 01 02 01 00 // if arctic climate, skip everything else
0*0 0A //...
//real sprites for tropic climate
Fill in the comments as appropriate, and then run the mess through NFORenum, which will automatically number the sprites, count the bytes, and set sprite 0 correctly.