It is currently 15 Oct 2019, 20:35

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 2 of 23   [ 452 posts ]
Go to page Previous  1, 2, 3, 4, 5 ... 23  Next
Author Message
 Post subject: Re: GarryG Does Stations
PostPosted: 02 May 2017, 14:57 
Master Mentor
User avatar

Joined: 27 Feb 2012, 22:45
Posts: 1822
Location: Canada
athanasios wrote:
And some were 'borrowed':
Souvlaki! :mrgreen: Yummy Souvlaki! :P GREAT BIG SOUVLAKI! :o

_________________
Visit SimuSchool - Tutorials, Questions and Answers
TTDPatch Nightlies Downloads are back
Thrive


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 03 May 2017, 04:02 
Moderator
User avatar

Joined: 29 Feb 2012, 00:55
Posts: 1749
Location: Hellas
:lol:

Right choice of Greek word: souvlaki means a small souvla (=skewer), aka the iron rod used to roast big pieces of meat, chicken, etc. We also use the word ovelias. (From the ancient Greek word ovelos mentioned first time by Homer. Interestingly it was also used as currency prior to the invention of coins!).

-

Ashes to ashes. :mrgreen:


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 03 May 2017, 19:21 
Master Mentor
User avatar

Joined: 27 Feb 2012, 22:45
Posts: 1822
Location: Canada
The sad thing is that today ovelias are probably worth more than coins. :P

_________________
Visit SimuSchool - Tutorials, Questions and Answers
TTDPatch Nightlies Downloads are back
Thrive


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 04 May 2017, 00:16 
Moderator
User avatar

Joined: 29 Feb 2012, 00:55
Posts: 1749
Location: Hellas
:cry:


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 10 May 2017, 11:02 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
wallyweb wrote:
Souvlaki! Yummy Souvlaki!


athanasios wrote:
And some were 'borrowed':


Did you fellas feed Quast65 to much Souvlaki? as haven't heard from him for a while :)

Must be busy with personal life.

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 10 May 2017, 13:19 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
:mrgreen:

Yes, very busy with work, Ill get back to this asap


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 10 May 2017, 14:16 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
no big hurry .. I keeping busy with the train sets and I got a copy of McZapkies Wired seeing if I can learn rail making and follow along his ideas.

Cheers pal

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 11 May 2017, 02:29 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
A question for you .. can station tiles go on a slope? Looking at footbridges in my travel and some places there is a slope one side of the station. The station is on level ground, but the footbridge has stairs going down to the platform, but it level going to the top of the slope. Going to se if can make object ones first and see how they look.

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 11 May 2017, 15:43 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
Quote:
can station tiles go on a slope?

Yes, but not on all slopes.
They can be placed on the gradual full tile slopes and also on corner slopes that have the flat land at the high point (so where the corner slope goes down).
They cant be placed on the very steep slopes and also not on corner slopes that have the flat land at the low point (so where the corner slope goes up).

So this is a bit different than with objects, objects can also be placed on the corner slopes that have the flat land at the low point.
Another difference is with the foundations. With objects you can simply say in the code that you dont want foundations to show and then you can draw in your own custom foundations (like pillars holding up a concrete slab).
This is a bit more difficult with stations. If you want custom foundations, you will have to provide those foundations seperately. The game will check if you are building a station on a slope or not and will show the custom foundations when needed. Not many stationsets have this, the only one I know about is Michael Bluncks "New Stations" GRF. This is how it should be done ;-)

I use a different and more simple method (there are some of those tiles in the Dutch Station Addition Set), by just drawing in the foundations under the station tile in the same graphicssprite. My custom foundations will then cover up the regular foundations. So in this case, I "fake" the foundations.
This has two disadvantages:
1. When placed on flat land, you will still see the custom foundations, so you should only place them on slopes, it will not show/not-show the foundations automatically.
2. You will need to provide graphics that fully cover up the regular foundations. So if you want a tile that is held up by some pillars, you will also need to draw in the sloped land under it. Otherwise you will still be able to see parts of the regular foundation.
This method is best to use only for stations that will be built on gradual full slopes, as with the corner slopes you may still see some regular foundations that are more difficult to cover up.

I do not know how to code/draw it the "correct" way, like Michael has done.


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 11 May 2017, 23:59 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
Thanks Pal,

