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

Post Reply
Spartan190
Engineer
Engineer
Posts: 24
Joined: 14 Oct 2009 08:47

Re: Another Daylength patch

Post by Spartan190 »

Gremnon wrote:Time varies with how fast you can download.
As to it not working, I've never had a problem on any Windows system yet, though I've not tried it on Windows 7, but I've heard rumors suggesting it works normally if you're using a beta version.
Installing and compiling with MSYS/MinGW is no problem, have fullversion of Win 7 64-Bit and everything worked fine.
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Another Daylength patch

Post by Lord Aro »

full version of win 7? already? at 7:30 in the morning of the release date? ?(

or was the release date different in america and thats where you are? ?(
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Spartan190
Engineer
Engineer
Posts: 24
Joined: 14 Oct 2009 08:47

Re: Another Daylength patch

Post by Spartan190 »

Lord Aro wrote:full version of win 7? already? at 7:30 in the morning of the release date? ?(

or was the release date different in america and thats where you are? ?(
No I am from Germany, but MSDNAA came out much earlier ;)
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 »

Same for me, MSDN AA had full release of Win 7 when I came first to school (21st september).

Update in first post. A monkey would do the update.
Spartan190
Engineer
Engineer
Posts: 24
Joined: 14 Oct 2009 08:47

Re: Another Daylength patch

Post by Spartan190 »

pavel1269 wrote:Same for me, MSDN AA had full release of Win 7 when I came first to school (21st september).

Update in first post. A monkey would do the update.

I have updated the patch, will try to get a .diff/patch file. I made it for trunk that came yesterday over the day (r17837). Everything works fine, some commands have changed, so I had to change them in the code, too. Copying it to my server that I can run the ded. Server on newer version.


Edit: Did see that a newer version has already been uploaded (r17838) one version newer than mine.
Spartan190
Engineer
Engineer
Posts: 24
Joined: 14 Oct 2009 08:47

Re: Another Daylength patch

Post by Spartan190 »

Gedemon wrote:please Pavel, can you check the cost of building railway tracks ?

looks like when you use the draging tool the cost is not the same per tile when making 1 tile or 2 tiles.

for example:

- with a balance factor of 1 building 1 tile of railway cost 180$ and 2 cost 360$ (and with the single section tool 1 tile cost 180$)

- with a balance factor of 2 building 1 tile of railway cost 210$ and 2 cost 840$ (and with the single section tool 1 tile cost 420$)

- with a balance factor of 5 building 1 tile of railway cost 300$ and 2 cost 3000$ (and with the single section tool 1 tile cost 1500$)
We did find out same problem like this. We have balance on 4 on pile with the single tool 270 two 2.160 if I selct normal drag and drop tool one part cost 1080 and two normal 2160.

Edit: Can someone tell me where I can find the function, that does change the cost value of the tiles?
Spartan190
Engineer
Engineer
Posts: 24
Joined: 14 Oct 2009 08:47

Re: Another Daylength patch

Post by Spartan190 »

I have found another bug:

If you build a rail with balance on 1, you get less money back than you spent for the rail, if you have balance on 2 you get same money back as you spent for it if you have the balance on 3 or higher you get more money back than you spent for the rail. So it is like a cheat you could build rails and then destroy them again and get more money back.

But this is only if you destroy the rails (with dynamite symbol) but not with the bulldozer.

Maybe there is a way to fix this also the bug with the single rail thing I posted.
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

I can not get AI to work. What can the problem be?
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Another Daylength patch

Post by petert »

What do you mean the AI doesn't work? Do you have any type of error message? Maybe its associated with the AI itself.
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

Yes. I get this 2 message.
Ficksvall Transport, 12-12-1939.png
(455.59 KiB) Downloaded 1 time
Ficksvall Transport, 17-12-1939.png
(425.46 KiB) Downloaded 1 time
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Another Daylength patch

Post by Rubidium »

Looks, based on the second image at least, very much like the packager of the binary has missed some important files.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Another Daylength patch

Post by petert »

Here, I will build one in 5 minutes, check if it still doesn't work.
daylength_r17838_win32.zip
Last edited by petert on 14 Nov 2009 15:22, edited 1 time in total.
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

petert> What do you mean?
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Another Daylength patch

Post by petert »

Check the post above you again, see if you have the same errors.
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

Thank you. I get it to work but:
> I get a message about too many vehicles in the game. Change the number of ships dont work if I change it in openttd.cfg
> In Pavels1239 edition the selection is "frossen". Ex. if I choose the tunnel, I can just click the number of tunnels without having to choose again.

Willy
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

It looks as though it is only disc I can not build more of (?)
willy-dk
Engineer
Engineer
Posts: 16
Joined: 10 Nov 2009 16:25
Location: Copenhagen, Denmark

Re: Another Daylength patch

Post by willy-dk »

I mean: It looks as though it is only ship I can not build more of (?)
Dante123
Chief Executive
Chief Executive
Posts: 672
Joined: 11 Aug 2009 16:10
Location: The Nederlands
Contact:

Re: Another Daylength patch

Post by Dante123 »

i quote out of the ECS questions / problems topic:
George wrote:
Dante123 wrote:well there do is 1 more thing with the ECS vectors, let me explain:
to be honest, i dont like playing Ottd without the ecs any more, so on every game i play i have them all turned on. (totally love them)
but here is the catch, i also think timeflow go's to fast in ottd, so i use the "another daylength patch" to slow the timeflow down a bit.
now i know to make the ecs vectors work i just let the first 1 or 2 months pass on normal game speed, so the industries like animal farms can start.
after the first 1 or 2 months i enable the daylength functions. (daylength factor 6, and i do not slow down industry changes with daylength factor, so these should be the default)
but now, after playing in huge maps, after about 7 to 8 gameplay years (around the 7 to 10 gameplay hours). a whole bunch of industries just shut down, all at the same time.
example of this is the tinning factory, textile mill, and so on. they drop from 16 factories around the map to 0 within 1 day.
now my question is, is there some way i could prevent this from happening ? i already tryed with the current parameters (like set it to 11) but they still close down all at the same time after X years.
i dont know how difficult it can be, but is it possible for you to implant some extra parameter for this to prevent this from happening ?
I can't do anything with day length patch now http://bugs.openttd.org/task/2363

At least one tinning factory should stay, provide a save game before closure to see it (but in game without day length patch of cause)

Currently I do not have a plan to change protection period. But if you have any idea about how large should it be and why - let me know.
now understanding a bit what the page is telling where he is referring to, i understand the daylength is set by "ticks".
now i do understand the ECS vectors to a check every x days, is it also possible to do something within the daylenth patch to fix this above problem ?
or is this already be set by the option "reduce industry changes by daylength factor" ? didnt this only affect the normal economical changes ? (this function doesn't seem to change much with the above problem)




**EDIT**
George wrote:Currently you have 8 or 9 cycles. With factor of 2, you do not simply get 8*2=16 and 9*2=18, but value 17 is also possible.
So yes, it is mathematical thing, but there is no good way for such calculation by GRF. The patch code should do the calculation instead.
one more quote from the ecs topic.

maybe there is some that can be done within the patch to support the ECS vectors ?
Last edited by Dante123 on 26 Nov 2009 16:39, edited 3 times in total.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Another Daylength patch

Post by petert »

While this topic is bumped, can I ask for a update to the patch?
SargeFIN
Engineer
Engineer
Posts: 6
Joined: 23 Nov 2008 18:54

Re: Another Daylength patch

Post by SargeFIN »

Does this day lenght patch (r17838) work with the version 0.7.3 and newest nightly pack (r18309) installed?

If so, how is it supposed to be installed? There is a zip file and a .patch file in the first post by Pavel.

As I try to install this the zip file creates a new folder under my OpenTTD folder. It's called "ottd day lenght r17838" and under it there are lot's of files and an exe file which starts the game. I copied the needed files in the data folder of this "ottd day lenght r17838" folder and when I try to start the game it gives me lot's of errors conserning graphic files. After error messages the game starts but there are no sounds and the language is in chech(?) and changeing it doesn't do the trick. The day lenght works as I start the game the time does not go by so fast as in a raw 0.7.3 version game with the newest nightly.

All the help is much appreciated.
Post Reply

Return to “OpenTTD Development”

Who is online

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