Patch: Grass growth on unused tracks

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Reto
Engineer
Engineer
Posts: 5
Joined: 31 Dec 2007 01:19

Re: Patch: Grass growth on unused tracks

Post by Reto »

Hehe, congrats! Buy him/her a model train for his/her 5th birthday or so :).

Good to hear that I didn't do the grf thing completely wrong :). How much work would it be to add aging for mono and maglev? Just creating the graphics?
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Re: Patch: Grass growth on unused tracks

Post by boekabart »

Reto wrote:Hehe, congrats! Buy him/her a model train for his/her 5th birthday or so :).
Don't worry, I will. And sooner too :)
Reto wrote:Good to hear that I didn't do the grf thing completely wrong :). How much work would it be to add aging for mono and maglev? Just creating the graphics?
Yep, just the graphics. And using an extra offset for the sprites of course.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Patch: Grass growth on unused tracks

Post by Roujin »

Out of request, I've rediffed this patch(v9) for 0.6.0.

Some minor tweaks were needed due to changes in trunk.
Attachments
bb_oldtracks_v9_0.6.0.diff
(9.99 KiB) Downloaded 217 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Da Bear
Engineer
Engineer
Posts: 8
Joined: 03 Apr 2008 09:21
Location: Sweden

Re: Patch: Grass growth on unused tracks

Post by Da Bear »

How about a patch like this, but for company-owned roads? Roads built by companies but not used will degenerate with grass growing on it, and the tarmac will fracture(? cracks in it). And if someone desides to run RV's on them the speed is heavily reduced, hence having to replace the road.
Town owned roads should not be affected since the authority maintain them.
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by zypa »

If a road is not used it will degenerate? That is not that logic, is it?
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Patch: Grass growth on unused tracks

Post by athanasios »

It is! (no maintenance)
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by zypa »

There is no maintenance for tracks in the game at all.
A tracks isn't maintained if several vehicles use it.
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Re: Patch: Grass growth on unused tracks

Post by DeletedUser21 »

Wasn't there an idea like this:

Feature: Unused tracks are degenerating.
Feature: Degenerative tracks have new graphics.
Feature: Trains running over degenerative tracks are getting brakedowns much faster.
New vehicle: Rail maintenance wagon. This wagon can repair degenerative tracks.

Or something? :P
VoxDissident
Traffic Manager
Traffic Manager
Posts: 178
Joined: 09 Apr 2008 01:37

Re: Patch: Grass growth on unused tracks

Post by VoxDissident »

Does the grass growth affect train speed / acceleration?
boekabart
Transport Coordinator
Transport Coordinator
Posts: 333
Joined: 25 Aug 2005 09:44
Location: Eindhoven, Netherlands

Re: Patch: Grass growth on unused tracks

Post by boekabart »

VoxDissident wrote:Does the grass growth affect train speed / acceleration?
No, the way I implemented it it's purely eyecandy; But it also gives some information on track usage that may help you optimize your network.
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by zypa »

Mr. X wrote:Wasn't there an idea like this:

Feature: Unused tracks are degenerating.
Feature: Degenerative tracks have new graphics.
Feature: Trains running over degenerative tracks are getting brakedowns much faster.
New vehicle: Rail maintenance wagon. This wagon can repair degenerative tracks.

Or something? :P
Oh, I've never herad of that feature. I personally do not really like it, because I do not understand why unused tracks are degenerating.
I do really love the grassgrowth eyecandy-feature. Flora takes the railtracks - OK. But unused tracks degenerarte? What can happen to a track when it is not used? It may oxygenate, but you use quite good steel for rail tracks.
See this picture: http://commons.wikimedia.org/wiki/Image ... uselang=en
It's a railtrack from 1886, it's a bit rusty, but it's OK.

However, new features are always good ;)
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Patch: Grass growth on unused tracks

Post by DaleStan »