Not really looking at stations and platforms on slopes .. just the foot bridge to/from station.

See if I can make some object fake ones first see how they look.

I heading train riding and spotting today .. will get a pic of a footbridge to plan with.

Cheers

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 13 May 2017, 17:27 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
Ok, got some more free time now. So lets get on with the final part of explaining the code before we get to adding pieces of code. 8-)

Now we are going to look at the pieces of code that give us the various stationtiles we have so far.
I will highlight important pieces (that will need changing when you expand the code) and explain those under the code:

10 * 6 01 04 01 FF 10 00
11 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 10 40 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 10 40 64 122 -31 -91 normal chunked
12 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 90 40 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 90 40 64 122 -53 -102 normal chunked
13 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 170 40 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 170 40 64 122 -31 -91 normal chunked
14 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 250 40 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 250 40 64 122 -9 -102 normal chunked
15 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 330 40 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 330 40 64 122 -31 -91 normal chunked
16 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 410 40 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 410 40 64 122 -53 -102 normal chunked
17 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 490 40 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 490 40 64 122 -31 -91 normal chunked
18 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 570 40 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 570 40 64 122 -9 -102 normal chunked
19 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 650 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 650 40 64 122 -0 -0 normal chunked
20 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 730 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 730 40 64 122 -0 -0 normal chunked
21 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 810 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 810 40 64 122 -0 -0 normal chunked
22 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 890 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 890 40 64 122 -0 -0 normal chunked
23 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 970 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 970 40 64 122 -0 -0 normal chunked
24 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 1050 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 1050 40 64 122 -0 -0 normal chunked
25 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 1130 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 1130 40 64 122 -0 -0 normal chunked
26 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 1210 40 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 1210 40 64 122 -0 -0 normal chunked
27 * 376 00 04 04 01 00 08 "AS00" 11 FF 0B 0F 09 08
F4 03 00 00 00 00 00 10 05 03 31 84 00 00 00 00 80 00 00 00 39 44 22 03 00 0B 00 10 05 03 32 84 00 00 00 00 80 00 00 00 3A 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 33 84 00 00 00 00 80 00 00 00 3B 44 22 03 0B 00 00 05 10 03 34 84 00 00 00 00 80 00 00 00 3C 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 00 80 00 00 00 35 44 22 03 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 36 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 2F 84 00 00 00 00 80 00 00 00 37 44 22 03 0B 00 00 05 10 03 30 84 00 00 00 00 80 00 00 00 38 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 00 80 00 00 00 35 44 22 03 00 0B 00 10 05 03 32 84 00 00 00 00 80 00 00 00 3A 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 2F 84 00 00 00 00 80 00 00 00 37 44 22 03 0B 00 00 05 10 03 34 84 00 00 00 00 80 00 00 00 3C 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 31 84 00 00 00 00 80 00 00 00 39 44 22 03 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 36 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 33 84 00 00 00 00 80 00 00 00 3B 44 22 03 0B 00 00 05 10 03 30 84 00 00 00 00 80 00 00 00 38 44 22 03 80
28 * 7 02 04 00 00 01 00 00
29 * 14 02 04 01 81 41 14 0F 01 00 80 01 0F 02 80
30 * 14 02 04 02 81 41 0C 0F 01 06 80 00 00 01 00
31 * 14 02 04 03 81 41 08 0F 01 04 80 00 00 02 00
32 * 14 02 04 04 81 41 14 0F 01 03 00 02 0F 02 80
33 * 14 02 04 05 81 0C 00 FF 01 04 00 14 14 00 00
34 * 10 03 04 01 00 01 FE 05 00 00 00
35 * 32 04 48 FF 01 00TEMPLATE REGULAR PLATFORM" 00
36 * 44 04 48 FF 01 00AuzStations: Normal OpenTTD Platforms" 00




