Random road construction (r17455)
Moderator: OpenTTD Developers
Random road construction (r17455)
I decided to split off the random road construction feature from my traffic lights patch.
You get a new advanced setting (under economy->towns) to enable random road construction to be started in towns. The number is basically a % value of the chance for road construction when it is funded. e.g. setting it to 1 means the chance for random road construction is one hundredth the chance of funded road construction.
The setting goes from 0 (off) to 20 (1/5 of the chance when roadworks were funded, which is already pretty annoying if you ask me.)
Here's the patch:
r17455
(old versions:)
r12320
r12436
r12628
r12733
r13417
r14494
You get a new advanced setting (under economy->towns) to enable random road construction to be started in towns. The number is basically a % value of the chance for road construction when it is funded. e.g. setting it to 1 means the chance for random road construction is one hundredth the chance of funded road construction.
The setting goes from 0 (off) to 20 (1/5 of the chance when roadworks were funded, which is already pretty annoying if you ask me.)
Here's the patch:
r17455
(old versions:)
r12320
r12436
r12628
r12733
r13417
r14494
Last edited by Roujin on 07 Sep 2009 14:03, edited 10 times in total.
Re: [Patch]Random road construction
And yet another fine Roujin patch
I think your list of "patches in trunk" is far too short compared to the other list
I think your list of "patches in trunk" is far too short compared to the other list
Re: [Patch]Random road construction
Mainly because trunk is in feature freeze at the momentFooBar wrote:I think your list of "patches in trunk" is far too short compared to the other list
He's like, some kind of OpenTTD developer.
Re: [Patch]Random road construction
I'll take that as a "will get into trunk as soon as 0.6.0 is final"
Re: [Patch]Random road construction
Most of Roujin's patches are small and incredibly useful. I think they're in as soon as the feature freeze is off.
And as soon as people decide what verb to use in "Supplied Cargo" patch.
And as soon as people decide what verb to use in "Supplied Cargo" patch.
-
- Tycoon
- Posts: 1656
- Joined: 08 Jun 2007 08:00
Re: [Patch]Random road construction
Supplied? I thought it should've been... ok. Not in this thread
But I think yes, that Roujins patches are almost always incredibly useful too
But I think yes, that Roujins patches are almost always incredibly useful too
Re: Random road construction (v1; r12628)
I just started up a build that included this patch and saw that the town in the title screen had road construction in progress. Kinda neat really.
Re: Random road construction (v1; r12733)
updated to current trunk.
- Attachments
-
- random_road_construction_v1_r12733.diff
- random road construction v1 for r12733
- (3.66 KiB) Downloaded 513 times
Re: Random road construction (r13417)
Update to r13417.
- Attachments
-
- random_road_construction.diff
- random road construction #39 for r13417
- (4.19 KiB) Downloaded 516 times
- Mooияakeя™
- Engineer
- Posts: 9
- Joined: 17 Oct 2008 10:47
- Location: England
Re: Random road construction (r13417)
OK, I've read the "how to apply a patch" and I'm still boxed.
So these .diff's can't be added to the normal releases like grf's?
I'm not completely incompetent and would understand easily any other times, I'm just not getting this at all.
So these .diff's can't be added to the normal releases like grf's?
I'm not completely incompetent and would understand easily any other times, I'm just not getting this at all.
-
- Engineer
- Posts: 111
- Joined: 08 Feb 2007 11:59
- Skype: a.locritani
- Location: Italy
Re: Random road construction (r13417)
No, they can't... you have to apply the patch then compile the patched source and, if everything goes well, you'll have an executable with your wanted featuresMooияakeя™ wrote:OK, I've read the "how to apply a patch" and I'm still boxed.
So these .diff's can't be added to the normal releases like grf's?
- Mooияakeя™
- Engineer
- Posts: 9
- Joined: 17 Oct 2008 10:47
- Location: England
Re: Random road construction (r13417)
OK thanks.
Is it just the exe you need to make?
I'll go browsing for the src files then and more info.
Is it just the exe you need to make?
I'll go browsing for the src files then and more info.
Re: Random road construction (r13417)
Here's a list of tutorials for compiling on various platforms and with various tools. Note that the "BuildOTTD" tool currently doesn't work.
http://wiki.openttd.org/wiki/index.php/ ... pile_it.3F
http://wiki.openttd.org/wiki/index.php/ ... pile_it.3F
-
- Engineer
- Posts: 111
- Joined: 08 Feb 2007 11:59
- Skype: a.locritani
- Location: Italy
Re: Random road construction (r13417)
Mooияakeя™, I suggest you to read this section of compiling on linux even if you will not compile on linux, because there are useful info on SVN and patching
Re: Random road construction (r14494)
Here's an update after long time.
- Attachments
-
- random_road_construction_r14494.diff
- random road construction for r14494.
- (4.19 KiB) Downloaded 485 times
-
- Chief Executive
- Posts: 658
- Joined: 11 Nov 2007 12:06
- Contact:
Re: Random road construction (r14494)
Hi i changed it so the settings for this patch are in the town settings
I have done this becuse it only works with in towns not any were esle on the map
Code: Select all
Index: src/settings_gui.cpp
===================================================================
--- src/settings_gui.cpp (revision 16727)
+++ src/settings_gui.cpp (working copy)
@@ -1241,6 +1241,7 @@
SettingEntry("economy.town_growth_rate"),
SettingEntry("economy.larger_towns"),
SettingEntry("economy.initial_city_size"),
+ SettingEntry("economy.random_road_construction"),
};
/** Towns sub-page */
static SettingsPage _settings_economy_towns_page = {_settings_economy_towns, lengthof(_settings_economy_towns)};
For Community Integrated Version http://code.google.com/p/civopenttd/
Re: Random road construction (r14494)
Update. No changes.
edit: removed, because it was flawed.
edit: removed, because it was flawed.
Last edited by Roujin on 07 Sep 2009 13:55, edited 1 time in total.
Re: Random road construction (r17438)
Update to a revision that doesn't exist?
Re: Random road construction (r17438)
It does. Check your facts...petert wrote:Update to a revision that doesn't exist?
Who is online
Users browsing this forum: No registered users and 21 guests