Another Daylength patch
Moderator: OpenTTD Developers
Re: Another Daylength patch
Is there a version of the daylenght patch where the production can be adjusted?
regards!
regards!
Re: Another Daylength patch
I'm currently working on it. Just reading values from config file is failed. Anyone has any idea?pecX wrote:Is there a version of the daylenght patch where the production can be adjusted?
regards!
- Attachments
-
- daylength_dc-1.3.2.diff
- Daylength patch for OpenTTD-1.3.2 with cargo production toggle
- (13.16 KiB) Downloaded 161 times
Re: Another Daylength patch
That looks horrible to be honest. If you don't cross the "Divide monthly cargo production by day length factor", then you have ordinary day length patch. Just look for different author (or my first concept) and you will have it, just more stable! And furthermore, you changed the DAY_TICKS, which will cause all kinds of problems no matter the settings. If I would use yours patch, day length factor 10 and I would like to divide cargo production, I can see that the game will run 100x slower.
EDIT: I am wrong with the last statement.
EDIT: I am wrong with the last statement.
My patches: Day length (new concept), Conditional loading, Auto separation, Unload all adds Leave empty, Better statue placement (in trunk)
My abandoned patches: Speed limits for RVs, Day length (old concept)
My abandoned patches: Speed limits for RVs, Day length (old concept)
Re: Another Daylength patch
is there a zipped/compiled version of the "first" daylenght patch with adjusted production?
Unfortunately i can´t compile
Unfortunately i can´t compile
Re: Another Daylength patch
Make a try with my very fresh patchpack :YAPP . Be the first beta tester and please report any bugs! (You can disable all extra features if you want the stock game.)pecX wrote:is there a zipped/compiled version of the "first" daylenght patch with adjusted production?
Unfortunately i can´t compile
Re: Another Daylength patch
Okie, I got it. Then take a look at my second try with cargo production concept heavily based on your patches.pavel1269 wrote:That looks horrible to be honest. If you don't cross the "Divide monthly cargo production by day length factor", then you have ordinary day length patch. Just look for different author (or my first concept) and you will have it, just more stable! And furthermore, you changed the DAY_TICKS, which will cause all kinds of problems no matter the settings.
- Attachments
-
- day_length_advanced_slowprod-hun-1.3.2.diff
- (38.4 KiB) Downloaded 112 times
Re: Another Daylength patch
I just quickly looked at it. From my perspective, it's just updated patch from the first post (my first approach). No need to comment more.
My patches: Day length (new concept), Conditional loading, Auto separation, Unload all adds Leave empty, Better statue placement (in trunk)
My abandoned patches: Speed limits for RVs, Day length (old concept)
My abandoned patches: Speed limits for RVs, Day length (old concept)
Re: Another Daylength patch
Yes, but i can't fully update your patch. I have a question: The day_length_balance_factor has no effect on buying vehicles, but it multiplies the cost of cloning the same vehicle. Which was the correct concept? Then i'll know what's my fault.pavel1269 wrote:I just quickly looked at it. From my perspective, it's just updated patch from the first post (my first approach). No need to comment more.
Re: Another Daylength patch
Honestly I don't know anymore such details about it anymore. But from your description, there's just some bug now, because of some feature in trunk now, I would guess. I abandoned that patch and I don't plan ever on returning to it so I am not going to help you with developing it.
My patches: Day length (new concept), Conditional loading, Auto separation, Unload all adds Leave empty, Better statue placement (in trunk)
My abandoned patches: Speed limits for RVs, Day length (old concept)
My abandoned patches: Speed limits for RVs, Day length (old concept)
Re: Another Daylength patch
I've updated the patch file to the latest trunk version (1.4.0-beta3/r26274). I haven't edited it beyond making it patch against the newer version of the code but it compiles OK and a quick test shows that it seems to work.DC-1 wrote:Okie, I got it. Then take a look at my second try with cargo production concept heavily based on your patches.pavel1269 wrote:That looks horrible to be honest. If you don't cross the "Divide monthly cargo production by day length factor", then you have ordinary day length patch. Just look for different author (or my first concept) and you will have it, just more stable! And furthermore, you changed the DAY_TICKS, which will cause all kinds of problems no matter the settings.
- Attachments
-
- daylength-1.4.0-beta3-r26274.patch
- apply directly to src directory
- (36.74 KiB) Downloaded 149 times
Re: Another Daylength patch
I'm unable to get this to work. I get an error whenever I attempt to connect to a server.
'Could not load savegame' if I compile it myself.
A straight ctd if I receive a compiled Windows version from someone else. Have you managed to get it working, ropier?
'Could not load savegame' if I compile it myself.
A straight ctd if I receive a compiled Windows version from someone else. Have you managed to get it working, ropier?
Re: Another Daylength patch
Nope, I'm having the same issue. I'm going to take some time to figure out how this actually works and how to fix it.LSky wrote:I'm unable to get this to work. I get an error whenever I attempt to connect to a server.
'Could not load savegame' if I compile it myself.
A straight ctd if I receive a compiled Windows version from someone else. Have you managed to get it working, ropier?
Re: Another Daylength patch
Thanks for the efforts!ropier wrote:Nope, I'm having the same issue. I'm going to take some time to figure out how this actually works and how to fix it.LSky wrote:I'm unable to get this to work. I get an error whenever I attempt to connect to a server.
'Could not load savegame' if I compile it myself.
A straight ctd if I receive a compiled Windows version from someone else. Have you managed to get it working, ropier?
- BlueEagle_nl
- Transport Coordinator
- Posts: 352
- Joined: 28 Jan 2006 09:44
- Skype: tilly5014
- Location: Tillywood, The Netherlands
Re: Another Daylength patch
In the first post, OP metioned a bug in Autorail pricing. Well, this screws up my game in the YAPP-patchpack by DC-1 a lot...
Is there any chance this bug has been fixed?
Is there any chance this bug has been fixed?
-
- Engineer
- Posts: 17
- Joined: 11 Oct 2013 23:20
Re: Another Daylength patch
Hi, Im kind of new into openTTD and absolutely a noob on patching and compiling.
I followed this guide:
http://wiki.openttd.org/Compiling_on_%2 ... x_and_*BSD
I managed to patch the source with an automated timetable patch and i played for a while, but then tried the same with this daylength patch and had no luck.
This is what i did:
But im getting:
What am I doing wrong?
Thanks!
I followed this guide:
http://wiki.openttd.org/Compiling_on_%2 ... x_and_*BSD
I managed to patch the source with an automated timetable patch and i played for a while, but then tried the same with this daylength patch and had no luck.
This is what i did:
Code: Select all
svn checkout svn://svn.openttd.org/trunk openttd
svn update -r 26274
patch -p0 < daylength-1.4.0-beta3-r26274.patch (also tried -p1)
Code: Select all
gabriel@linux-a7dy:~/openttd2> patch -p0 < daylength-1.4.0-beta3-r26274.patch
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: command.cpp
|===================================================================
|--- command.cpp (revision 26274)
|+++ command.cpp (working copy)
--------------------------
Thanks!
Re: Another Daylength patch
check the first few lines of the patch (with "head"), if the paths start with "a/" and "b/", use "-p1" instead of "-p0"
merging daylength probably needs further touchups in places where DAY_TICKS is used in the timetable patch.
merging daylength probably needs further touchups in places where DAY_TICKS is used in the timetable patch.
Re: Another Daylength patch
Given that -p0 results in trying to find "command.cpp", my guess is you need to run the patch -p0 command from the "src" directory.
-
- Engineer
- Posts: 17
- Joined: 11 Oct 2013 23:20
Re: Another Daylength patch
Yeah, tried both p0 and p1, neither one worked.Eddi wrote:check the first few lines of the patch (with "head"), if the paths start with "a/" and "b/", use "-p1" instead of "-p0"
merging daylength probably needs further touchups in places where DAY_TICKS is used in the timetable patch.
-
- Engineer
- Posts: 17
- Joined: 11 Oct 2013 23:20
Re: Another Daylength patch
Well, that worked hehe. thanks!Alberth wrote:Given that -p0 results in trying to find "command.cpp", my guess is you need to run the patch -p0 command from the "src" directory.
-
- Engineer
- Posts: 17
- Joined: 11 Oct 2013 23:20
Re: Another Daylength patch
And indeed, patching both, automated timetables and daylength patch gave errors and "make" did not work.Eddi wrote:check the first few lines of the patch (with "head"), if the paths start with "a/" and "b/", use "-p1" instead of "-p0"
merging daylength probably needs further touchups in places where DAY_TICKS is used in the timetable patch.
Who is online
Users browsing this forum: No registered users and 14 guests