Howto apply a patch/diff file
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
the problem is that when someone like me (no experience at all)
comes across 5-10 patches he likes, and decides to chose to try and use a "patched" version of OPENTTD instead of the plain basic stable .exe release, he is thrown in the deep
so users start browsing this topic, find about SVN, then on my own luck i found the SVN checkout (ive worked with SVN before but that was for a database/worldofwarcraft emulator thing) where i got a manual telling me what to do etc....
then users want to know about how to apply a patch diff, i found the "apply patch" option and clicked patch all (as described on page 1)
But then?
if you patch, you cannot use the "stable" folder+openttd.exe executable, as it loads the normal game and not your patched thing
so what is missing (in my opinion) is a user-friendly guide to "compiling?????" whatever that is, or a way to make the SVN-directory playable as a game rather then sit there and be a SVN-folder with up-to-date files....
so if anyone can help me out with links on how to change the "patched SVN thingy"? into a playable game (i heard something about compiling, but is that what i have to do? and if so what the hell does it mean, how do i do it etc) isnt described in this topic, while A LOT of users are willing to use patched versions, but simply unable to patch up....
im very used to games where a "patch" file is just downloaded, run and then you use the "normal" executable that has become a "patched" executable, but apparently Openttd is more complicated thus needs more explaination for players like me...
so what ill need (i think) is someone that can explain how i can make the SVN-downloaded Revision playable (including the 5 patches im trying to get applied....)
comes across 5-10 patches he likes, and decides to chose to try and use a "patched" version of OPENTTD instead of the plain basic stable .exe release, he is thrown in the deep
so users start browsing this topic, find about SVN, then on my own luck i found the SVN checkout (ive worked with SVN before but that was for a database/worldofwarcraft emulator thing) where i got a manual telling me what to do etc....
then users want to know about how to apply a patch diff, i found the "apply patch" option and clicked patch all (as described on page 1)
But then?
if you patch, you cannot use the "stable" folder+openttd.exe executable, as it loads the normal game and not your patched thing
so what is missing (in my opinion) is a user-friendly guide to "compiling?????" whatever that is, or a way to make the SVN-directory playable as a game rather then sit there and be a SVN-folder with up-to-date files....
so if anyone can help me out with links on how to change the "patched SVN thingy"? into a playable game (i heard something about compiling, but is that what i have to do? and if so what the hell does it mean, how do i do it etc) isnt described in this topic, while A LOT of users are willing to use patched versions, but simply unable to patch up....
im very used to games where a "patch" file is just downloaded, run and then you use the "normal" executable that has become a "patched" executable, but apparently Openttd is more complicated thus needs more explaination for players like me...
so what ill need (i think) is someone that can explain how i can make the SVN-downloaded Revision playable (including the 5 patches im trying to get applied....)
Re: Howto apply a patch/diff file
Have you read the "Development FAQ" on the wiki?
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
i tried but i had A LOT of references and i kinda lost track, thats why im posting here, i need an organized guide to get me from SVN-download to a playable game, as thats what im lacking, the Development FAQ offers A LOT of help for developpers that want to test there build, but not A LOT of help for players that wanna try a patch, or wanna use a patch that is not in stable release, who are usually less talented/feel less comfortable with all the terminology....Rubidium wrote:Have you read the "Development FAQ" on the wiki?
i think im a hero by "apply patch, patch all" and expected openttd to work with the patch from that moment, but i was wrong, and im trying to show this problem& trying to understand what im doing wrong
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Howto apply a patch/diff file
Those games where you click "patch" and have a patched game is where people provide a patch to the executabelZxBiohazardZx wrote:im very used to games where a "patch" file is just downloaded, run and then you use the "normal" executable that has become a "patched" executable, but apparently Openttd is more complicated thus needs more explaination for players like me...
so what ill need (i think) is someone that can explain how i can make the SVN-downloaded Revision playable (including the 5 patches im trying to get applied....)
In terms of OpenTTD a patch refers to a change of the source code - which then needs compilation in order to create an executable. Everything you need to do that is indeed described extensively on the wiki which you complain so lengthy about: http://wiki.openttd.org/Coding_Tools Not everything may be still 100% up to date, but heck, it's worth a try and it's a wiki. If it doesn't work, ask (see signature how to aks), if you then find out how it works - correct the wiki. Details on what to use and how to proceed depend - as usual - upon your system.
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
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
BuildOpenttd looked the easiest way so i picked that, followed instalation instructions but when i start BuildOTTD i get the following error:
(english translation)
Value cannot be "null"
Parametername: items
if i dont get THAT error then i get the following error:
External Server has returned with an error: (404) Server not Found
i checked:
1) .net framework installation
2) BuildOTTD SVN location: svn://svn.openttd.org/trunk
this is on Windows XP machine, and i have absolutely NO clue what im doing wrong or what i should specify for you guys to help me out:)
(english translation)
Value cannot be "null"
Parametername: items
if i dont get THAT error then i get the following error:
External Server has returned with an error: (404) Server not Found
i checked:
1) .net framework installation
2) BuildOTTD SVN location: svn://svn.openttd.org/trunk
this is on Windows XP machine, and i have absolutely NO clue what im doing wrong or what i should specify for you guys to help me out:)
Re: Howto apply a patch/diff file
I'll quote from the top few lines of the wiki page about BuildOTTD for youZxBiohazardZx wrote:BuildOpenttd looked the easiest way so i picked that, followed instalation instructions but when i start BuildOTTD i get the following error:
Wiki wrote:As of now, BuildOTTD does not work on any OS until someone fixes it
Re: Howto apply a patch/diff file
Try MinGW. I'm also a newbie and I can compile OpenTTD with it. Its wiki page is very good. And it works perfectly at the moment, as far as I know. The only problem I had the during my first attempts was that I couldn't download some needed things correctly. The first were some packagees of MinGW, those I could download a few days later when I tried again, don't know what was the problem, the other was wget throught MSYS, which I could download after turning off my firewall. Otherwise it's rather easy.
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
in mingw:
Step 3:
# Place wget-1.9.1-mingwPORT.tar.bz2 in a folder (e.g. /home).
# Start MSYS.
# Make sure you are in the same directory where you placed the file and Run:
tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
mkdir -p /usr/local/bin
cd wget-1.9.1/mingwPORT
cp wget.exe /usr/local/bin
mkdir /usr/src
./mingwPORT.sh
question
1) i placed wget-1.9.1-mingwPORT.tar.bz2 in the c:/home directory
2) i started MSYS
3) typed:
tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
ERROR:
Alex@ALEX ~
$ tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
tar (child): wget-1.9.1-mingwPORT.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
why is this not working and what am i doing wrong? im doing exactly what the wiki told me to do:(
Step 3:
# Place wget-1.9.1-mingwPORT.tar.bz2 in a folder (e.g. /home).
# Start MSYS.
# Make sure you are in the same directory where you placed the file and Run:
tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
mkdir -p /usr/local/bin
cd wget-1.9.1/mingwPORT
cp wget.exe /usr/local/bin
mkdir /usr/src
./mingwPORT.sh
question
1) i placed wget-1.9.1-mingwPORT.tar.bz2 in the c:/home directory
2) i started MSYS
3) typed:
tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
ERROR:
Alex@ALEX ~
$ tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
tar (child): wget-1.9.1-mingwPORT.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
why is this not working and what am i doing wrong? im doing exactly what the wiki told me to do:(
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Howto apply a patch/diff file
I highlighted the important part for you.ZxBiohazardZx wrote: tar (child): wget-1.9.1-mingwPORT.tar.bz2: Cannot open: No such file or directory
why is this not working and what am i doing wrong? im doing exactly what the wiki told me to do:(
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
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
yes but how do i make it a find the darn thing, i put it in the C:/home dir as wiki said, and then copied the text literaly, how do i direct mingw to the file location/file-folder?
as said in step
Make sure you are in the same directory where you placed the file and Run:
how do i define a directory?, i placed the file in C:/home
MinGW instalation is in c:/MinGW, Msys is in the C:/mys dir
how can i "make sure" im in the right directory in the interface window? as said im a complete n00b and i now understand why A LOT of players prefer a stable realease (its hard to do this when you dont understand/know what you got to do)
as said in step
Make sure you are in the same directory where you placed the file and Run:
how do i define a directory?, i placed the file in C:/home
MinGW instalation is in c:/MinGW, Msys is in the C:/mys dir
how can i "make sure" im in the right directory in the interface window? as said im a complete n00b and i now understand why A LOT of players prefer a stable realease (its hard to do this when you dont understand/know what you got to do)
Re: Howto apply a patch/diff file
/home is not C:/home. /home is where /home is within msys. Where that exactly is depends highly on the settings YOU have chosen when installing MinGW/MSYS. Though it's probably somewhere in the msys installation directory.ZxBiohazardZx wrote:# Place wget-1.9.1-mingwPORT.tar.bz2 in a folder (e.g. /home).
[.. snip ..]
1) i placed wget-1.9.1-mingwPORT.tar.bz2 in the c:/home directory
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
Rubidium wrote:/home is not C:/home. /home is where /home is within msys. Where that exactly is depends highly on the settings YOU have chosen when installing MinGW/MSYS. Though it's probably somewhere in the msys installation directory.ZxBiohazardZx wrote:# Place wget-1.9.1-mingwPORT.tar.bz2 in a folder (e.g. /home).
[.. snip ..]
1) i placed wget-1.9.1-mingwPORT.tar.bz2 in the c:/home directory
i tried moving the tar to that dir (c:/msys) but didnt work out, is there a way i can see where the /home is located at/pointing towards?
can i get help @ IRC? ill join that now:)
Re: Howto apply a patch/diff file
3) Should read something like this.ZXbiohazardZX wrote: # Make sure you are in the same directory where you placed the file and Run:
...
3) typed:
tar -xvjf wget-1.9.1-mingwPORT.tar.bz2
cd c:/home
Where home is the folder where you have put wget-1.9.1-mingwPORT.tar.bz2
(but i could be wrong on this.it has been a while.)
Then do: tar ...
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
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.
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
im on IRC now, ill hope i can get the SVN working atm, anyway ill change wiki if i find anything thats hard for " testers with no experience" like myself
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
well it finally started compiling but the wiki can use some small changes to make it more attactive for "testers" to try and get a patch-openttd to try out features not in stable yet or soon...
thx for those on IRC that where willing to help me out:)
thx for those on IRC that where willing to help me out:)
Re: Howto apply a patch/diff file
testers who need _that_ much support in patching and compiling, these people are not as useful for that kind of testing - what they can test are the nightlies. + the more detailed you make the wiki for 'users', the more annoying it will be for all others
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Howto apply a patch/diff file
quick talk in the IRC prove that the wiki was out-dated and has incorrect information, after those small things were corected (THX YEXO) i was able to do it quite well:)dihedral wrote:testers who need _that_ much support in patching and compiling, these people are not as useful for that kind of testing - what they can test are the nightlies. + the more detailed you make the wiki for 'users', the more annoying it will be for all others
it lacked that MINGW uses unix-command-structure and it had 2-3 code errors (mkdir for wget was wrong and pnglib was outdated, now that its fixxed its quite easy to patch&compile (its setting up the environment that was hardest)
anyway thx again Yexo for helping me with it, im now using some great patches:)
Re: Howto apply a patch/diff file
I should update the libs, then. Anyways, thanks for the Wiki update!
Anways, I have problems with freetype, ./configure shows that there's no freetype lib. I tried to install one, but I guess it was wrong one and I have no idea what file should I get. Some information about it would be greatly appreciated (maybe alongside with the update to wiki)
edit: forgot to mention that I'm using mingw/msys
Thanks!
Anways, I have problems with freetype, ./configure shows that there's no freetype lib. I tried to install one, but I guess it was wrong one and I have no idea what file should I get. Some information about it would be greatly appreciated (maybe alongside with the update to wiki)