37 * 6 01 04 01 FF 06 00
38 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 10 170 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 10 170 64 122 -31 -91 normal chunked
39 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 90 170 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 90 170 64 122 -53 -102 normal chunked
40 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 170 170 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 170 170 64 122 -0 -0 normal chunked
41 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 250 170 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 250 170 64 122 -31 -91 normal chunked
42 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 330 170 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 330 170 64 122 -9 -102 normal chunked
43 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 410 170 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 410 170 64 122 -0 -0 normal chunked
44 * 84 00 04 03 01 01 08 "AS01" 11 FF 09 02
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 2F 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 30 84 00 00 0B 00 00 05 10 03 31 84 00 00 00 00 80 00 00 00 32 44 22 03 80
45 * 7 02 04 00 00 01 00 00
46 * 7 02 04 01 00 01 00 00
47 * 10 03 04 01 01 01 FE 01 00 00 00
48 * 39 04 48 FF 01 01TEMPLATE REGULAR PLATFORM, Front" 00
49 * 42 04 48 FF 01 01AuzStations: Single Sided Platforms" 00



50 * 6 01 04 01 FF 06 00
51 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 10 300 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 10 300 64 122 -31 -91 normal chunked
52 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 90 300 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 90 300 64 122 -53 -102 normal chunked
53 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 170 300 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 170 300 64 122 -0 -0 normal chunked
54 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 250 300 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 250 300 64 122 -31 -91 normal chunked
55 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 330 300 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 330 300 64 122 -9 -102 normal chunked
56 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 410 300 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 410 300 64 122 -0 -0 normal chunked
57 * 84 00 04 03 01 02 08 "AS01" 11 FF 09 02
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 2F 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 30 84 00 00 0B 00 00 05 10 03 31 84 00 00 00 00 80 00 00 00 32 44 22 03 80
58 * 7 02 04 00 00 01 00 00
59 * 7 02 04 01 00 01 00 00
60 * 10 03 04 01 02 01 FE 01 00 00 00
61 * 38 04 48 FF 01 02TEMPLATE REGULAR PLATFORM, Back" 00
62 * 42 04 48 FF 01 02AuzStations: Single Sided Platforms" 00



63 * 6 01 04 01 FF 0E 00
64 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 10 430 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 10 430 64 122 -31 -91 normal chunked
65 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 90 430 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 90 430 64 122 -53 -102 normal chunked
66 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 170 430 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 170 430 64 122 -0 -0 normal chunked
67 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 250 430 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 250 430 64 122 -31 -91 normal chunked
68 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 330 430 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 330 430 64 122 -9 -102 normal chunked
69 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 410 430 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 410 430 64 122 -0 -0 normal chunked
70 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 490 430 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 490 430 64 122 -31 -91 normal chunked
71 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 570 430 64 122 -53 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 570 430 64 122 -53 -102 normal chunked
72 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 650 430 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 650 430 64 122 -0 -0 normal chunked
73 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 730 430 64 122 -31 -91 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 730 430 64 122 -31 -91 normal chunked
74 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 810 430 64 122 -9 -102 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 810 430 64 122 -9 -102 normal chunked
75 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 890 430 64 122 -0 -0 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 890 430 64 122 -0 -0 normal chunked
76 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 970 430 64 46 -31 -20 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 970 430 64 46 -31 -20 normal chunked
77 c:/grfcodec603/auzstations/gfx/template_regularplatform_8bpp_EMPTY.png 8bpp 1050 430 64 46 -31 -20 normal chunked
| c:/grfcodec603/auzstations/gfx/template_AuzPlatform_32bpp.png 32bpp 1050 430 64 46 -31 -20 normal chunked
78 * 192 00 04 07 01 03 08 "AS02" 0B 02 0C FD 0D FE 11 FF 14 00 09 06
F4 03 00 00 00 00 00 10 05 03 2D 04 00 00 00 0B 00 10 05 03 2E 04 00 00 00 00 80 00 00 00 2F 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 30 04 00 00 0B 00 00 05 10 03 31 04 00 00 00 00 80 00 00 00 32 44 22 03 80
02 00 00 00 00 00 00 10 10 10 39 04 00 00 80
02 00 00 00 00 00 00 10 10 10 3A 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 33 04 00 00 00 0B 00 10 05 03 34 04 00 00 00 00 80 00 00 00 35 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 36 04 00 00 0B 00 00 05 10 03 37 04 00 00 00 00 80 00 00 00 38 44 22 03 80
79 * 7 02 04 00 00 01 00 00
80 * 14 02 04 01 81 41 0C 0F 01 04 80 01 01 00 80
81 * 16 02 04 02 81 41 80 0F 00 04 01 01 00 00 00 18 80
82 * 14 02 04 03 81 41 0C 0F 01 08 80 01 01 06 80
83 * 16 02 04 04 81 41 80 0F 00 04 01 03 00 01 01 02 00
84 * 14 02 04 05 81 41 0C 0F 01 0C 80 01 01 0A 80
85 * 16 02 04 06 81 41 80 0F 00 04 01 05 00 02 02 04 00
86 * 14 02 04 07 81 41 0C 0F 01 10 80 01 01 0E 80
87 * 16 02 04 08 81 41 80 0F 00 04 01 07 00 03 03 06 00
88 * 14 02 04 09 81 0C 00 FF 01 08 00 14 14 00 00
89 * 10 03 04 01 03 01 FE 09 00 00 00
90 * 32 04 48 FF 01 03TEMPLATE REGULAR PLATFORM" 00
91 * 36 04 48 FF 01 03AuzStations: Island Platforms" 00

Path to the empty graphics template
Path to the 32bpp colored graphics
We have already adressed these earlier in this thread, you know you need to change those to the appropriate paths ;-)

00, 01, 02, 03
The Station-IDs.
Each station needs a unique number (just like with objects).
These numbers are hexadecimal!! So, after 09, you get 0A, 0B, 0C, 0D, 0E and 0F, then 10 etc etc
Maximum number is FF, so a maximum of 255 individual stations in one GRF.
So, if you want to add a piece of code, you need to change that number. In this case, the next one should have 04

Name that you want to give to the station
This is where you can give that particular station its name.
IMPORTANT!! keep the "Å"-symbol in front of that name!!!
EDIT September 11th 2017:
Actually this is a not entirely correct way to code this!
I used decompiled pieces of code for this and then you get this weird symbol, it does work, but it should be done this way (see Kamnets post and the subsequent post of Michael Blunck):

https://www.tt-forums.net/viewtopic.php?f=26&t=62069&hilit=station+dummies#p1099008

AS00, AS01, AS02
The Purchase Submenu ID.
This will place the stations in their purchase submenu's.
I usually use a combination of 2 letters (related to the name of the GRF, in this case AS for AuzStations) and 2 numbers (the order in which I want to have the submenu's, in this case 00 is the first one, 01, the second etc etc).
IMPORTANT!!! This ID is linked to the Purchase Submenu Name (see below)

The Purchase Submenu Name
The name you want to give to the particular purchase submenu.
This name is linked to the purchase submenu ID!!! So make sure that when you add a piece of code with the same Submenu ID, that the Purchase Submenu Name is also the same!!
IMPORTANT!! keep the "Ä"-symbol in front of that name!!!
EDIT September 11th 2017:
Actually this is a not entirely correct way to code this!
I used decompiled pieces of code for this and then you get this weird symbol, it does work, but it should be done this way (see Kamnets post and the subsequent post of Michael Blunck):

https://www.tt-forums.net/viewtopic.php?f=26&t=62069&hilit=station+dummies#p1099008

If you want to add a new category (lets say, non-track tiles), you will have to give that a new Purchase Submenu ID and a new Purchase Submenu Name.
So, for example, AS03 and AuzStations: Non-track Tiles
If you add something that already has a category, then you dont have to give it a new Submenu-ID and Submenu Name.


Basically, that is all you need to know for now for the coding of these basic stationtiles.
If you want to add a new piece of code, you can just copy/paste one of the codepieces you already have and change the highlighted pieces accordingly.
REALLY REALLY IMPORTANT!!! The Station-IDs you have to change every time, keep good track of what number you are at when you add more stations!!!
This is very important regarding the order the stations show up in the purchase menus. The order they show up is in the order they are coded.

So lets say you wanted to insert a station before one that was already coded, then you need to copy/paste its code in before the code of the station already in the GRF. But you will need to give it a Station-ID number higher than the last one you coded, otherwise you will need to change all IDs after it to prevent errors.
If you then add another new station at the end of the code, then that number needs to be one higher than the one you inserted somewhere earlier in the code, thats when you really need to keep track of what number you are at ;-)
This hopefully wont happen too often, but just in case I wanted you to know about this. :oops:

