You dont have to use the 7x7
I just need it as a base to explain multiple size stations, as shaving off things is easier than shaving ON things
That said, time to shave things off!!
Razors and/or axes ready? Here we go!!
6x7 Fully Tracked StationAttachment:
Example365.png [ 83.41 KiB | Viewed 14059 times ]
In this example I am going to show you how to convert the 7x7 templates to a 6x7 station.
So 6 tracks wide, 7 platforms long.
The changes in graphics are fairly easy to understand, the changes in code are a bit more difficult (loads of tiny things need to change and forgetting one of those can have a major impact
)
So read carefully, double/triple-check and make sure you have back-ups of your earlier working GRFs!!
Its a lot to take in, but just follow it step by step and you hopefully get a result
Lets start with the graphics:As the station is one track less wide, we need to delete the four last graphics in each row, thats all
So, copy/paste the 7x7 BASE template, rename it for example to 6x7 Template and save it, then start deleting graphics.
So the BASE-template will look like this (in this case I also changed the menu graphics, so that it says 6x7):
Attachment:
Template_6x7_32bpp_BASE.png [ 122.08 KiB | Viewed 14059 times ]
Select and delete the white and blue and save the graphicsfile as a regular 32bpp template (like you have done often before).
Giving you this:
Attachment:
Template_6x7_32bpp.png [ 99.13 KiB | Viewed 14059 times ]
Do the same for the 8bpp template, so copy/paste, rename, save and delete the 4 last graphics on each row.
Now the code:First, make all the usual changes:- Paths/names to graphicsfiles
- Station-IDs
- Purchasemenu-ID
- The hight of the boundingboxes (not really necessary right now, that can also be done after creating the station)
- Name you want to give to the station
- Name of Purchase Submenu
That way you wont forget to do that afterwards and it is something you have done often times before, so you should be comfortable with making those changes
Now the harder part.... I will start again from top to bottom://Action-1 Block
Code:
407 * 6 01 04 01 FF C6 00
needs to be changed to
Code:
407 * 6 01 04 01 FF AA 00
As we now have 6x7x4 stationgraphics + 2 menugraphics = 170, which is AA in Hexadecimal.
(Again, the link to the very handy online hexadecimal conversiontool:
http://www.statman.info/conversions/hexadecimal.html )
Now the graphicsblock...
I am going to take one of the rows as an example, do the same for the other rows, make sure that you dont delete the Menusprite ones!!
// Graphics of row-1
408 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 10 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 10 12 64 170 -31 -139 normal chunked
409 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 90 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 90 12 64 170 -53 -150 normal chunked
410 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 170 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 170 12 64 170 -31 -139 normal chunked
411 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 250 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 250 12 64 170 -9 -150 normal chunked
412 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 330 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 330 12 64 170 -31 -139 normal chunked
413 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 410 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 410 12 64 170 -53 -150 normal chunked
414 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 490 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 490 12 64 170 -31 -139 normal chunked
415 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 570 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 570 12 64 170 -9 -150 normal chunked
416 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 650 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 650 12 64 170 -31 -139 normal chunked
417 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 730 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 730 12 64 170 -53 -150 normal chunked
418 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 810 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 810 12 64 170 -31 -139 normal chunked
419 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 890 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 890 12 64 170 -9 -150 normal chunked
420 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 970 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 970 12 64 170 -31 -139 normal chunked
421 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1050 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1050 12 64 170 -53 -150 normal chunked
422 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1130 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1130 12 64 170 -31 -139 normal chunked
423 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1210 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1210 12 64 170 -9 -150 normal chunked
424 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1290 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1290 12 64 170 -31 -139 normal chunked
425 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1370 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1370 12 64 170 -53 -150 normal chunked
426 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1450 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1450 12 64 170 -31 -139 normal chunked
427 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1530 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1530 12 64 170 -9 -150 normal chunked
428 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1610 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1610 12 64 170 -31 -139 normal chunked
429 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1690 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1690 12 64 170 -53 -150 normal chunked
430 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1770 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1770 12 64 170 -31 -139 normal chunked
431 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1850 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1850 12 64 170 -9 -150 normal chunked
432 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 1930 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 1930 12 64 170 -31 -139 normal chunked
433 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 2010 12 64 170 -53 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 2010 12 64 170 -53 -150 normal chunked
434 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 2090 12 64 170 -31 -139 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 2090 12 64 170 -31 -139 normal chunked
435 c:/grfcodec603/auzstations/gfx/template_6x7_8bpp_EMPTY.png 8bpp 2170 12 64 170 -9 -150 normal chunked
| c:/grfcodec603/auzstations/gfx/template_6x7_32bpp.png 32bpp 2170 12 64 170 -9 -150 normal chunkedDelete the last 8 lines of code in each row (marked in red), again DONT delete the last lines for the menugraphics!!
These 8 lines refer to the last 4 graphics from the 32bpp file
and the 8bpp file on each row.
You will then end up with this:
Easy
Now we move on
//Action-0 Block
Change
Code:
606 * 2484 00 04 08 01 16 08 "AS08" 0B 02 0C BF 0D BF 11 FF 14 00 15 00 09 64
to
Code:
606 * 2484 00 04 08 01 16 08 "AS08" 0B 02 0C DF 0D BF 11 FF 14 00 15 00 09 56
There are two changes in this line:
606 * 2484 00 04 08 01 16 08 "AS08" 0B 02
0C DF 0D BF 11 FF 14 00 15 00
09 56Property
0C now has value DF, as the station now is 6 tracks wide (DF in this case stands for 6, I will give all the values in another post for reference)
Property
09 now has value 56. We have 6x7x2 stationtiles + 2 menusprites = 86, which in Hexadecimal is 56
Still sounds logical, moving on:
From this block, delete the 14 last lines, indicated in red (as we have 7x2=14 tiles less than the 7x7):
F4 03 00 00 00 00 00 10 05 03 2D 04 00 00 00 0B 00 10 05 03 2E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 2F 04 00 00 0B 00 00 05 10 03 30 04 00 00 80
F1 04 00 80 80 //menu graphic
F2 04 00 80 80 //menu graphic
F4 03 00 00 00 00 00 10 05 03 31 04 00 00 00 0B 00 10 05 03 32 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 33 04 00 00 0B 00 00 05 10 03 34 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 35 04 00 00 00 0B 00 10 05 03 36 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 37 04 00 00 0B 00 00 05 10 03 38 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 39 04 00 00 00 0B 00 10 05 03 3A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 3B 04 00 00 0B 00 00 05 10 03 3C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 3D 04 00 00 00 0B 00 10 05 03 3E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 3F 04 00 00 0B 00 00 05 10 03 40 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 41 04 00 00 00 0B 00 10 05 03 42 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 43 04 00 00 0B 00 00 05 10 03 44 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 45 04 00 00 00 0B 00 10 05 03 46 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 47 04 00 00 0B 00 00 05 10 03 48 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 49 04 00 00 00 0B 00 10 05 03 4A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 4B 04 00 00 0B 00 00 05 10 03 4C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 4D 04 00 00 00 0B 00 10 05 03 4E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 4F 04 00 00 0B 00 00 05 10 03 50 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 51 04 00 00 00 0B 00 10 05 03 52 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 53 04 00 00 0B 00 00 05 10 03 54 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 55 04 00 00 00 0B 00 10 05 03 56 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 57 04 00 00 0B 00 00 05 10 03 58 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 59 04 00 00 00 0B 00 10 05 03 5A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 5B 04 00 00 0B 00 00 05 10 03 5C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 5D 04 00 00 00 0B 00 10 05 03 5E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 5F 04 00 00 0B 00 00 05 10 03 60 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 61 04 00 00 00 0B 00 10 05 03 62 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 63 04 00 00 0B 00 00 05 10 03 64 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 65 04 00 00 00 0B 00 10 05 03 66 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 67 04 00 00 0B 00 00 05 10 03 68 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 69 04 00 00 00 0B 00 10 05 03 6A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 6B 04 00 00 0B 00 00 05 10 03 6C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 6D 04 00 00 00 0B 00 10 05 03 6E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 6F 04 00 00 0B 00 00 05 10 03 70 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 71 04 00 00 00 0B 00 10 05 03 72 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 73 04 00 00 0B 00 00 05 10 03 74 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 75 04 00 00 00 0B 00 10 05 03 76 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 77 04 00 00 0B 00 00 05 10 03 78 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 79 04 00 00 00 0B 00 10 05 03 7A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 7B 04 00 00 0B 00 00 05 10 03 7C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 7D 04 00 00 00 0B 00 10 05 03 7E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 7F 04 00 00 0B 00 00 05 10 03 80 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 81 04 00 00 00 0B 00 10 05 03 82 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 83 04 00 00 0B 00 00 05 10 03 84 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 85 04 00 00 00 0B 00 10 05 03 86 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 87 04 00 00 0B 00 00 05 10 03 88 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 89 04 00 00 00 0B 00 10 05 03 8A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 8B 04 00 00 0B 00 00 05 10 03 8C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 8D 04 00 00 00 0B 00 10 05 03 8E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 8F 04 00 00 0B 00 00 05 10 03 90 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 91 04 00 00 00 0B 00 10 05 03 92 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 93 04 00 00 0B 00 00 05 10 03 94 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 95 04 00 00 00 0B 00 10 05 03 96 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 97 04 00 00 0B 00 00 05 10 03 98 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 99 04 00 00 00 0B 00 10 05 03 9A 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 9B 04 00 00 0B 00 00 05 10 03 9C 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 9D 04 00 00 00 0B 00 10 05 03 9E 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 9F 04 00 00 0B 00 00 05 10 03 A0 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 A1 04 00 00 00 0B 00 10 05 03 A2 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 A3 04 00 00 0B 00 00 05 10 03 A4 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 A5 04 00 00 00 0B 00 10 05 03 A6 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 A7 04 00 00 0B 00 00 05 10 03 A8 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 A9 04 00 00 00 0B 00 10 05 03 AA 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 AB 04 00 00 0B 00 00 05 10 03 AC 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 AD 04 00 00 00 0B 00 10 05 03 AE 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 AF 04 00 00 0B 00 00 05 10 03 B0 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 B1 04 00 00 00 0B 00 10 05 03 B2 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 B3 04 00 00 0B 00 00 05 10 03 B4 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 B5 04 00 00 00 0B 00 10 05 03 B6 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 B7 04 00 00 0B 00 00 05 10 03 B8 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 B9 04 00 00 00 0B 00 10 05 03 BA 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 BB 04 00 00 0B 00 00 05 10 03 BC 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 BD 04 00 00 00 0B 00 10 05 03 BE 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 BF 04 00 00 0B 00 00 05 10 03 C0 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 C1 04 00 00 00 0B 00 10 05 03 C2 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 C3 04 00 00 0B 00 00 05 10 03 C4 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 C5 04 00 00 00 0B 00 10 05 03 C6 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 C7 04 00 00 0B 00 00 05 10 03 C8 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 C9 04 00 00 00 0B 00 10 05 03 CA 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 CB 04 00 00 0B 00 00 05 10 03 CC 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 CD 04 00 00 00 0B 00 10 05 03 CE 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 CF 04 00 00 0B 00 00 05 10 03 D0 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 D1 04 00 00 00 0B 00 10 05 03 D2 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 D3 04 00 00 0B 00 00 05 10 03 D4 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 D5 04 00 00 00 0B 00 10 05 03 D6 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 D7 04 00 00 0B 00 00 05 10 03 D8 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 D9 04 00 00 00 0B 00 10 05 03 DA 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 DB 04 00 00 0B 00 00 05 10 03 DC 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 DD 04 00 00 00 0B 00 10 05 03 DE 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 DF 04 00 00 0B 00 00 05 10 03 E0 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 E1 04 00 00 00 0B 00 10 05 03 E2 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 E3 04 00 00 0B 00 00 05 10 03 E4 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 E5 04 00 00 00 0B 00 10 05 03 E6 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 E7 04 00 00 0B 00 00 05 10 03 E8 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 E9 04 00 00 00 0B 00 10 05 03 EA 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 EB 04 00 00 0B 00 00 05 10 03 EC 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 ED 04 00 00 00 0B 00 10 05 03 EE 04 00 00 80
F3 03 00 00 00 00 00 05 10 03 EF 04 00 00 0B 00 00 05 10 03 F0 04 00 00 80Ok, also easy, but now a tiny important thing, the first 2 digits of the //menu graphic have to change.
We now have this line as last for that code-block:
F3 03 00 00 00 00 00 05 10 03 D3 04 00 00 0B 00 00 05 10 03
D4 04 00 00 80
D4 04 is an important number, as the //menu graphic will get the 2 next numbers, so D5 04 and D6 04 (hexadecimal counting)
So this:
Code:
F1 04 00 80 80 //menu graphic
F2 04 00 80 80 //menu graphic
Changes to this:
Code:
D5 04 00 80 80 //menu graphic
D6 04 00 80 80 //menu graphic
(this now explains why the original numbers were F1 04 and F2 04, as the last number in the block for the 7x7 was F0 04)
So the entire Action-0 block should now look like this:
Next (and in this case final changes, but these are a bit harder, be careful!)
//Action-2 Block
In the action-2 Block we now have to shorten the code-lines that refer to the width of the station, these:
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
It has to become this:
Code:
//Action-2 Block
607 * 7 02 04 00 00 01 00 00
608 * 34 02 04 01 81 41 0C 0F 05 04 80 01 01 06 80 02 02 08 80 03 03 0A 80 04 04 0C 80 05 05 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 05 10 80 01 01 12 80 02 02 14 80 03 03 16 80 04 04 18 80 05 05 0E 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 05 1C 80 01 01 1E 80 02 02 20 80 03 03 22 80 04 04 24 80 05 05 1A 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 05 28 80 01 01 2A 80 02 02 2C 80 03 03 2E 80 04 04 30 80 05 05 26 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 05 34 80 01 01 36 80 02 02 38 80 03 03 3A 80 04 04 3C 80 05 05 32 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 05 40 80 01 01 42 80 02 02 44 80 03 03 46 80 04 04 48 80 05 05 3E 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 05 4C 80 01 01 4E 80 02 02 50 80 03 03 52 80 04 04 54 80 05 05 4A 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
What has changed....
The segments marked in red have been deleted (as we are now 1 track less wide):
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
These 06's have to change into 05's (one less wide):
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
And now the harder part to understand and explain.... These numbers (so the numbers in front of a 80) have to change:
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
Ill try to explain...
These numbers referr I believe to the tiles in the build-sprite block at the end of the //Action-0 block.
The sequence of those numbers for a 7x7 station is:
Code:
00 04 06 08 0A 0C 0E 10 12 14 16 18 1A 1C 1E 20 22 24 26 28 2A 2C 2E 30 32 34 36 38 3A 3C 3E 40 42 44 46 48 4A 4C 4E 50 52 54 56 58 5A 5C 5E 60 62
Hexadecimal counting, starting with 00 (skipping 02, because of the menugraphics), next up 04 and then upwards, skipping a number each time.
As we have shaven off the last parts of those lines, we have lost a couple of numbers (7 to be exact, no surprise here
) in the sequence, we now have:
Code:
00 04 06 08 0A 0C 0E 10 12 14 16 18 1A 1C 1E 20 22 24 26 28 2A 2C 2E 30 32 34 36 38 3A 3C 3E 40 42 44 46 48 4A 4C 4E 50 52 54
The hardest part though is that the sequence is not in that order in the codelines, there is a pattern though
In the first line of those codes, the last number in front of the 80 is the 00.
The first number in front of the 80 is the 04, then in the case of a 6x7, it goes up to 0C.
Then we move on to the next line of those codes, the last number in front of the 80 is then 0E.
The first number in front of the 80 is then 10, it goes up then again to 18.
In to the third line of those codes, the last number in front of the 80 is then 1A.
The first number in front of the 80 is then 1C, it goes up then again to 24.
Now you should see a pattern emerging
So in general, when you have shaven off the segments marked in red (shave off more to make a station less wide. Always shave off towards an 80!!), make sure that the last number in front of the 80 is 00, make sure that the first number in front of the 80 is 04, go up, go to the next line, start out at the last number in front of the 80, go to the first one, etc etc etc etc...
In this case the //action-3 and //action-4 dont have to change (//action-3 will change though when you want to make the station shorter, so 7x6 so to say, that will be the next example)
Now, was that so hard?
You should now end up with this code:
Run the code through NFO-renum so that it gets the right codelinenumbers and values for the number of bits used in the lines, compile it to a GRF and you should get a station like the one at the top of this post!!
Want to make it fully non-track?
Then alter the graphicstemplate of the 7x7 non-track (so delete the last 4 graphics on each row, rename, etc).
Make sure your graphicsblock code refers to the path of those templates now
And make the changes to the first codeline in the //Action-0 block (like I explained in the previous post) to remove pylons (property 11) and wires (property 14) and to disallow trains to enter the station (property 15).
To be honest, I even screwed up with the code while writing this.
It was untill the end when I coded it myself that I spotted the mistake, as the order of the tiles of the 6x7 was not the same as that of the 7x7 (as they should be the same, just one trackrow less, a good way though to check if everything is done correctly).
So.... Good luck my friend!! Dont worry if you have difficulty getting this right!! THIS IS HARD!!