Patch: Grass growth on unused tracks
Moderator: OpenTTD Developers
-
- Transport Coordinator
- Posts: 333
- Joined: 25 Aug 2005 09:44
- Location: Eindhoven, Netherlands
Patch: Grass growth on unused tracks
After the discussion on Suggestions, http://www.tt-forums.net/viewtopic.php?t=32233, I decided to go ahead and try something.
Ben_K supplied me with a makeshift png of which I was able to make the attached grf file, with 3 levels of growth on X and Y tracks. The code is in place for all track pieces though, as soon as someone finishes all the sprites! (the grf has placeholders for them, the code has the drawing of them commented)
I decided to use 8 bits total, currently _me.m7 but that can be replaced with the high 8 bits of _m.m2 I guess. (code commented)
Let me know what you all think!
[Edit: attached lasted version]
[Edit: attached lasted version r17778]
Ben_K supplied me with a makeshift png of which I was able to make the attached grf file, with 3 levels of growth on X and Y tracks. The code is in place for all track pieces though, as soon as someone finishes all the sprites! (the grf has placeholders for them, the code has the drawing of them commented)
I decided to use 8 bits total, currently _me.m7 but that can be replaced with the high 8 bits of _m.m2 I guess. (code commented)
Let me know what you all think!
[Edit: attached lasted version]
[Edit: attached lasted version r17778]
- Attachments
-
- Shows 3 levels of overgrowth, I think. The track where the train goes stays clear.
- bb_oldtracks_v1_shot1.png (77.24 KiB) Viewed 55652 times
-
- oldtracks_grf.zip
- Updated, with growth for all rail directions for normal rails. 1 type for all climates...
- (11.15 KiB) Downloaded 2043 times
-
- boekabart_grassOnTracks_r17778.diff
- Latest Diff
- (10.51 KiB) Downloaded 769 times
Last edited by boekabart on 16 Oct 2009 12:05, edited 5 times in total.
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
I like that... What happens when a train goes over old tracks that have grass on them??
Same as elrails does? (or does it? I don't know...) That's pretty much eye-candy too..a big load on the free space in the map array
Last edited by Sionide on 31 May 2007 13:45, edited 1 time in total.
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
...sionide.net...
Also, does the grass appear slowly over time - or does the grf just suddenly change... obviously only affecting tracks in the current viewport...?
Nice though, I'll get the patch on my SVN build later.
Nice though, I'll get the patch on my SVN build later.
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
...sionide.net...
-
- Traffic Manager
- Posts: 134
- Joined: 09 Nov 2006 23:38
rename the patch "Mother Nature"
...Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration...
...sionide.net...
...sionide.net...
-
- Transport Coordinator
- Posts: 333
- Joined: 25 Aug 2005 09:44
- Location: Eindhoven, Netherlands
Updated Map Accessors to match standards (better, at least).
- Attachments
-
- bb_oldtracks_v2_r9996.diff
- Updated Map Accessors to match standards (better, at least).
- (6.96 KiB) Downloaded 530 times
-
- Transport Coordinator
- Posts: 333
- Joined: 25 Aug 2005 09:44
- Location: Eindhoven, Netherlands
Another update, changed some comments. And found out that it works perfectly for monorail and maglev too
- Attachments
-
- Still waiting for the 45 degree and slope gfx, obviously.
- bb_oldtracks_v3_shot2.png (71.15 KiB) Viewed 53887 times
-
- bb_oldtracks_v3_r9998.diff
- (6.89 KiB) Downloaded 689 times
-
- Transport Coordinator
- Posts: 333
- Joined: 25 Aug 2005 09:44
- Location: Eindhoven, Netherlands
Updated to r10001 since it cannot be merged automatically.
- Attachments
-
- bb_oldtracks_v3_r10001.diff
- (6.84 KiB) Downloaded 680 times
Re: Patch: Grass growth on unused tracks
Ok ok... I'll do them as soon as possible!!boekabart wrote:The code is in place for all track pieces though, as soon as someone finishes all the sprites!
Patch looks good though!
And those sprites weren't designed for monorail or maglev. Excellent!
- PouncingAnt
- Transport Coordinator
- Posts: 357
- Joined: 09 Nov 2004 22:33
Indeed, since maglev shows a fully concreted (I assume) area, it would take much longer to overgrow. (however osmotic pressure generated by plants growing under constructions is easily enough to break through concrete if left long enough in the correct conditions)Ameecher wrote:Having overgrown Maglev strikes me as very odd, I just can't see it myself... not sure why. Otherwise nice.
One thing I would say is the track is a bit *too* overgrown. at first glance it can't be seen at all (well with a fleeting look anyway) perhaps make the rails a bit more visible?
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4
Or try my scenario instead!
-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"
Patches:
Company Station Stats
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4
Or try my scenario instead!
-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"
Patches:
Company Station Stats
Are you talking about the full disused stage? Check his first screenshot. It shows the 3 stages there and the 1st stage isnt too bad. Sadly, there is only one tile in the shot though. Personally, I drew the one he has used most to be a 'final' stage where you pretty much never use the track.Ameecher wrote:One thing I would say is the track is a bit *too* overgrown. at first glance it can't be seen at all (well with a fleeting look anyway) perhaps make the rails a bit more visible?
Have a look back at the shot and let me know what you think needs doing. If you want, I can send you a sprite sheet to look at.
As for Maglev/monorail - as stated, these sprites weren't designed with those tracks in mind. That is Boekabart playing around. If he did decide to go ahead with it, I think that they would need different overlays.
A sprite sheet would be nice to see in here.
Anyone planning on painting the rest of the grass sprites for the other directions?
I can easily imagine everything overgrown but i agree that the maglevs
should be rust/scratchy with grass pixels in between the mag's elements, where there'd usually be a black line. To show that mother nature
is peeking up. Better let Boekabart through with his ideas.
I think generally, this is a great idea... definately worth the CPU
time to sacrifice...
Anyone planning on painting the rest of the grass sprites for the other directions?
I can easily imagine everything overgrown but i agree that the maglevs
should be rust/scratchy with grass pixels in between the mag's elements, where there'd usually be a black line. To show that mother nature
is peeking up. Better let Boekabart through with his ideas.
I think generally, this is a great idea... definately worth the CPU
time to sacrifice...
"Easy Driver"
-I want to paint like Simon Foster.
-I want to paint like Simon Foster.
Who is online
Users browsing this forum: No registered users and 4 guests