Gremnon's Patch Pack (GPP, r18413)

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

User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17680)

Post by Gremnon »

2007Alain2007 wrote:Hi petert

Is this also added to the code site for this patch pack

also post the code changes you did
I uploaded it to the code site. The actual changes required for it, though, aren't.
If they're posted though, I'll include it in the next release of the pack.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Gremnon's Patch Pack (GPP, r17680)

Post by petert »

I didn't change anything, I just used the regular diff to make it, and changed the version number.


Edit: If you want to, you can add me as a developer on google code, and I can manage the win32 binaries.
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: Gremnon's Patch Pack (GPP, r17680)

Post by sulai »

GPP update against r17736
+ updated "better profit rating"
+ savegame compatibility to current trunk (and backwards)

Also savegames done with GPP3 are fine, but I'm not sure about other versions of GPP.
Attachments
GPP4.diff
(512.74 KiB) Downloaded 136 times
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17680)

Post by Gremnon »

Thanks sulai
If it helps, we can add you to the Google Code pages, and you can upload directly to there, for patches, issues to be fixed, binaries, and so on.
Edit: Your patch is missing the new files in src that some of the other patches introduce
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Gremnon's Patch Pack (GPP, r17736)

Post by petert »

Can I be part of the Google Code team? Strictly for win32 binaires.
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: Gremnon's Patch Pack (GPP, r17680)

Post by sulai »

Gremnon wrote:Thanks sulai
If it helps, we can add you to the Google Code pages,...
Thanks for asking, but I fear I'm going to have some time problems in near future ;)

I found another bug: road vehicle yapf penalty is not working, this hunk has yet to be applied.

Code: Select all

Index: src/yapf/yapf_road.cpp
===================================================================
--- src/yapf/yapf_road.cpp	(revision 17533)
+++ src/yapf/yapf_road.cpp	(working copy)
@@ -83,6 +84,10 @@
 			/* non-diagonal trackdir */
 			cost = YAPF_TILE_CORNER_LENGTH + Yapf().PfGetSettings().road_curve_penalty;
 		}
+
+		/* Check for vehicles on the same path */
+		if (!EnsureNoRoadVehWithTrackdir(tile, trackdir)) cost += Yapf().PfGetSettings().road_vehicle_penalty;
+
 		return cost;
 	}
User avatar
Ammler
President
President
Posts: 953
Joined: 18 Jun 2006 18:18
Location: Switzerland
Contact:

Re: Gremnon's Patch Pack (GPP, r17633)

Post by Ammler »

Gremnon wrote:I'd like to, but I don't think IS will make it in - to my knowledge, it's not been updated for a while (Could be wrong)
IS is updated in around monthly basis: http://dev.openttdcoop.org/projects/is2/activity (last merge with r17583)

Don't know many other patches that are maintained that well. :-)

Greets
Ammler
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

sulai - I'll have a look into that one, the YAPF Vehicle Penalty patch always causes trouble somehow for me.

Ammler - I completly forgot about their repo until after I made that post. The issue I have though is that I can't figure out how to turn it into a patch against trunk. I'd rather apply to trunk, rather than have one folder for IS+GPP and another for trunk+GPP
On the other hand, I may have to do it that way, but I'd prefer not to, my folder for all source code projects, not just OpenTTD, is getting rather full.
User avatar
Ammler
President
President
Posts: 953
Joined: 18 Jun 2006 18:18
Location: Switzerland
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Ammler »

I have added a script which does create new patches, if needed:
http://bundles.openttdcoop.org/is2/trunk-patches/
(as a Mercurial diff, it needs p1, but that should be ok?)
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

p1 is fine, it's just I find it easier to apply patches to one copy of trunk, than several copies for neatness.

With the update to AutoLoad faces, it'll be making a return to the pack soon too.
sulai
Traffic Manager
Traffic Manager
Posts: 159
Joined: 24 Sep 2004 18:23

Re: Gremnon's Patch Pack (GPP, r17736)

Post by sulai »

Hi there,

my latest version of GPP, this time all necessary files should be included. It features:
Gremnons_PP_17680
+ savegame compatibility
+ updated "better profit rating"
+ fixed "yapf road vehicle penalty"

against r17736.

Have fun :)
Attachments
GPP5.diff
(542.45 KiB) Downloaded 108 times
bokkie
Transport Coordinator
Transport Coordinator
Posts: 327
Joined: 19 Jan 2007 19:26

Re: Gremnon's Patch Pack (GPP, r17633)

Post by bokkie »

Gremnon wrote:Improved Timetable Management - Now included by request. And while before I never used timetables, I'll admit that this patch has made me think again.

