Page 20 of 40

Re: Howto apply a patch/diff file

Posted: 14 Feb 2009 05:41
by Conditional Zenith
The term is common place for both binary and source code patches. Of course most non-programmers who aren't experienced with open source don't know about source code patches, and it needs to be made clear that these are source code patches and not binary patches.

Re: Howto apply a patch/diff file

Posted: 14 Feb 2009 07:37
by flowover
True. I didn't mean to imply it wasn't common on both sides.

Re: Howto apply a patch/diff file

Posted: 14 Feb 2009 10:17
by XeryusTC
MS2009 wrote:HELP!!!

Followed the instructions on page 1, but I must be doing something wrong???

Whenever I try to install the patch it does not work, as shown below.

Which folder do you install the patch into as I am getting very confused. And sorry for being thick but when it says source codes, which files are these? :oops: ?( :?: :bow:
Somehow the first thing I thought when I saw those screenshots was that your windows UI must be in the wrong palette :o

Re: Howto apply a patch/diff file

Posted: 14 Feb 2009 15:55
by dihedral
flowover wrote:Most people come here with the inclination that a patch is the same as patching any other commercial game they've bought. I don't blame them. The term is common place. I think a sticky should be made explaining this in big bold letters.
but then they are not very familiar with the term _development_ ... uh ... what forum are we in? hmmm....

Re: Howto apply a patch/diff file

Posted: 21 Feb 2009 04:46
by Zeyes
And another newbie with a compiling problem rather than a patching problem per se - I originally tried to integrate cargodest (no problems with that in Turtoise, for what it's worth), and when that didn't go through I tried a clean trunk compile for comparison to see if that works, which didn't either. So, apologies for bringing it up in this thread, but it's a re-run of sorts: Anyone have an idea how to fix the "neverending dependency check" problem in Cygwin, previously mentioned byMJS (almost two years ago) and by stevenh (a few months back)? I eventually halted the whole thing when it was still doing it after a couple of hours without any apparent progress, under the assumption that compiling OpenTTD can't possibly take this long. (Or does it? Sorry, absolutely no experience with compilers here, so I'm lacking any frame of reference for these things.)

Anyway, there wasn't really any resolution in those cases, other than MJS "fixing" it by reinstalling Cygwin eventually, but unfortunately that's something I already tried a couple of times even before finding those posts... Thanks for any and all assistance!

Edit: D'oh, if I'm asking for a frame of reference on the time issue I should probably mention my system specs: 1.5 GHz notebook with 512 MB RAM and Win XP. Not terribly highpowered, I suppose.

Re: Howto apply a patch/diff file

Posted: 21 Feb 2009 08:11
by ChillCore
I had the same thing on my pII win98 machine.
I solved it by getting a p4 xp.
Installed MinGW-MSYS... problem solved.

As for time it takes...

First(clean) compile:
Something like five to ten minutes. Depends what i am doing in the meantime.

Patched compile(after first compile):
Anywhere from thirty seconds to the same time as a first compile.Depends on how many files were changed

Re: Howto apply a patch/diff file

Posted: 07 Mar 2009 15:45
by ostlandr
I really admire anybody with the technical ability to find and successfully install all the needed software, apply a patch to the OTTD source code and successfully compile it. I worked on it this morning, as I really want the cutting-edge version of Cargodest. Will take another run at tonight once I get rid of my usual "code migraine". :? I think I have the same odds of successfully generating a win32 binary as hitting the lottery.

Re: Howto apply a patch/diff file

Posted: 07 Mar 2009 16:11
by Alberth
I admire you for trying it at a Windows machine. I would get crazy in minutes probably.

Re: Howto apply a patch/diff file

Posted: 07 Mar 2009 18:00
by ostlandr
Even worse- Vista. :evil:

Going to move all the dev software over to the XP box now that we upgraded the memory and start over.
Alberth wrote:I admire you for trying it at a Windows machine. I would get crazy in minutes probably.

Re: Howto apply a patch/diff file

Posted: 11 Mar 2009 09:21
by snowie
Now I can compile trunk (thank you!!), but I still don't know how to apply a patch.
I add it in Tortoise. Some patches got errors, some not. Then i compile it, and what next?? In folder with the trunk is no openttd.exe file, so I copy everything to (copy of) game folder, but when I run the game there is everything like it was before.

Re: Howto apply a patch/diff file

Posted: 11 Mar 2009 12:05
by Conditional Zenith
Well did you see if the patch applied cleanly, and then if it compiled successfully? If it compiled successfully, you will have an openttd.exe in the bin directory of the source tree. Then you just need to copy this binary (and maybe lang files) across.

Re: Howto apply a patch/diff file

Posted: 11 Mar 2009 13:56
by snowie
Here's the config.log

Re: Howto apply a patch/diff file

Posted: 11 Mar 2009 22:47
by Conditional Zenith
That isn't what I asked for, and it doesn't help at all.

It sounds like you are trying to apply more than one patch. Make sure you can successfully apply a single patch before you try that. If you apply a patch and you get an error, you need to either unapply the patch, or to fix the conflicts.

Re: Howto apply a patch/diff file

Posted: 12 Mar 2009 13:07
by snowie
I want some patch which allows to control vehicle departure times, and one of them doesn't make errors. So i'm trying to add that one. God, why it is so complicated :/ But I must do it, i'm determined, because it will be a lot of fun for me. I've already projected timetables for 59 trains in my network (without 117 regional trains and 28 city trains yet) :)

Re: Howto apply a patch/diff file

Posted: 12 Mar 2009 13:16
by Conditional Zenith
snowie wrote:God, why it is so complicated :/
Because no one has come up with a simpler system that works cross platform and is as flexible as source code patches.

Re: Howto apply a patch/diff file

Posted: 12 Mar 2009 19:49
by snowie
I compile without any patch added. All looks good, but there is no openttd.exe anywhere.

Re: Howto apply a patch/diff file

Posted: 12 Mar 2009 19:55
by Yexo
snowie wrote:I compile without any patch added. All looks good, but there is no openttd.exe anywhere.
Then either the compile failed or you didn't look properly. Most likely place is in the bin/ directory. That depends however on the compiler you're using.

Re: Howto apply a patch/diff file

Posted: 13 Mar 2009 18:13
by snowie
How to check if compile is failed?

Re: Howto apply a patch/diff file

Posted: 13 Mar 2009 20:17
by planetmaker
make should issue an error. or the linker

Re: Howto apply a patch/diff file

Posted: 17 Mar 2009 11:44
by snowie
There's an error: .../svn.openttd.org/src/fontcache.cpp:17:22 ft2build.h: No such file or directory
And then a lot of errors with fontcache.cpp