Howto apply a patch/diff file
Moderator: OpenTTD Developers
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
Re: Howto apply a patch/diff file
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
True. I didn't mean to imply it wasn't common on both sides.
Re: Howto apply a patch/diff file
Somehow the first thing I thought when I saw those screenshots was that your windows UI must be in the wrong paletteMS2009 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?![]()
![]()
![]()

Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)

OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone

OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone







Re: Howto apply a patch/diff file
but then they are not very familiar with the term _development_ ... uh ... what forum are we in? hmmm....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.
Re: Howto apply a patch/diff file
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.
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
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
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
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Howto apply a patch/diff file
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.

Who is John Galt?
Re: Howto apply a patch/diff file
I admire you for trying it at a Windows machine. I would get crazy in minutes probably.
Re: Howto apply a patch/diff file
Even worse- Vista.
Going to move all the dev software over to the XP box now that we upgraded the memory and start over.

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.
Who is John Galt?
Re: Howto apply a patch/diff file
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.
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.
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
Re: Howto apply a patch/diff file
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
Here's the config.log
- Attachments
-
- config.txt
- (5.46 KiB) Downloaded 96 times
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
Re: Howto apply a patch/diff file
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.
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
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) 

-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
Re: Howto apply a patch/diff file
Because no one has come up with a simpler system that works cross platform and is as flexible as source code patches.snowie wrote:God, why it is so complicated :/
Re: Howto apply a patch/diff file
I compile without any patch added. All looks good, but there is no openttd.exe anywhere.
Re: Howto apply a patch/diff file
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.snowie wrote:I compile without any patch added. All looks good, but there is no openttd.exe anywhere.
Re: Howto apply a patch/diff file
How to check if compile is failed?
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Howto apply a patch/diff file
make should issue an error. or the linker
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Howto apply a patch/diff file
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
And then a lot of errors with fontcache.cpp
Who is online
Users browsing this forum: Baidu [Spider] and 11 guests