Another Daylength patch

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
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

laurijh wrote:Hmm, well even if you think multiplying running costs twice is the right behaviour, ...
I forgot to say that, but, if you dont want to multiply the running cost at day length balance type none/payments, i will have to actually divide running cost.
laurijh wrote: ... there's one thing that I would consider a bug; an inconsistency between displayed vehicle profits and the total sum of income - running costs.

Example: I'm currently playing (at daylength factor 5 and balancing with running costs) with only 1 Airship, which shows "Profit this year: €3,536", yet in the Company Finances window for current year it shows "Aircraft running costs -€103,160" and "Aircraft Income +€24,168".

This might not otherwise be a big deal but now you can't see which vehicle makes a profit and which makes a loss in the vehicle list window.
Strange, will check :-)
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

New Update :-)

Added some patch settings (see first post).

Also made change to running costs as W_neun described. Vehicle will pay per each game year same apart day length if balance type is not running/all costs.
laurijh
Engineer
Engineer
Posts: 19
Joined: 21 Jul 2009 11:52
Location: Finland

Re: Another Daylength patch

Post by laurijh »

Yay, thanks especially for the "slow down vehicle reliability drop" option. :) Not having to deal with vehicles getting old all the time is one of the most important things of a day-length patch for me. I'll test this when I get home today...
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

New update :-)

Repaired running costs. Removed the industry production bug. Repaired swapped loan interests and property maintemance. And dont remember more ...

Only one todo, that patch option, which W_neun described.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Again new update :-)

Added new patch option - Balance multiplier. See first or W_Neun's post for more info.

Hope this is the last version of patch :-)
rileyk
Engineer
Engineer
Posts: 21
Joined: 22 May 2004 23:16
Location: Canada

Re: Another Daylength patch

Post by rileyk »

Just want to thank you for all your time & effort in perfecting this patch. Very generous of you. Also thank you for posting binaries with your updates , very helpful for people like me who lack the expertise to make my own binaries. Thanks again.

Rileyk
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Very thanks for you feedback :-)

Please also report any bug / desync / idea / request / anything.

pavel
moki
Traffic Manager
Traffic Manager
Posts: 131
Joined: 06 Jul 2007 08:48
Location: Wismar, Germany

Re: Another Daylength patch

Post by moki »

Firstly, thanks for this magnificent patch :D

I did find a small bug with the win32 binary r17157M. When "Slow down vehicle reliability drop down" is active, brakedowns do happen (though rather rarely), no matter if you turn them off in the difficulty settings. I observed it in multiple games, with different newgrfs and even after a redownload/-installation. Seems reproducable to me, but I can provide a savegame, if it helps.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Oh, great! :-)

I have occured the breakdowns problem also, but i thought, it is caused by newgrf. Thanks for report :-)

EDIT:
Update :-) See first post.
- Repaired performance ( min/max income, money and delivered had same values )
- Removed bug, when vehicled do breakdown while breakdowns are off
Ottomobeale
Engineer
Engineer
Posts: 43
Joined: 05 Aug 2009 14:21

Re: Another Daylength patch

Post by Ottomobeale »

Im a bit confused. I DL the 2=MB patch above and unzip it. It contains a bunch of languages, some empty folders, a couple grfs named openttd and openttdw which Im thinking is the dos and windows version of the same thing and it looks like the authors openttd exe and config file.

Im just supposed to put all his stuff in my data folder?

Sorry for the newbish question but this is the first archive I have opened with 66 files in it. Usually Ill unzip one and find 2-4 files.

Can anyone enlighten me with exact instructions for this one? Im very interested in this one to about quadruple day length so I can have longer times between introductions etc.

I put jusst the grfs in my data folder but I get no grf named open ttd or other likely name for me to add from my add grfs menu.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

At first, thanks for interest in my patch :-)

You unzip the file ( 3MB ). And you have:

Code: Select all

data\
 couple of .grf, .obs, .obg and .dat
lang\
 a lot of .lng files

openttd.exe
and some more ...
Now just put:

Code: Select all

