To complete the templates for RPA stations, I am going to give you the templates for a 7x7 RPA station.
I will try to explain what is different from a regular 7x7, so hopefully you will also then know what to change for other sizes (or for the tracked/non-tracked combo's)...
Reserved Path Aware Multi-tile station (in this case a 7x7)Attachment:
Example373.png [ 172.42 KiB | Viewed 11582 times ]
Attachment:
RPA_7x7_SOURCES.rar [154.24 KiB]
Downloaded 395 times
So.... What is different?...
* Graphics:You now have 2 graphicsgroups (logical, one for when there is no path reserved _1_, one for when there is a path reserved _2_
)
BUT! Not all of those graphics have to be different!!!
Lets say for example that you have a big station, like a huge locomotive shed with doors.
The only thing you then will want to change is the doors (closed when no path, open when there is a path chosen).
In that case only the tiles that have the doors have to have different graphics, all others can stay the same (so you can just copy them over from the non-path graphics file).
* Code:In the code there are a couple of tricky differences...
//Action-1
There is now code for both graphicsgroups, so you have two Action-1 blocks.
But!! At the end of each Action-1 block, there is now an Action-2 codeline!!These have Action-2 IDs, the first one has ID 00, the second one has ID 01.
1428 * 7 02 04
00 00 01 00 00
1628 * 7 02 04
01 00 01 00 00
This is important to keep in mind for the other Action-2s!!
Also keep in mind, that when you want to make the station smaller, you will have to delete the same parts from BOTH Action-1 blocks AND to change the number of graphics each Action-1 block has accordingly. (so, the same as with a regular multi-tile station, just twice)//Action-0
The Action-0 stays the same as for other Multi-tile stations (also for the tracked/non-tracked combo's).
Making a station reserved path aware has no influence on the properties that you define there.
Want to have a smaller station? Just do the changes I explained in previous examples..
Cool, moving on
//Action-2
Now, this has a couple of changes...
- The first line of that block changes from:
607 * 7 02 04 00 00 01 00 00
to
1630 * 14 02 04
02 81 44 00 01 01 01 00 01 01 00 00
This is where part of the RPA-magic takes place
As you can see, that Action-2 line now has ID 02 (as the two previous ones after the Action-1s, had 00 and 01).
Aha, so now we have a sequence coming up!
The regular 7x7 looked like this:
607 * 7 02 04
00 00 01 00 00
608 * 34 02 04
01 81 41 0C 0F 06 04 80 01 01 06 80 02 02 08 80 03 03 0A 80 04 04 0C 80 05 05 0E 80 06 06 00 80 //number of tracks (width)
609 * 16 02 04
02 81 41 80 0F 00 07 01 01 00 00 00 18 80 //number of platforms (length)
610 * 34 02 04
03 81 41 0C 0F 06 12 80 01 01 14 80 02 02 16 80 03 03 18 80 04 04 1A 80 05 05 1C 80 06 06 10 80
611 * 16 02 04
04 81 41 80 0F 00 07 01 03 00 01 01 02 00
612 * 34 02 04
05 81 41 0C 0F 06 20 80 01 01 22 80 02 02 24 80 03 03 26 80 04 04 28 80 05 05 2A 80 06 06 1E 80
613 * 16 02 04
06 81 41 80 0F 00 07 01 05 00 02 02 04 00
614 * 34 02 04
07 81 41 0C 0F 06 2E 80 01 01 30 80 02 02 32 80 03 03 34 80 04 04 36 80 05 05 38 80 06 06 2C 80
615 * 16 02 04
08 81 41 80 0F 00 07 01 07 00 03 03 06 00
616 * 34 02 04
09 81 41 0C 0F 06 3C 80 01 01 3E 80 02 02 40 80 03 03 42 80 04 04 44 80 05 05 46 80 06 06 3A 80
617 * 16 02 04
0A 81 41 80 0F 00 07 01 09 00 04 04 08 00
618 * 34 02 04
0B 81 41 0C 0F 06 4A 80 01 01 4C 80 02 02 4E 80 03 03 50 80 04 04 52 80 05 05 54 80 06 06 48 80
619 * 16 02 04
0C 81 41 80 0F 00 07 01 0B 00 05 05 0A 00
620 * 34 02 04
0D 81 41 0C 0F 06 58 80 01 01 5A 80 02 02 5C 80 03 03 5E 80 04 04 60 80 05 05 62 80 06 06 56 80
621 * 16 02 04
0E 81 41 80 0F 00 07 01 0D 00 06 06 0C 00
622 * 14 02 04
0F 81 0C 00 FF 01
0E 00 14 14
00 00
We now get this:
1630 * 14 02 04
02 81 44 00 01 01 01 00 01 01 00 00
1631 * 34 02 04
03 81 41 0C 0F 06 04 80 01 01 06 80 02 02 08 80 03 03 0A 80 04 04 0C 80 05 05 0E 80 06 06 00 80 //number of tracks (width)
1632 * 16 02 04
04 81 41 80 0F 00 07 01 03 00 00 00 18 80 //number of platforms (length)
1633 * 34 02 04
05 81 41 0C 0F 06 12 80 01 01 14 80 02 02 16 80 03 03 18 80 04 04 1A 80 05 05 1C 80 06 06 10 80
1634 * 16 02 04
06 81 41 80 0F 00 07 01 05 00 01 01 04 00
1635 * 34 02 04
07 81 41 0C 0F 06 20 80 01 01 22 80 02 02 24 80 03 03 26 80 04 04 28 80 05 05 2A 80 06 06 1E 80
1636 * 16 02 04
08 81 41 80 0F 00 07 01 07 00 02 02 06 00
1637 * 34 02 04
09 81 41 0C 0F 06 2E 80 01 01 30 80 02 02 32 80 03 03 34 80 04 04 36 80 05 05 38 80 06 06 2C 80
1638 * 16 02 04
0A 81 41 80 0F 00 07 01 09 00 03 03 08 00
1639 * 34 02 04
0B 81 41 0C 0F 06 3C 80 01 01 3E 80 02 02 40 80 03 03 42 80 04 04 44 80 05 05 46 80 06 06 3A 80
1640 * 16 02 04
0C 81 41 80 0F 00 07 01 0B 00 04 04 0A 00
1641 * 34 02 04
0D 81 41 0C 0F 06 4A 80 01 01 4C 80 02 02 4E 80 03 03 50 80 04 04 52 80 05 05 54 80 06 06 48 80
1642 * 16 02 04
0E 81 41 80 0F 00 07 01 0D 00 05 05 0C 00
1643 * 34 02 04
0F 81 41 0C 0F 06 58 80 01 01 5A 80 02 02 5C 80 03 03 5E 80 04 04 60 80 05 05 62 80 06 06 56 80
1644 * 16 02 04
10 81 41 80 0F 00 07 01 0F 00 06 06 0E 00
1645 * 14 02 04
11 81 0C 00 FF 01
10 00 14 14
02 00
So the sequence of the IDs now starts with 02 and then goes up (via Hexidecimal counting).
There are also two changes in the last line of the action-2 block:
- The
00 just before the end changes to
02Thats the other part of where the RPA magic takes place
- The
0E changes to
10 as that number refers to the ID of the previous codeline.
Finally, there is a difference in a sequence in the //number of platforms (length) codelines:
It was this:
607 * 7 02 04 00 00 01 00 00
608 * 34 02 04 01 81 41 0C 0F 06 04 80 01 01 06 80 02 02 08 80 03 03 0A 80 04 04 0C 80 05 05 0E 80 06 06 00 80 //number of tracks (width)
609 * 16 02 04 02 81 41 80 0F 00 07 01
01 00 00 00
18 80 //number of platforms (length)
610 * 34 02 04 03 81 41 0C 0F 06 12 80 01 01 14 80 02 02 16 80 03 03 18 80 04 04 1A 80 05 05 1C 80 06 06 10 80
611 * 16 02 04 04 81 41 80 0F 00 07 01
03 00 01 01
02 00
612 * 34 02 04 05 81 41 0C 0F 06 20 80 01 01 22 80 02 02 24 80 03 03 26 80 04 04 28 80 05 05 2A 80 06 06 1E 80
613 * 16 02 04 06 81 41 80 0F 00 07 01
05 00 02 02
04 00
614 * 34 02 04 07 81 41 0C 0F 06 2E 80 01 01 30 80 02 02 32 80 03 03 34 80 04 04 36 80 05 05 38 80 06 06 2C 80
615 * 16 02 04 08 81 41 80 0F 00 07 01
07 00 03 03
06 00
616 * 34 02 04 09 81 41 0C 0F 06 3C 80 01 01 3E 80 02 02 40 80 03 03 42 80 04 04 44 80 05 05 46 80 06 06 3A 80
617 * 16 02 04 0A 81 41 80 0F 00 07 01
09 00 04 04
08 00
618 * 34 02 04 0B 81 41 0C 0F 06 4A 80 01 01 4C 80 02 02 4E 80 03 03 50 80 04 04 52 80 05 05 54 80 06 06 48 80
619 * 16 02 04 0C 81 41 80 0F 00 07 01
0B 00 05 05
0A 00
620 * 34 02 04 0D 81 41 0C 0F 06 58 80 01 01 5A 80 02 02 5C 80 03 03 5E 80 04 04 60 80 05 05 62 80 06 06 56 80
621 * 16 02 04 0E 81 41 80 0F 00 07 01
0D 00 06 06
0C 00
622 * 14 02 04 0F 81 0C 00 FF 01 0E 00 14 14 00 00
So going from
right to left, up to down:
18 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D
These numbers refer back to the IDs of the two previous action-2 lines!!
(except the first one, that is always 18, rather than 00, dunno why, it just has to
)
But our ID numbers have changed, so now what?
Well, change accordingly...
Just add +2 (as we have added two Action-2s at the end of the Action-1 blocks).
So the sequence is:
18 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Looks like this now:
1630 * 14 02 04 02 81 44 00 01 01 01 00 01 01 00 00
1631 * 34 02 04 03 81 41 0C 0F 06 04 80 01 01 06 80 02 02 08 80 03 03 0A 80 04 04 0C 80 05 05 0E 80 06 06 00 80 //number of tracks (width)
1632 * 16 02 04 04 81 41 80 0F 00 07 01
03 00 00 00
18 80 //number of platforms (length)
1633 * 34 02 04 05 81 41 0C 0F 06 12 80 01 01 14 80 02 02 16 80 03 03 18 80 04 04 1A 80 05 05 1C 80 06 06 10 80
1634 * 16 02 04 06 81 41 80 0F 00 07 01
05 00 01 01
04 00
1635 * 34 02 04 07 81 41 0C 0F 06 20 80 01 01 22 80 02 02 24 80 03 03 26 80 04 04 28 80 05 05 2A 80 06 06 1E 80
1636 * 16 02 04 08 81 41 80 0F 00 07 01
07 00 02 02
06 00
1637 * 34 02 04 09 81 41 0C 0F 06 2E 80 01 01 30 80 02 02 32 80 03 03 34 80 04 04 36 80 05 05 38 80 06 06 2C 80
1638 * 16 02 04 0A 81 41 80 0F 00 07 01
09 00 03 03
08 00
1639 * 34 02 04 0B 81 41 0C 0F 06 3C 80 01 01 3E 80 02 02 40 80 03 03 42 80 04 04 44 80 05 05 46 80 06 06 3A 80
1640 * 16 02 04 0C 81 41 80 0F 00 07 01
0B 00 04 04
0A 00
1641 * 34 02 04 0D 81 41 0C 0F 06 4A 80 01 01 4C 80 02 02 4E 80 03 03 50 80 04 04 52 80 05 05 54 80 06 06 48 80
1642 * 16 02 04 0E 81 41 80 0F 00 07 01
0D 00 05 05
0C 00
1643 * 34 02 04 0F 81 41 0C 0F 06 58 80 01 01 5A 80 02 02 5C 80 03 03 5E 80 04 04 60 80 05 05 62 80 06 06 56 80
1644 * 16 02 04 10 81 41 80 0F 00 07 01
0F 00 06 06
0E 00
1645 * 14 02 04 11 81 0C 00 FF 01 10 00 14 14 02 00
With these changes all the numbers in the Action-2 block are ok now.
So, if you want to make the station smaller, you can now do the changes as I have explained in previous examples.
//Action-3
As I have explained in previous examples, there is a reference to the last Action-2 ID in the Action-3
It used to be this:
623 * 10 03 04 01 15 01 FE
0F 00 00 00
and now becomes this:
1646 * 10 03 04 01 1B 01 FE
11 00 00 00
As 11 now is the last ID-number in the Action-2 block.
If the station is smaller and has fewer Action-2 lines (if you make it shorter), you need to change that number, but that you know from previous examples.
//Action-4 is not affected.
Thats it!
I know, a lot to take in again
Basically, the thing is that we have added two extra Action-2 codelines, these change some other numbers and references. And that is what you need to be careful of, that those changes are made correct....
But this template should help you get on your way, the correct changes have been made, so you can now start shaving off stuff to make the station smaller, just like I explained in previous examples.
Dont hesitate to ask if you have any questions