Also note that inserting code in already existing code will break up save-games and make it incompatible with existing games as the stations in that particular sub-menu will then shift a place.
It may be needed then to let a user know about this, for example in the forum, or in the GRF-description that you can see in the GRF-menu ingame.
Simply adding stations will not give any problems, as they will just show up as a new station after the already existing ones (just like when adding objects).

Do not worry about the numbers in front of the codelines not being in sequence anymore when you copy/paste code in. nforenum.exe will correct those (and also the total number of codelines, as will be stated in line 0 of the code).

I understand that this is a lot to digest :twisted:
Feel free to ask further explanations! :W

With this information you should now be able to add more similar style of stations to the ones we already have, I am more than happy to help you on your way with adding those if you run into trouble.
If you eventually want to add new styles of stations (lets say non-track buildings in various sizes, or platforms that have graphics that go over the tracks, like footbridges or roofs) just let me know. I will then make graphics and code templates for you that you can use, without having to exactly understand how they work 8-) You only need to change the above highlighted pieces to make it work in your GRFs.

Good luck!!! :mrgreen:


Last edited by Quast65 on 11 Sep 2017, 16:02, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 13 May 2017, 23:33 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
Thanks pal,

Will practice this today after I do my morning chores.

To keep track of the ID etc I will do a spreadsheet to record what I up to same as I been doing for all the projects I did with NML.

Cheers and thanks heaps.

Garry

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 14 May 2017, 03:12 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
I've transferred all the info you given me to date to a spreadsheet and splitting them into Lessons.

And last page has all the codes in order with an explanation in right column what I need to do.

Will add another page with the actual coding and what I add to it.

Let you know each night before I go bed where I up to and if I completed a platform will leave you copy of files.

Just to verify ..

Where the codes at moment platforms ID 00 to 03.

00 Regular Platforms
01 Single Sided Platforms, Front
02 Single Sided Platforms, Back
03 Island Platforms.

If I want to add Regular platform and to keep it on order, does this mean I would give it ID 01,
then those other would need to be changed to 02, 03, and 04?

Cheers pal ..

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 14 May 2017, 10:30 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
I did a few different Goods Platforms .. the ones with grey weather look.

Done ramps for each end of the platforms and also Steps just for the facing end.
Attachment:
Goods Platforms.png
Goods Platforms.png [ 82.33 KiB | Viewed 1680 times ]

The steps so pleased with them, might use them for footbridges as they be easy to make them narrower.

Here's the files to date.
Attachment:
AuzstationsMay14.rar [289.67 KiB]
Downloaded 32 times


Here here's the NewGRF if just like to try this and not need rest of files.
Attachment:
auzstations_1_v001.grf [152.02 KiB]
Downloaded 37 times


Not real happy with the weather timber look .. eventually will work on that and see if can make it a bit better.

I'll play around with a few more platforms then come back to it.

Mainly concentrating of Goods and Freight platforms and buildings at the moment.

Like to use some if the ISR platforms that have the red brick sides and replace the bricks with concrete.

Passenger platforms you got the majority of those covered in your Dutch Sets .. I hope to just make a a few dirt platforms and when I get around to playing games use them with your Dutch Sets.

Cheers pal

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 14 May 2017, 12:24 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
Looking good mate!! :bowing:
You got the hang of it! :W

Quote:
Where the codes at moment platforms ID 00 to 03.

00 Regular Platforms
01 Single Sided Platforms, Front
02 Single Sided Platforms, Back
03 Island Platforms.

If I want to add Regular platform and to keep it on order, does this mean I would give it ID 01,
then those other would need to be changed to 02, 03, and 04?


I think you already figured this out yourself, but just to clarify for others who may eventually read this:

The station ID's are linked to the individual station names (and not to the purchase menu names).
So in your case its like this:
00 GOODS WOODEN PLATFORM (can be found in purchasemenu: Normal Platforms)
01 GOODS WOODEN PLATFORM, Front (can be found in purchasemenu: Single Sided Platforms)
02 GOODS WOODEN PLATFORM, Back (can be found in purchasemenu: Single Sided Platforms)
03 GOODS WOODEN PLATFORM (can be found in purchasemenu: Island Platforms)
.
.
.
0F GOODS WOODEN PLATFORM Steps (can be found in purchasemenu: Island Platforms)