sample.cat
trg*r.grf
to data folder and play :-)
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Minor update. Changed to correspond with Coding style, also created a FS task.
Ottomobeale
Engineer
Engineer
Posts: 43
Joined: 05 Aug 2009 14:21

Re: Another Daylength patch

Post by Ottomobeale »

Quick question. Is this patch entirely controlled by the cfg file or do the settings show up elsewhere? I can see the settings in the cfg file but see no options in, for example advanced settings menu.

I got the game to stop giving me errors but have not done any technical testing to see if it is actually doing something. I am currrently playing a full length normal time game to see any setting errors in other areas before (such as set town growth down and have very few double growth towns) I start a longer game using this patch to emphasize the steam era.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Ottomobeale wrote:Quick question. Is this patch entirely controlled by the cfg file or do the settings show up elsewhere? I can see the settings in the cfg file but see no options in, for example advanced settings menu.
Sure in Advanced menu. Go Advanced Settings -> Economy -> Day length ...
Ottomobeale wrote:I got the game to stop giving me errors but have not done any technical testing to see if it is actually doing something. I am currrently playing a full length normal time game to see any setting errors in other areas before (such as set town growth down and have very few double growth towns) I start a longer game using this patch to emphasize the steam era.
What errors? :shock:

Bumped to current version (both win32 binary, because i wanted to test) and patch file (just 2 savegame bumps).
Dante123
Chief Executive
Chief Executive
Posts: 672
Joined: 11 Aug 2009 16:10
Location: The Nederlands
Contact:

Re: Another Daylength patch

Post by Dante123 »

once i use the function so industries also get adjusted to day length (second last in the list of options if i say correct)

does this also mean that opening of new industries also will be only once in a lot of days ?
Ottomobeale
Engineer
Engineer
Posts: 43
Joined: 05 Aug 2009 14:21

Re: Another Daylength patch

Post by Ottomobeale »

OK definitely not there. I only have the "normal" options.

errors. Complained about certain files not being available in a certain spot. Fixed
complained about me not having certain grfs available. fixed.

I think I have isolated the problem. Probably obvious to you but Im lost.
question: is your patch dependent upon ...
openttdw.grf =
being under the newgrf section in the cfg file?

upon 1st login the game undid a bunch of your grfs which I recognize many simply as ones I dont use.
When I put that in the newgrf section just as above I get an invalid grf message. I do not see it as being a choice in the game side grf selector so I manually added that one to the cfg file in notepad.

sorry again. Probably obvious to you.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Another Daylength patch

Post by Yexo »

Ottomobeale wrote:I think I have isolated the problem. Probably obvious to you but Im lost.
question: is your patch dependent upon ...
openttdw.grf =
being under the newgrf section in the cfg file?

upon 1st login the game undid a bunch of your grfs which I recognize many simply as ones I dont use.
When I put that in the newgrf section just as above I get an invalid grf message. I do not see it as being a choice in the game side grf selector so I manually added that one to the cfg file in notepad.

sorry again. Probably obvious to you.
No. But OpenTTD needs that file to function. How did you compile the game? openttdw.grf is in every binary distribution, and also in svn under the bin/data/ directory.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

My patch is not dependent on nothing you said. You cannot download OpenTTD and add *.patch file to your files as a graphic file.

The patch is "in" executable file. So you must download binary, which is in first post of this topic. Or you must obtain source codes and the .patch file. Apply patch to source codes and compile the game.

Step by step is at few places easily found for those, who are searching for them. Look at stickies here at development forum or Opentd wiki.
Ottomobeale
Engineer
Engineer
Posts: 43
Joined: 05 Aug 2009 14:21

Re: Another Daylength patch

Post by Ottomobeale »

I need to recompile open TTD?

WAY above my skill set without step by steps. Guess I dont get to use this patch. Sorry for the bother. I thought it was a "simple" file subsitution of his exe and cfg (and a few others) in my comp.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

Re: Another Daylength patch

Post by pavel1269 »

Ottomobeale wrote:I need to recompile open TTD?
Maybye ...

Tell me why cant you download win32 binary and use it? I cant believe you dont have win32 with your knowledge. Try http://wiki.openttd.org/Installation
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests