Howto apply a patch/diff file
Moderator: OpenTTD Developers
Re: Howto apply a patch/diff file
What's a HD? What about the desktop?
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Re: Howto apply a patch/diff file

-"Harley Davidson?"
- Attachments
-
- HD.png (52.63 KiB) Viewed 2194 times
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Re: Howto apply a patch/diff file
thanks for the original reply.
And thanks to the rest of the people who helped me.
And thanks to the rest of the people who helped me.
Re: Howto apply a patch/diff file
I don't know if this is the correct place to be asking this, but have being trying to apply a patch, now as buildottd does not work anymore, but it does install mingw32, I have compliled with it, for a number of days, but when i try to patch I get this.
sh: /bin/patch: Permission denied
I'm using vista, and tryed running patch with admin access, any idea on how to fix this problem
Thanks
sh: /bin/patch: Permission denied
I'm using vista, and tryed running patch with admin access, any idea on how to fix this problem
Thanks
Re: Howto apply a patch/diff file
Code: Select all
$ ls -l /bin/patch*
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
I think i can handle the patching stuff now. Only are all of the patching files in red. I'm trying the map-1M-13664-fixed patch.
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
Why are their note of exclamations in my SVN map ?
Lang, genworld_gui, train_cmd, map and map_type have all a red note of exclamation, all the rest is green???
If i try update SVN, they stay in red.
Lang, genworld_gui, train_cmd, map and map_type have all a red note of exclamation, all the rest is green???
If i try update SVN, they stay in red.
Re: Howto apply a patch/diff file
No idea what you are using, but a wild guess:Hamilton2007 wrote:Why are their note of exclamations in my SVN map ?
Lang, genworld_gui, train_cmd, map and map_type have all a red note of exclamation, all the rest is green???
If i try update SVN, they stay in red.
You are trying to merge a recent trunk (in the order of revision 16xxx) with an old patch of revision 13xxx, and you have merge conflicts (what is the state of the 'red' files?) since a lot happens in 3000 changes.
To resolve the conflicts, you'll have to investigate, and decide how the change should be merged. Once that is done, denote to svn that you have resolved the conflict.
The olny other alternative is to revert the patch.
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
Ok i revert the SVN map now and they are all green now.
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
If i right click SVN map and choose applay patch, then choose my patch, then i get the merge window but some of the patch files are in red, what does this mean?
example i'm trying the map-1M-13664-fixed patch.
settings.cpp
english.txt
train_cmd.cpp
openttd.cpp are all red.
genworld_gui.cpp
saveload.cpp
map_type.h
map.cpp are all black
example i'm trying the map-1M-13664-fixed patch.
settings.cpp
english.txt
train_cmd.cpp
openttd.cpp are all red.
genworld_gui.cpp
saveload.cpp
map_type.h
map.cpp are all black
Re: Howto apply a patch/diff file
Repeating your question does not work.
Try reading the manual of your SVN program (there are many, and not every body uses the same one).
Try reading the manual of your SVN program (there are many, and not every body uses the same one).
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
I'm using TortoiseSVN and theire is no manuel in it.
Re: Howto apply a patch/diff file
Really?
I think, the red entries in the merge files list mean that the trunk version of that file has changed since the patch was made. It's not a problem unless it gives you errors about conflicts when you try to merge.
The red icons on files after patching mean that you have changes to those files compared to trunk. If you've just applied a patch, you want that. What you don't want is yellow "warning sign"-type triangles, which indicate a problem.
I think, the red entries in the merge files list mean that the trunk version of that file has changed since the patch was made. It's not a problem unless it gives you errors about conflicts when you try to merge.
The red icons on files after patching mean that you have changes to those files compared to trunk. If you've just applied a patch, you want that. What you don't want is yellow "warning sign"-type triangles, which indicate a problem.
Last edited by Thief^ on 30 Nov 2008 14:20, edited 1 time in total.
Melt with the Shadows,
Embrace your destiny...
Embrace your destiny...
Re: Howto apply a patch/diff file
The developers of TortoiseSVN[0] seem to disagree with you: [quote=TortoiseSVN]If you have TortoiseSVN installed, you can simply press the F1 key in any dialog to start up the help.[/quote]
[0] http://tortoisesvn.net/support <- also contains PDF versions of the manual (in several languages)
[0] http://tortoisesvn.net/support <- also contains PDF versions of the manual (in several languages)
Re: Howto apply a patch/diff file
Beat you to it Rubi!
Melt with the Shadows,
Embrace your destiny...
Embrace your destiny...
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
Yeah found it 
But it isn't really simple in my opinion

But it isn't really simple in my opinion
Re: Howto apply a patch/diff file
Indeed. Many people have problems with reading. But please don't foist those problems on us. Find your friendly local reading teacher, and ask him or her in person.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- Hamilton2007
- Transport Coordinator
- Posts: 289
- Joined: 16 Nov 2008 10:57
- Location: Belgium
Re: Howto apply a patch/diff file
I'm just asking right
I'm asking here because here are the pro's with experience on the program.
But i gave up, the translation from the program to dutch is really bad in my opinion.

I'm asking here because here are the pro's with experience on the program.
But i gave up, the translation from the program to dutch is really bad in my opinion.
Re: Howto apply a patch/diff file
"Professional" means "I get paid to do this".
I do not get paid to do this, ergo I am not a professional. As far as I know, everyone else on these forums is in the same boat. You are welcome to arrange a change in that status.
And the apo'strophe doe's not mean "Look out! Here come's an 'S'!"
I do not get paid to do this, ergo I am not a professional. As far as I know, everyone else on these forums is in the same boat. You are welcome to arrange a change in that status.
And the apo'strophe doe's not mean "Look out! Here come's an 'S'!"
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: Howto apply a patch/diff file
I get this error (using cygwin)
- Attachments
-
- screenshot.PNG (27.45 KiB) Viewed 1748 times
Who is online
Users browsing this forum: No registered users and 23 guests