(...)

And finally, a note from Isaac (read back a few posts if you've missed finding out who).
CargoDist is looking possible, with an unusually small number of issues, but it won't be out this week. Stay tuned though.
Maybe this week? :lol: Would surely make me happy :)
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

I'll pester Isaac again.
I've suggested he register on here himself, he keeps putting it off... but hopefully he'll have one for us soon.
User avatar
zar_igor
Engineer
Engineer
Posts: 32
Joined: 24 May 2006 17:26
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by zar_igor »

Hi Gremnon!

Would it be possible to add the these two patches?
- disable tree growth
- prevent towns from building ANY roads

Bye, Mike
Playing Transport Tycoon since 25+ years.
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

At the moment real life is taking a lot of my time (hence no update from me lately)
I'll have a look when I get some more time to dive into the source code again.
2007Alain2007
Chief Executive
Chief Executive
Posts: 658
Joined: 11 Nov 2007 12:06
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by 2007Alain2007 »

hi Gremnon i only need the src/statusbar_gui.cpp i have added in r17765_reduced_tree_growth
but cant test befor the main update has beed added

also the prevent towns from building ANY roads i cant find what patch you want for that

Code: Select all

Index: src/statusbar_gui.cpp
===================================================================
--- src/statusbar_gui.cpp	(revision 17680)
+++ src/statusbar_gui.cpp	(working copy)
@@ -104,8 +104,18 @@
 		const Company *c = (_local_company == COMPANY_SPECTATOR) ? NULL : Company::Get(_local_company);
 
 		this->DrawWidgets();
-		SetDParam(0, _date);
-		DrawString(this->widget[SBW_LEFT].left + 1, this->widget[SBW_LEFT].right - 1, 1, (_pause_mode || _settings_client.gui.status_long_date) ? STR_WHITE_DATE_LONG : STR_WHITE_DATE_SHORT, TC_FROMSTRING, SA_CENTER);
+		if (_settings_client.gui.status_virtual_time) {
+			if (_virtual_time == INVALID_TIME) _virtual_time = DateToTime(_date, _date_fract);
+			SetDParam(0, (_pause_mode || _settings_client.gui.status_long_date) ? STR_WHITE_DATE_LONG : STR_WHITE_DATE_SHORT);
+			SetDParam(1, _date);
+			SetDParam(2, (_settings_client.gui.status_virtual_time == 1) ?
+			          STR_STATUS_TIME_12 : STR_STATUS_TIME_24);
+			SetDParam(3, _virtual_time);
+			DrawString(this->widget[SBW_LEFT].left + 1, this->widget[SBW_LEFT].right - 1, 1, STR_STATUS_TIME, TC_FROMSTRING, SA_CENTER);
+		} else {
+			SetDParam(0, _date);
+			DrawString(this->widget[SBW_LEFT].left + 1, this->widget[SBW_LEFT].right - 1, 1, (_pause_mode || _settings_client.gui.status_long_date) ? STR_WHITE_DATE_LONG : STR_WHITE_DATE_SHORT, TC_FROMSTRING, SA_CENTER);
+		}
 
 		if (c != NULL) {
 			/* Draw company money */
For Community Integrated Version http://code.google.com/p/civopenttd/
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

2007Alain2007 wrote:but cant test befor the main update has beed added
At the moment, there isn't an update - the copy of the patch I have needs work, and time to do that in, something I'm missing right now.
Perhaps use the current latest one that sulai posted? (Note - I haven't checked that patch yet, so I don't know if it works or not.)
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Terkhen »

zar_igor wrote:- prevent towns from building ANY roads
There is already an option in OpenTTD that allows this. You can find it at Advanced settings -> Economy -> Towns -> Towns are allowed to build roads.
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by Gremnon »

Isn't that force-disabled in the editor, or did that get changed while I wasn't paying attention again?
2007Alain2007
Chief Executive
Chief Executive
Posts: 658
Joined: 11 Nov 2007 12:06
Contact:

Re: Gremnon's Patch Pack (GPP, r17736)

Post by 2007Alain2007 »

Hi zar_igor

I have added in the r17765_reduced_tree_growth patch so but this isnt an update to trunk

this is been added to the patch pack from the http://code.google.com/p/ppfottd/

NOT sulai GPP5.diff that has some big probles in

but all in all i hope you like this
ottd-gpp-r17680 + r17765_reduced_tree_growth.patch
Last edited by 2007Alain2007 on 19 Oct 2009 10:55, edited 1 time in total.
For Community Integrated Version http://code.google.com/p/civopenttd/
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 10 guests