If by "degenerative tracks", you (for whichever value of "you" applies) mean "tracks that have rusted out", that doesn't happen. Rail tracks are made of weathering steel. Unlike most other rusts, the rust surface on weathering steel is non-porous, and seals out moisture to prevent any further rusting.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by zypa »

These protective oxides are really thin. You can destroythis sealing with a sharp object. At least on metals or alloys I know.
I do not think that there can be a protective oxid on a steel that can stand the power of a train running above it. I guess it's

To the sealing: "...seals out moisture..."
The clue is that is seals out Oxygen _and_ reduces the conductivity of the material. That prevents a further oxygenerating.

Anyway, oxigenerating is not the problem of a track. A heavy used track has be replaced by a new one within 35 years. It's simply bust.
(Savety issues, temperature expression, whatever)

Last but not least: What's a weathering steel?
I know stainless steels, I guess weathering means sth like weather proof, doesn't it?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Patch: Grass growth on unused tracks

Post by DaleStan »

zypa wrote:These protective oxides are really thin. You can destroythis sealing with a sharp object. At least on metals or alloys I know.
I do not think that there can be a protective oxid on a steel that can stand the power of a train running above it.
Correct; trains will polish their rails quite quickly. But rail companies here in the US replace the rails after every billion tons of freight. This is nearly long enough for the rail head to lose any significant strength, regardless of usage; unused rails rust a little and the quit rusting, and well-used rails are replaced regularly.
zypa wrote:What's a weathering steel?
Exactly what Wikipedia says it is.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
_Robbie_
Engineer
Engineer
Posts: 49
Joined: 23 Feb 2008 09:52
Location: Norway

Re: Patch: Grass growth on unused tracks

Post by _Robbie_ »

So basically - more used tracks have higher maintenance cost. I can't say I'm surprised :). BTW - I believe it would be quite a good idea to introduce maintenance cost for tracks depending on their usage. Suddenly, it would be harder to make income from huge train networks with lots of trains. This would lead to smaller, more realistic networks. Maybe I'll try to write a patch someday :D ?
Robbie
broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

Re: Patch: Grass growth on unused tracks

Post by broodje »

Where balance is everything, because having large un-used sections of track also cost a lot of money: Point motors, signals OHLE etc all have to be maintained, making them ready for trains again after years of bad maintenance cost even more.
zypa
Transport Coordinator
Transport Coordinator
Posts: 329
Joined: 30 Mar 2006 12:05
Location: Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by zypa »

Let's come back to the tiopic. Grassgrowth on unused tracks. (In particular DaleStun and I should come back to the topic)

@boekabart:
Is it possible to add an option so maintaining tracks costs some money? The more grassgrowth the lower the costs.
User avatar
prissi
Chief Executive
Chief Executive
Posts: 647
Joined: 15 Nov 2004 19:46
Location: Berlin, Germany
Contact:

Re: Patch: Grass growth on unused tracks

Post by prissi »

(Semiontopic only) How roads would look after many years without neither maintenance nor traffic, can be seen be the famous kiddofspeed chernobyl expeditions. http://www.kiddofspeed.com/ Indeed, mostly heavy trucks eat up our roads.
I like to look at great maps and see how things flow. A little like a finished model railway, but it is evolving and actually never finished. http://www.simutrans.com
Anunnaki
Engineer
Engineer
Posts: 64
Joined: 16 Aug 2005 16:09
Location: Prague, Czech Republic

Re: Patch: Grass growth on unused tracks

Post by Anunnaki »

Roujin wrote:Out of request, I've rediffed this patch(v9) for 0.6.0.

Some minor tweaks were needed due to changes in trunk.
Hi,

i have problem to patch svn trunk r12543 (which is i hope 0.6.0) with your file, i use windows tortoise 1.4.8.
I have error message "outdated" in 4 from 5 files there.

Can you help me with that ?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Patch: Grass growth on unused tracks

Post by Rubidium »

trunk r<something> is NEVER a release. Release are tags where the revision doesn't matter; there will be only one tag of each release and no different versions of a single release.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 26 guests