what does this nfo line mean? action 00

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

what does this nfo line mean? action 00

Post by broodje »

could someone please help me decyfer this pease of code?, it is from an old plant.nfo file, and I don't want to change it (well not yet :P) but I do want to understand it, so I can make nfo files on my own.
I just copied 1 line (action 00) wich gives me the most trouble to folow atm

Code: Select all

2 * 47	 00 00 12 01 0D 00 96 41 03 19 04 19 06 07 07 0A 05 00 08 01 09 8C
 00 0B 54 07 0D 01 0E 4C 3C 00 00 12 FD 13 01 14 47 15 00 16 3F 18 01 19 2E 
I decoded to this:
2 = sprite number
47 = number of bytes
00 = action 0
00 = this action is for trains
12 = it changes 12 options
01 = these 12 changes are done for 1 train
0D = how many vehicels it should skip before this action 0 should be aplied 0D are 13 vehicels, but this line : 4 * 4 01 00 04 08 say's this grf holds 4 engines(well cars) each made of 8th directions so I'm lost there

anyway lets go one :)

00 = date of introduction wich uses 2 bytes, so 96 41 are the day's after 1920 the train is introduced? wich would be 38465 day's?

03 = vehicle life in years, wich is 19 in hex, or 25 in years?
04 = model life in years, wich is 19 aswell, so 25 years
06 = climates available (bit mask), what does that mean it is availebel in climate 07?

oke next part is clear it gives speed and cargo loading speed...
07 0A 05 00 08 01 09 8C
next is
00 = date of introduction again??? in other words I'm lost here :P

sory for braking down the code this simple, but I'm a simple minded man, so you have to live with it :P
broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

Post by broodje »

hmm oke I missed the ofset meaning, it is just the vehicel ID :) so this action 0 is aplied to vehicel ID 13.

oh and the date of introduction 9641 is actualy 4196, becouse of the byte order.
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post by nilsi »

Please take a look and revisit (former) sprites.txt now newgrf.txt I think.
Hope I can help :-)

2 * 47   
00
00
12
01
0D vehicle id the new data will applied to
00 introduction in days after 1920
96
41 value = ( 41hex * 256dez ) + 96hex = 16790 dez is approx 41 years
03
19
04
19
06 climates available in
07 = temp + arctic + tropic
> How is the climate bitmask (action 0 property 06) used?
It is a simple bit mask, being 01 = temperate, 02 = arctic, 04 =
sub-tropical and 08 = toyland, i.e. when specifying a vehicle to be used in
temperate and arctic the bit mask has to be set to 03, ...
07
0A

05 tracktype
00 =railroad
08 AI flag
01 = AI will use it only for passengers
09 speed
8C
00
0B power
54
07
0D running cost factor
01
0E running cost base
4C
3C (4c3c runing cost base for electric)
00
00
12 sprite ID
FD = new sprites
13 dual headed
01 is dual headed (i do not know what it means)
14 cargo capacity
47 47hex tons or crates of good or 100 litres or so
15 cargo type
00 =passengers
16 vehicle weight in tons
3F = 3F hex tons
18 AI engine rank
01
19 sparks and sound
2E = some electricity effects
broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

Post by broodje »

aaah tnx, that helped indeed. now I just get other crashes :), but inthe end I will understand it, even if it takes my whole 20th year (oh wait only 13 minutes left :) )
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: superdrive1 and 23 guests