If you add a new station and want to keep it in order, you just simply add it after the very last station you coded (regardless of in what purchasemenu it is placed) and give it a higher station-ID number. It will then show up after already existing stations in its chosen purchase menu. This way you can update your GRF and it will not break up existing games/saves.

Again, looks like you already figured that out :mrgreen:


Good job mate! :W


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 14 May 2017, 14:03 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
I'll play around for a few days or so with platforms .. then I see about other things.

Cheers pal

EDIT:

Each day I add anything to the project I'll upload all the files here each evening.

I put new weatherboards on the platforms .. how do you think this will look compared to the others.
Attachment:
New Goods Platforms.png
New Goods Platforms.png [ 4.02 KiB | Viewed 1678 times ]

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 15 May 2017, 08:55 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
Hi Quast65,

Made some country platforms and some with Water Tanks.
Attachment:
Country Stations.png
Country Stations.png [ 22.75 KiB | Viewed 1676 times ]

Can make the platforms with and without the tanks.
Can make the platforms as short as the one you can see in pic. It 2 pieces .. the on and off ramps.
The platforms are only 2 pixels high as use to be found in almost all country stations in NSW Australia.

I don't intend to make this available for Bananas for a while as still got a few things like to add.
Next I will do another set of country platforms but 3 pixels higher and half bitumen and half gravel.

Not sure about the grey colour for the Goods Platforms .. the new idea I had makes them look to new and clean. These platforms made from bridging timbers and heavily used with cargos they be dirty looking.

Here's the latest files . I won't change Version Number until after first release on Bananas.

Attachment:
AuzstationsMay15.rar [2.24 MiB]
Downloaded 39 times


To allow players access to these to help test should I make a new forum in Simuscape? In the Transport Tycoon Forum will up load it in The Train sets section for now. Might start a forum there after I add a few more platforms.

Guess I better make a readme, licence and changelog files to go with it.

Cheers pal

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 15 May 2017, 16:19 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
Hi Garry!

Quote:
I put new weatherboards on the platforms .. how do you think this will look compared to the others.

I will not comment on what looks better or not, that is up to you as the graphics artist.
For me it is more important on focussing that everything shows up correctly ingame.

There are some issues:
Attachment:
Example251.png
Example251.png [ 83.04 KiB | Viewed 1674 times ]

Issue-1: With the normal platforms; In some cases you are using the same graphics for the outsides of a station also for the insides, that looks a bit strange... Use the graphics for the island-platforms for the insides of the normal platforms. Also with the watertower platforms, use the big ones for the insides, and the small ones only for the outsides.

Issue-2: Not a major issue, but I think it would look better if there is only one railing in the middle. Removing the railing from one of the inside graphics will fix that.


Quote:
some with Water Tanks.

You have now also chosen to draw some structures on the platforms, this brings us to an advanced issue ;-) The boundingboxes!
You may have noticed this:
Attachment:
Example252.png
Example252.png [ 44.36 KiB | Viewed 1674 times ]

The powerlines are sometimes visible (in most cases glitching, especially when a train passes it) when they should be obstructed from sight.
This is because of the boundingboxes (those that you can see when pressing CTRL+B ingame). Right now we have coded them just 3 pixels high and not to the hight of the watertower. This confuses the spritesorter and thus you get some glitches. This will need to be fixed in the code...

For the Normal platforms they can be found here:
F4 03 00 00 00 00 00 10 05 03 31 84 00 00 00 00 80 00 00 00 39 44 22 03 00 0B 00 10 05 03 32 84 00 00 00 00 80 00 00 00 3A 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 33 84 00 00 00 00 80 00 00 00 3B 44 22 03 0B 00 00 05 10 03 34 84 00 00 00 00 80 00 00 00 3C 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 00 80 00 00 00 35 44 22 03 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 36 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 2F 84 00 00 00 00 80 00 00 00 37 44 22 03 0B 00 00 05 10 03 30 84 00 00 00 00 80 00 00 00 38 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 00 80 00 00 00 35 44 22 03 00 0B 00 10 05 03 32 84 00 00 00 00 80 00 00 00 3A 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 2F 84 00 00 00 00 80 00 00 00 37 44 22 03 0B 00 00 05 10 03 34 84 00 00 00 00 80 00 00 00 3C 44 22 03 80
F4 03 00 00 00 00 00 10 05 03 31 84 00 00 00 00 80 00 00 00 39 44 22 03 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 36 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 33 84 00 00 00 00 80 00 00 00 3B 44 22 03 0B 00 00 05 10 03 30 84 00 00 00 00 80 00 00 00 38 44 22 03 80

