im coding now stations. I need help with it. My problem is callbacks generally.
I MUST USE NFO!!! Not NML or m4nfo!
Now i have 1x4 custom station with start sprite (0), 2 continous sprites (1,2) and end sprite (3):
For custom layout i have this code:
Code: Select all
// custom station layout
-1*0 02 04 01
89 // get lowest doubleword
41 // platform info and relative position for individually built sections
00 // shift?? <- WHAT IS IT??
0F // mask?? <- WHAT IS IT??
00
00 00 04 00 FF // what this bytes means? I know only third byte is length of station (maybe third and fourth byte?)
00 00 00 00 00 00 00 00 02 FF // 2 // this load second pair of sprites defined in Action 00
01 00 00 00 01 00 00 00 02 FF // 1 // this load second pair of sprites defined in Action 00
02 00 00 00 02 00 00 00 04 FF // 0 // this load fourth pair of sprites defined in Action 00
03 00 00 00 03 00 00 00 0A FF // 3 ?? <- NOT WORKING AND LOAD FIRST PAIR DEFINED IN ACTION 00
// callback switch?
-1*0 02 04 02
81 // get Byte
0C // 0C - callback
00 // shift
FF // mask
01 // one (range bellow)
01 00 14 14 // set action=01 if callback=14
00 00 // otherwise use this set
// info about aupper actions
-1*0 03 04 // Action 3, assigns graphics sets to feature IDs
01 // Number of IDs this action 3 associates graphics with, just the one
03 // Station-ID
01 // ??? what is this? Count of modification bellow?
FE 03 00 // FE all cargos = action 03, what is 00?
00 00 // others default graphic set
2) How can i add next track in same layout?
3) Exist way how define start sprite, continous sprites and end sprite for variable station?
4) How to cargo change sprites?
5) How to animation?
Im study many hours on Wiki (its not good station documentation) and this and other forums. But no answers for my questions.