Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Sep 25, 2017 8:34 pm

All times are UTC




Post new topic  Reply to topic  [ 24 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Fri Feb 29, 2008 6:30 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
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

Attachment:
File comment: random road construction v1 for r12628
random_road_construction_v1_r12628.diff [3.22 KiB]
Downloaded 322 times

Attachment:
File comment: random road construction v1 for r12436
random_road_construction_v1_r12436.diff [3.22 KiB]
Downloaded 245 times

Attachment:
File comment: random road construction v1 for r12320
random_road_construction_v1_r12320.diff [3.22 KiB]
Downloaded 284 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


Last edited by Roujin on Mon Sep 07, 2009 2:03 pm, edited 10 times in total.

Top
   
PostPosted: Fri Feb 29, 2008 6:57 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
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:

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
PostPosted: Fri Feb 29, 2008 7:29 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Mar 30, 2005 9:43 am
Posts: 1505
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 ;-)

_________________
He's like, some kind of OpenTTD developer.


Top
   
PostPosted: Fri Feb 29, 2008 7:58 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
I'll take that as a "will get into trunk as soon as 0.6.0 is final" :wink:

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
PostPosted: Fri Feb 29, 2008 10:18 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Thu Oct 14, 2004 8:08 pm
Posts: 192
Location: Brazil
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:


Top
   
PostPosted: Tue Mar 04, 2008 9:13 pm 
Offline
Tycoon
Tycoon

Joined: Fri Jun 08, 2007 8:00 am
Posts: 1656
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

_________________
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.


Top
   
PostPosted: Mon Apr 14, 2008 11:55 am 
Offline
Engineer
Engineer

Joined: Fri May 18, 2007 9:04 am
Posts: 123
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.


Top
   
PostPosted: Wed Apr 16, 2008 4:48 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
updated to current trunk.


Attachments:
File comment: random road construction v1 for r12733
random_road_construction_v1_r12733.diff [3.66 KiB]
Downloaded 264 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
Top
   
PostPosted: Sun Jun 08, 2008 5:13 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
Update to r13417.


Attachments:
File comment: random road construction #39 for r13417
random_road_construction.diff [4.19 KiB]
Downloaded 258 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
Top
   
PostPosted: Fri Oct 17, 2008 12:34 pm 
Offline
Engineer
Engineer
User avatar

Joined: Fri Oct 17, 2008 10:47 am
Posts: 9
Location: England
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.


Top
   
PostPosted: Fri Oct 17, 2008 12:49 pm 
Offline
Engineer
Engineer

Joined: Thu Feb 08, 2007 11:59 am
Posts: 111
Skype: a.locritani
Location: Italy
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

_________________
Name your station from nearby (standard) industry


Top
   
PostPosted: Fri Oct 17, 2008 1:44 pm 
Offline
Engineer
Engineer
User avatar

Joined: Fri Oct 17, 2008 10:47 am
Posts: 9
Location: England
OK thanks.

Is it just the exe you need to make?

I'll go browsing for the src files then and more info.


Top
   
PostPosted: Fri Oct 17, 2008 3:27 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
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

_________________
* @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


Top
   
PostPosted: Fri Oct 17, 2008 7:42 pm 
Offline
Engineer
Engineer

Joined: Thu Feb 08, 2007 11:59 am
Posts: 111
Skype: a.locritani
Location: Italy
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

_________________
Name your station from nearby (standard) industry


Top
   
PostPosted: Sun Oct 19, 2008 8:03 pm 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
Here's an update after long time.


Attachments:
File comment: random road construction for r14494.
random_road_construction_r14494.diff [4.19 KiB]
Downloaded 253 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
Top
   
PostPosted: Fri Jul 03, 2009 2:09 pm 
Offline
Chief Executive
Chief Executive

Joined: Sun Nov 11, 2007 12:06 pm
Posts: 658
Hi i changed it so the settings for this patch are in the town settings

Code:
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)};



Attachment:
random_road_construction_r16176(16727).diff [3.92 KiB]
Downloaded 185 times


I have done this becuse it only works with in towns not any were esle on the map

_________________
For Community Integrated Version http://code.google.com/p/civopenttd/


Top
   
PostPosted: Mon Sep 07, 2009 3:20 am 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
Update. No changes.

edit: removed, because it was flawed.

_________________
* @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


Last edited by Roujin on Mon Sep 07, 2009 1:55 pm, edited 1 time in total.

Top
   
PostPosted: Mon Sep 07, 2009 3:31 am 
Offline
Tycoon
Tycoon

Joined: Thu Apr 02, 2009 10:43 pm
Posts: 3008
Location: Massachusetts, USA
Update to a revision that doesn't exist?


Top
   
PostPosted: Mon Sep 07, 2009 4:26 am 
Offline
Tycoon
Tycoon

Joined: Sun Apr 08, 2007 4:07 am
Posts: 1884
petert wrote:
Update to a revision that doesn't exist?


It does. Check your facts...

_________________
* @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


Top
   
PostPosted: Mon Sep 07, 2009 4:29 am 
Offline
Tycoon
Tycoon

Joined: Thu Apr 02, 2009 10:43 pm
Posts: 3008
Location: Massachusetts, USA
My Mistake.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 24 posts ]  Go to page 1 2 Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2017 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2017.
Hosted by Zernebok Hosting.