It is currently 29 Mar 2024, 08:38

WELCOME TO SIMUSCAPE!


Please Sign in or Register to enable all features, remove restrictions and gain additional access!
For information on how to bypass the CAPTCHA or to contact Team Simuscape, Continue Here!


Post a new topicPost a reply Page 1 of 1   [ 3 posts ]
Author Message
 Post subject: Trains and Action0
PostPosted: 24 Jan 2013, 23:30 
Simuscape Admin
User avatar

Joined: 01 May 2012, 11:38
Posts: 580
OK, so I've thrown myself into coding trains. For the sake of learning, and the fact that I suck at drawing sprites, I have decoded AndersI's Swedish trains and try to recode parts of it from scratch by myself just to learn. Using the tutorial at TTWiki, GRFspecs and some reverse engineering I think I have learned quite a bit, although I have a question about a string of code I can't get my head around.

Code:
 386 * 56    00 00 16 01 18 00 EA 74 03 20 04 32 06 07 05 00 09 B4 00 0B CE 13 0D F0 0E 3C 4C 00 00 13 00 14
    00 15 00 16 4E 24 00 17 34 19 30 1B 00 00 1C 00 1F 4E 20 00 21 01 22 38
So far I've figured out the following:
00 - Action 0
00 - Feature (= Train)
16 - No. properties to set
01 - No. vehicles to change
18 - Vehicle ID
00 - ???
What does this 00 do?
Looking at GRFspecs there is no 00-property in Action0 to change.

_________________
Image

Simuscape
Site Admin & Developer


Top
 Offline Profile  
 
 Post subject: Re: Trains and Action0
PostPosted: 25 Jan 2013, 00:16 
Player
Player

Joined: 12 Mar 2012, 02:39
Posts: 469
You need to look at 'Action 0 - General properties for all vehicle types' for some of them; 00 is the introduction date.

Here is the break down :
Code:
386 * 56    00 00 16 01 18 
 00 EA 74
 03 20
 04 32
 06 07
 05 00
 09 B4 00
 0B CE 13
 0D F0
 0E 3C 4C 00 00
 13 00
 14 00
 15 00
 16 4E
 24 00
 17 34
 19 30
 1B 00 00
 1C 00
 1F 4E
 20 00
 21 01


Top
 Offline Profile  
 
 Post subject: Re: Trains and Action0
PostPosted: 25 Jan 2013, 10:04 
Simuscape Admin
User avatar

Joined: 01 May 2012, 11:38
Posts: 580
OzTrans wrote:
You need to look at 'Action 0 - General properties for all vehicle types' for some of them; 00 is the introduction date.
Right, didn't even think that far.
Thanks a lot!

_________________
Image

Simuscape
Site Admin & Developer


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 3 posts ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Status SimuscapeTerms of UseAbout Simuscape

Design by SAC © 2012-2015, Sweden • Powered by phpBB • Based on twilightBB by Daniel St. Jules