Page 1 of 2

Random road construction (r17455)

Posted: 29 Feb 2008 18:30
by Roujin
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
random_road_construction_v1_r12628.diff
random road construction v1 for r12628
(3.22 KiB) Downloaded 637 times
random_road_construction_v1_r12436.diff
random road construction v1 for r12436
(3.22 KiB) Downloaded 596 times
random_road_construction_v1_r12320.diff
random road construction v1 for r12320
(3.22 KiB) Downloaded 567 times

Re: [Patch]Random road construction

Posted: 29 Feb 2008 18:57
by FooBar
And yet another fine Roujin patch :D

I think your list of "patches in trunk" is far too short compared to the other list :wink:

Re: [Patch]Random road construction

Posted: 29 Feb 2008 19:29
by peter1138
FooBar wrote:I think your list of "patches in trunk" is far too short compared to the other list :wink:
Mainly because trunk is in feature freeze at the moment ;-)

Re: [Patch]Random road construction

Posted: 29 Feb 2008 19:58
by FooBar
I'll take that as a "will get into trunk as soon as 0.6.0 is final" :wink:

Re: [Patch]Random road construction

Posted: 29 Feb 2008 22:18
by rbenevid
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. :lol:

Re: [Patch]Random road construction

Posted: 04 Mar 2008 21:13
by LordAzamath
Supplied? I thought it should've been... ok. Not in this thread :P
But I think yes, that Roujins patches are almost always incredibly useful too :P

Re: Random road construction (v1; r12628)

Posted: 14 Apr 2008 11:55
by wleader
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)

Posted: 16 Apr 2008 16:48
by Roujin
updated to current trunk.

Re: Random road construction (r13417)

Posted: 08 Jun 2008 17:13
by Roujin
Update to r13417.

Re: Random road construction (r13417)

Posted: 17 Oct 2008 12:34
by Mooияakeя™
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.

Re: Random road construction (r13417)

Posted: 17 Oct 2008 12:49
by a.locritani
Mooия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?
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 features

Re: Random road construction (r13417)

Posted: 17 Oct 2008 13:44
by Mooияakeя™
OK thanks.

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)

Posted: 17 Oct 2008 15:27
by Roujin
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

Re: Random road construction (r13417)

Posted: 17 Oct 2008 19:42
by a.locritani
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)

Posted: 19 Oct 2008 20:03
by Roujin
Here's an update after long time.

Re: Random road construction (r14494)

Posted: 03 Jul 2009 14:09
by 2007Alain2007
Hi i changed it so the settings for this patch are in the town settings

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)};
random_road_construction_r16176(16727).diff
I have done this becuse it only works with in towns not any were esle on the map

Re: Random road construction (r14494)

Posted: 07 Sep 2009 03:20
by Roujin
Update. No changes.

edit: removed, because it was flawed.

Re: Random road construction (r17438)

Posted: 07 Sep 2009 03:31
by petert
Update to a revision that doesn't exist?

Re: Random road construction (r17438)

Posted: 07 Sep 2009 04:26
by Roujin
petert wrote:Update to a revision that doesn't exist?
It does. Check your facts...

Re: Random road construction (r17438)

Posted: 07 Sep 2009 04:29
by petert