Page 13 of 15

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 16:37
by Gremnon
Here, a windows binary with daylength, r14661.
I can get a linux one if anyone needs that one too.

Also attached, .diff file against r14661.... not tested though, so no guarantees it'll patch alright.

Edit: files removed due to mistake on my part, see updated files a few posts on

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 17:02
by Hamilton2007
Thanks, but when i open the advanced settings this error comes up:

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 17:06
by Gremnon
Odd. Could just be the way I patched, it, I'll re-patch and make sure of it...

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 17:22
by Gremnon
New version of windows binary and diff, both untested.
It *should* work this time, but can't say for sure on the diff.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 17:30
by Hamilton2007
At the moment it works fine, thank you very much!!! Will keep you update if any failure comes up.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 20:37
by Hamilton2007
When i try to save it give's the next error:

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 20:40
by Gremnon
Now that one's strange, since I didn't need to change anything in saveload.cpp, and I don't have any trouble.
I'll experiment a bit more, but I can't guarantee a fix for this one, because I'm not entirely certain what's gone wrong this time.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 20:56
by Hamilton2007
If i choose ignore in the error he saves it, but loading again is unpossible, savegame broken unknown chunk type is the message then.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 08 Dec 2008 21:17
by SmatZ
Attached patch includes the fix for your asserts, but it is based on Gremnon's patch, so it may be broken.
(of course it is broken, the patch misses many places that should be tweaked... and it doesn't fix other problems I mentioned in http://www.tt-forums.net/viewtopic.php?p=748441#p748441 - so expect strange behaviour regarding for example vehicle running costs, AI starting at "random" moments, ... )

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 09 Dec 2008 14:40
by Hamilton2007
Ok, i right click SVN map on computer and choose aplly patch, then in the merge window choose patch all and then you see this pic, all file nicelay in black (first time), but then what ???

Sorry, but understand really nothing about this patching...

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 09 Dec 2008 14:46
by Gremnon
Then you need to compile it... the OpenTTD wiki can tell you everything you need to know about that for any system...

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 09 Dec 2008 15:30
by Hamilton2007
Ok i'm gonna try with cygwin, but what do i need to compile? Do i need to save the file in tortoisemerge and the compile, or do i need to compile the files in my SVN map that have a red icon in stead of a green one ????

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 09 Dec 2008 16:10
by Hamilton2007
Ok im halfway point number 9 of the wiki page of cygwin. i made the dir and opened it, but then the commands won't work ???

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 09 Dec 2008 16:18
by Gremnon
hm... I think you need to get the subversion files, but I'm not sure, I don't use cygwin, I use the msys that comes with BOTTD... updated with a few additions of my own, because I compile other programs with it sometimes too.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 10 Dec 2008 12:43
by Hamilton2007
Still not got patching working, not with cygwin and not with Visual CC+ ...

Somebody with a recent working bin with this patch included ?

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 10 Dec 2008 13:39
by Gremnon
I'll compile one against the current nightly in a moment, check back in 10 and I should have posted it here...

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 10 Dec 2008 13:58
by Gremnon
Windows binary against r14665
Untested, but patched and compiled with no troubles with SmatZ's (hopefully) fixed version of the .diff.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 10 Dec 2008 14:08
by Hamilton2007
It works! It works! It works! Thank you :bow: :bow: :bow:


(I mean, no error when opening advances settings, no error when saving or loading, like the previous try's)(keeping my fingers crossed) :)

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 20 Dec 2008 08:08
by Hamilton2007
I got the following errors when playing. Most of the time it happens when i zoom out maximum and look around then. I save my game every month now, so i can play the savegame, the errors come from time to time, not everytime on the same point in the savegame.

Re: Daylength Patch [12/09/2008] Compatibility: r14293

Posted: 20 Dec 2008 14:12
by Gremnon
I solved that one - at least for the moment - by increasing the sprite cache in the openttd.cfg
I'm not entirely certain that's the best fix though, but I'll look into it when I have some time