For Singleside, they can be found here:
F4 03 00 00 00 00 00 10 05 03 2D 84 00 00 00 0B 00 10 05 03 2E 84 00 00 00 00 80 00 00 00 2F 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 30 84 00 00 0B 00 00 05 10 03 31 84 00 00 00 00 80 00 00 00 32 44 22 03 80

For Island, here:
F4 03 00 00 00 00 00 10 05 03 2D 04 00 00 00 0B 00 10 05 03 2E 04 00 00 00 00 80 00 00 00 2F 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 30 04 00 00 0B 00 00 05 10 03 31 04 00 00 00 00 80 00 00 00 32 44 22 03 80
02 00 00 00 00 00 00 10 10 10 39 04 00 00 80
02 00 00 00 00 00 00 10 10 10 3A 04 00 00 80
F4 03 00 00 00 00 00 10 05 03 33 04 00 00 00 0B 00 10 05 03 34 04 00 00 00 00 80 00 00 00 35 44 22 03 80
F3 03 00 00 00 00 00 05 10 03 36 04 00 00 0B 00 00 05 10 03 37 04 00 00 00 00 80 00 00 00 38 44 22 03 80

You will need to change that to a hight that the entire structure is neatly inside a boundingbox.
This value is in hexadecimal!!! So for example, 16 pixels high is value 10 in hexadecimal.
You only need to change the boundingboxes for the platforms that have structures, no need to change the values for the platforms that are invisible (with the Singlesided and Island ones), or that dont have structures (for example with normal platforms, where you dont have a structure on the outsides but do have a structure on the insides).
Experiment first with changing one value, to see that you are actually changing the boundingbox that you want to correct.

You dont have to change the values for the platforms with the signs.
Boundingbox issues will probably only happen when you have structures high enough to obstruct the powerlines or a passing train.

Be very very careful when changing these values, all of the other numbers in those codelines will also affect certain behaviour or placement of the platforms!!! Make sure you change the right values!!!

Also make sure that when you copy/paste code, that you dont accidently copy/paste a code with the wrong boundingboxvalues. ;-)


Last edited by Quast65 on 15 May 2017, 16:30, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 15 May 2017, 16:24 
Player
Player
User avatar

Joined: 06 Mar 2012, 21:55
Posts: 478
Location: The Netherlands
And there is another issue with some of the large watertowers:
Attachment:
Example253.png
Example253.png [ 87.8 KiB | Viewed 1674 times ]

Some pixels are missing....
This is caused because you have drawn those outside of the box ;-)
Attachment:
Example254.png
Example254.png [ 38.11 KiB | Viewed 1674 times ]


I strongly recommend to first draw your graphics into the template that has the transparent blue boxes and then convert those to the graphicsfile that will be coded. That way you can spot these errors ;-)


Top
 Offline Profile  
 
 Post subject: Re: GarryG Does Stations
PostPosted: 15 May 2017, 23:12 
Expert
Expert
User avatar

Joined: 03 May 2015, 03:27
Posts: 1676
Location: Newcastle, Australia
Thanks for pointing out those issues.

Going train riding today to get some photos of a few railway stations and trains. Will work on those issues when I get home or tomorrow.

I never thought of testing with overhead wires. And same with the normal platforms never thought to test more then 1 line wide.

I thinking last night .. the platform on and off ramps longer and put the water towers on separate tiles alone. That way a person can use the water towers at the end of any station, doesn't have to be just these I did yesterday. This will allow the larger tower to be moved a few pixels to fix the issue of not drawing properly. Or maybe move them centre and the water columns have there own tiles so players have choice.

When I master these platforms and getting things inside the bounding boxes .. before I adventure to much further.

Thanks pal, thanks for all you doing for me. :W :bowing:

_________________
All my projects are GPLv2 License.
Soot Happens.
Projects: viewtopic.php?f=179&t=811


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 2 of 23   [ 452 posts ]
Go to page Previous  1, 2, 3, 4, 5 ... 23  Next


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