edit: forgot to mention that I'm using mingw/msys
Thanks!
-
- Engineer
- Posts: 1
- Joined: 31 May 2009 18:01
Re: Howto apply a patch/diff file
Hello,
I wanted to add the aircraft queuing patch but I've run into a bit of difficulty.
I installed TortoiseSVN onto my Vista system. I did the SVN:// thing but there didn't seem to be much point in that. But when right mouse clicking the patch file, navigating to the C:\Program Files\OpenTTD folder and then applying the patch to the black file shown in the attachement, all I get is a non-descript error message. I tested the patch but the aircraft still don't queue in FIFO sequence so I'm assuming the patching failed.
Any help would be appreciated !
I wanted to add the aircraft queuing patch but I've run into a bit of difficulty.
I installed TortoiseSVN onto my Vista system. I did the SVN:// thing but there didn't seem to be much point in that. But when right mouse clicking the patch file, navigating to the C:\Program Files\OpenTTD folder and then applying the patch to the black file shown in the attachement, all I get is a non-descript error message. I tested the patch but the aircraft still don't queue in FIFO sequence so I'm assuming the patching failed.
Any help would be appreciated !
- Attachments
-
- Tort.jpg (105.93 KiB) Viewed 1267 times
Who is online
Users browsing this forum: No registered users and 2 guests