Patch: Grass growth on unused tracks
Moderator: OpenTTD Developers
Re: Patch: Grass growth on unused tracks
I've just played a bit with old 11226 revision and I must say it is pretty awesome feature. Maybe it is possible to update this patch?
Re: Patch: Grass growth on unused tracks
Updated patch to r14450 (with hel of planetmaker)
(significant: moved data to m2 bits 8-15, to avoid overlapping wth YAPP)
(significant: moved data to m2 bits 8-15, to avoid overlapping wth YAPP)
- Attachments
-
- poldtracks.14450.diff
- old tracks update for revision 14450
- (10.31 KiB) Downloaded 239 times
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Patch: Grass growth on unused tracks
actually... The source code tells that the old tracks info is moved to m7, the extended map array
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
-
- Transport Coordinator
- Posts: 333
- Joined: 25 Aug 2005 09:44
- Location: Eindhoven, Netherlands
Re: Patch: Grass growth on unused tracks
Thanks for the update! For the record: since I don't have time to do it myself, I encourage other people to keep my patches alive!Phazorx wrote:Updated patch to r14450 (with hel of planetmaker)
(significant: moved data to m2 bits 8-15, to avoid overlapping wth YAPP)
Re: Patch: Grass growth on unused tracks
This patch uses its own built-in graphics on top of any tracks set, doesn't it? Or does it need specially enhanced track grfs?
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Patch: Grass growth on unused tracks
heres is and update and also the GRF
For Community Integrated Version http://code.google.com/p/civopenttd/
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Patch: Grass growth on unused tracks
This can be used for snow on tracks as well if some one draws the GRF for it the patch should work with both
For Community Integrated Version http://code.google.com/p/civopenttd/
Re: Patch: Grass growth on unused tracks
An additional idea - grass growth (or perhaps just general deterioration) on unused roads that have no local authority. In other words, any road that isn't too near a town (where it is more likely to be used by residents, etc) deteriorates over time with lack of use.
Chicago trance DJ playing the best trance music in Chicago
Re: Patch: Grass growth on unused tracks
looks nice - useful for old abandoned lines
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Patch: Grass growth on unused tracks
Hi not knowing much about C++ but i would not think it be to hard to add road tiles to this
And also if some one made a new GRF file for this that had snow and sand you could use this in more then just the uk maps
And also if some one made a new GRF file for this that had snow and sand you could use this in more then just the uk maps
For Community Integrated Version http://code.google.com/p/civopenttd/
Re: Patch: Grass growth on unused tracks
Sorry if this is a newbie question but how do you add this patch into the game? I have tried adding it to previous versions of OTTD but it didn't show up in the game or as new graphics.
Does this patch need to be compiled with source code for it to work?
Thanks,
Does this patch need to be compiled with source code for it to work?
Thanks,
Re: Patch: Grass growth on unused tracks
Please read the sticky entitled "Howto apply a patch/diff file".
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: Patch: Grass growth on unused tracks
One note to the diff above (@ R16176):
You have to add "MP_" to the "RAILWAY" in the 3rd line of the function "IncreaseTrackUsage".
Sincerely
xZise
You have to add "MP_" to the "RAILWAY" in the 3rd line of the function "IncreaseTrackUsage".
Sincerely
xZise
Re: Patch: Grass growth on unused tracks
I have no idea what you did, but in the patch above there is MP_RAILWAY just as it should. Most likely you deleted the MP_ yourself by accident.xZise wrote:One note to the diff above (@ R16176):
You have to add "MP_" to the "RAILWAY" in the 3rd line of the function "IncreaseTrackUsage".
Sincerely
xZise
Re: Patch: Grass growth on unused tracks
Oh.... This prefix also exists in the diff-file .... Hmmm I have no Idee, why it was missing, BUT there was a conflict. I fixed it semimanually by coping the code of this function. But I forgot some chars before "RAILWAY"! I saw it an fixed it by copy the rest. So there I forgot the "MP_" ^^ Okay The diff is okay an the patch great Unfortunately there is no influence on the trainYexo wrote:I have no idea what you did, but in the patch above there is MP_RAILWAY just as it should. Most likely you deleted the MP_ yourself by accident.xZise wrote:One note to the diff above (@ R16176):
You have to add "MP_" to the "RAILWAY" in the 3rd line of the function "IncreaseTrackUsage".
Sincerely
xZise
Sincerely
xZise
Re: Patch: Grass growth on unused tracks
Thanks for the information! I'm working as web developer using C# ASP.net - is C++ much different from C#? I was thinking about looking at the source code and having a go at developing something for OTTD.
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: Patch: Grass growth on unused tracks
Syntax is basically the same, but that's where the similiarity endsdrew22299 wrote:Thanks for the information! I'm working as web developer using C# ASP.net - is C++ much different from C#? I was thinking about looking at the source code and having a go at developing something for OTTD.
Re: Patch: Grass growth on unused tracks
Starting from a language-lawyery knowledge of C++, and rather limited knowledge of C#:
C++ has multiple inheritance instead of interfaces.
C++ has three operators (five, actually, but you'll never see or use two of them) in place of C#'s dot operator.
C++ doesn't enforce the Java-y everything-lives-in-a-class concept. (In fact, baring the corner cases where C code uses one of C++'s new reserved words, all valid C code is valid C++ code.)
C++ lets you overload operators more freely. (In standard C++, for example, it is legal to shift cout "Hello World!" bits to the left. It is further legal to overload the function-call and comma operators. Also (though you should NEVER EVER DO THIS -- provide an implicit conversion to bool instead) && and ||.)
C++ permits programmer-defined implicit conversions. (eg implicit conversions from a file stream to a bool.)
C++ does not have properties. But you can simulate them with a class with overridden assignment and implicit conversion operators.
C++ does not have indexers. But you can simulate them by overloading operator []. (See also above. And you can use non-POD types as indices.)
C++ uses public, protected, and private differently.
C++ templates (Generics) can take parameters that are any combination of any number of types and values. (e.g. bitset<256>)
C++ has pointers in addition to value and reference types.
To some extent, C++ is C# with the safety off. If you want to be protected from shooting yourself in the foot, use C#. But if you need to shoot between your toes, C# won't let you, even if you do know enough to be able to do it safely. Use C++ for that.
C++ has multiple inheritance instead of interfaces.
C++ has three operators (five, actually, but you'll never see or use two of them) in place of C#'s dot operator.
C++ doesn't enforce the Java-y everything-lives-in-a-class concept. (In fact, baring the corner cases where C code uses one of C++'s new reserved words, all valid C code is valid C++ code.)
C++ lets you overload operators more freely. (In standard C++, for example, it is legal to shift cout "Hello World!" bits to the left. It is further legal to overload the function-call and comma operators. Also (though you should NEVER EVER DO THIS -- provide an implicit conversion to bool instead) && and ||.)
C++ permits programmer-defined implicit conversions. (eg implicit conversions from a file stream to a bool.)
C++ does not have properties. But you can simulate them with a class with overridden assignment and implicit conversion operators.
C++ does not have indexers. But you can simulate them by overloading operator []. (See also above. And you can use non-POD types as indices.)
C++ uses public, protected, and private differently.
C++ templates (Generics) can take parameters that are any combination of any number of types and values. (e.g. bitset<256>)
C++ has pointers in addition to value and reference types.
To some extent, C++ is C# with the safety off. If you want to be protected from shooting yourself in the foot, use C#. But if you need to shoot between your toes, C# won't let you, even if you do know enough to be able to do it safely. Use C++ for that.
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: Patch: Grass growth on unused tracks
Thanks for the detailed answer, I didn't realise there were that many differences between the two languages. I looked at the source code and I can see what most of the code is doing but there are so many classes lol
Re: Patch: Grass growth on unused tracks
I don't see why that is funny, but yes, there are a lot of classes and support functions.drew22299 wrote:I looked at the source code and I can see what most of the code is doing but there are so many classes lol
You don't need to understand everything before you can make changes, so just study the part that you are interested in.
Who is online
Users browsing this forum: Ahrefs [Bot] and 43 guests