
I may just include the new roads in the newinfrastructure and add a parameter for 0 = default roads, 1 = UK-like roads, 2 = US-like roads. The current coding work you have done will slot nicely into that...
Moderator: Graphics Moderators
Code: Select all
// Automatically generated by GRFCODEC. Do not modify!
// (Info version 7)
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
0 * 4 36 00 00 00
1 * 185 08 07 "LA24OpenGFX newInfrastructure Combined Roadset v0.1" 00 "OpenGFX newInfrastructure Combined Roadset v0.1. Extension to NewInfrastructure roads. Graphics by Zephyris, coded by LordAzamath." 00
2 * 6 07 83 01 02 03 09 //Action07, skip Toyland to label 09 (end)
//Parameter0=0 ==> Default roads
//Parameter0=1 ==> US style roads
//Parameter0=2 ==> UK style roads
3 * 9 0D 00 80 FF 00 \d0 //Action0D -> set default parameter0 to 0 -> Default roads
4 * 9 07 00 04 \7! \d0 00 //Action07 -> if parameter0 isn't equal to 0 then skip default road to label 00
//current road here
//current road here
5 * 42 10 00 "Skip to here if param0 isn't equal to 0" 00 // Action10, end of default road. 00
6 * 9 07 00 04 \7! \d1 00 //Action07 -> if parameter0 isn't equal to 1 then skip US style road to label 00
//US style road here | both
//paved road
7 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
8 * 32 10 02 "Skip to here if not temperate" 00 //Label02
9 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
10 * 29 10 02 "Skip to here if not arctic" 00 //Label02
11 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
12 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//US style road here | right
//Action07 right side
13 * 6 07 86 01 00 04 01
//paved road
14 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
15 * 32 10 02 "Skip to here if not temperate" 00 //Label02
16 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
17 * 29 10 02 "Skip to here if not arctic" 00 //Label02
18 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
19 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//Action10 end right side
20 * 41 10 01 "Skip to here if not right side traffic" 00 //Label01
//US style road here | left
//Action07 left side
21 * 6 07 86 01 01 04 01
//paved road
22 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
23 * 32 10 02 "Skip to here if not temperate" 00 //Label02
24 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
25 * 29 10 02 "Skip to here if not arctic" 00 //Label02
26 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
27 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//Action10 end left side
28 * 40 10 01 "Skip to here if not left side traffic" 00 //Label01
29 * 42 10 00 "Skip to here if param0 isn't equal to 1" 00 // Action10, end of US style road. 00
30 * 9 07 00 04 \7! \d2 00 //Action07 -> if parameter0 isn't equal to 2 then skip UK style road to label 00
//UK style road here | both
//paved road
31 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
32 * 32 10 02 "Skip to here if not temperate" 00 //Label02
33 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
34 * 29 10 02 "Skip to here if not arctic" 00 //Label02
35 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
36 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//UK style road here | right
//Action07 right side
37 * 6 07 86 01 00 04 01
//paved road
38 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
39 * 32 10 02 "Skip to here if not temperate" 00 //Label02
40 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
41 * 29 10 02 "Skip to here if not arctic" 00 //Label02
42 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
43 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//Action10 end right side
44 * 41 10 01 "Skip to here if not right side traffic" 00 //Label01
//UK style road here | left
//Action07 left side
45 * 6 07 86 01 01 04 01
//paved road
46 * 6 07 83 01 03 00 02 //Skip to label 02 if not temperate
//temperate
47 * 32 10 02 "Skip to here if not temperate" 00 //Label02
48 * 6 07 83 01 03 01 02 //Skip to label02 if not arctic
//arctic
49 * 29 10 02 "Skip to here if not arctic" 00 //Label02
50 * 6 07 83 01 03 02 02 //Skip to label12 if not tropic
//tropic
51 * 29 10 02 "Skip to here if not tropic" 00 //Label02
//Action10 end left side
52 * 40 10 01 "Skip to here if not left side traffic" 00 //Label01
53 * 42 10 00 "Skip to here if param0 isn't equal to 2" 00 // Action10, end of UK style road. 00
54 * 26 10 09 "Skip to here if Toyland" 00 // Action10, label for first action07. 09
Yep. Time for digging up your "Toyland Renewal Set" and graphics_master's "Toyland Station Set".DanMacK wrote:Hmmm, maybe I should look at doing the Toyland locos too
I know.. There was a problem with depots.. Athanasios editied my road depot and changed the number... And then I changed the numberAntBUK wrote:Thought you might might like to know that you have a few GRF ID conflicts with your GRFs LA, you use 414C313* a bit too much
Only one? I've found twoZephyris wrote:And on a slightly lighter note, look what I came across when coding DanMacK's trains...
Code: Select all
//Current road goes here
//Current road goes here
Users browsing this forum: No registered users and 5 guests