Howto apply a patch/diff file

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

dihedral
Tycoon
Tycoon
Posts: 1053
Joined: 14 Feb 2007 17:48

Re: Howto apply a patch/diff file

Post by dihedral »

did you read ANY of the information in this thread?
corps
Engineer
Engineer
Posts: 30
Joined: 27 Oct 2007 21:10

Re: Howto apply a patch/diff file

Post by corps »

Sup guys,

i have a little question:

Can i compile (with new patchs) a windows OTTD version in Linux and then run it on Windows?

I understand the doubts of the guys about compiling...

Its kinda hard to get even what compile is, imagine so how to do that...

Anyway, thanks A LOT guys for helping!
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

That's possible if you set up a crosscompiler on linux to compile or windows. For more information on how to do so, just search the web.
corps
Engineer
Engineer
Posts: 30
Joined: 27 Oct 2007 21:10

Re: Howto apply a patch/diff file

Post by corps »

Thats right :)

thx A LOT :D
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

Help.

I don't know a tling about programing, Ive downloaded Tortouse SVN. Done SVN Checkout to match the patch revision. Patched the SVN. Now I want to play my patch. So now what. :?:

I also use BuildOTTD But when that works I get a blank command prompt. GAA. :evil:
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

technosnorunt58 wrote:I don't know a tling about programing, Ive downloaded Tortouse SVN. Done SVN Checkout to match the patch revision. Patched the SVN.
...
So now what. :?:
What does the next step say to do? Have you done that?
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
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

What is the next step?
Last edited by technosnorunt58 on 27 Jun 2009 22:01, edited 1 time in total.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

euhm, compile the source code to a binary program with a C++ compiler?
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

How?
Melfice
Transport Coordinator
Transport Coordinator
Posts: 305
Joined: 20 Apr 2006 19:11
Location: Oldenzaal, the Netherlands, gateway to Germany

Re: Howto apply a patch/diff file

Post by Melfice »

Look for a manual on compiling a game somewhere.
Using the correct searchterms it's the first link in Google. Well, the second, really, but it's a subpage.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

Melfice
Transport Coordinator
Transport Coordinator
Posts: 305
Joined: 20 Apr 2006 19:11
Location: Oldenzaal, the Netherlands, gateway to Germany

Re: Howto apply a patch/diff file

Post by Melfice »

Well... really, Alberth.
It's mighty nice of you to help, but google is so easy, runt should have been able to find it him/herself. ;)
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

Melfice wrote:Well... really, Alberth.
It's mighty nice of you to help, but google is so easy, runt should have been able to find it him/herself. ;)
Yeah, I was in a VERY good mood. ;)

But fear not, I trust he/she will be back. If finding a web-page with a description of steps to compile OpenTTD yourself at our wiki was already too difficult, understanding how to compile, and/or how to run the result, and/or deciding what to do when the compile fails, will be way too complicated.
Chances are I am in a less good mood then :D
bobofrut
Engineer
Engineer
Posts: 1
Joined: 28 Jun 2009 14:50

Re: Howto apply a patch/diff file

Post by bobofrut »

Hi.

I can't add diff patch to TartoiseSVN. I download sources and I do like writing but it doesnt work.
I click apply patch and I select patch but i have only TartoiseMerge thats all and nothing happens. I hope someone understand me.
Know somebody what is wrong?
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Howto apply a patch/diff file

Post by Roujin »

I can only guess what the problem is. If you had shown a screenshot of your problem it would be easier to help you.

My guess: TurtoiseMerge opens and you don't know how to proceed.
Solution: When TurtoiseMerge opens, a list of files that changes are to be done in is displayed. Right click in that list and click on "Patch all". Then continue normally.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

Ok I compiled it, now how do I play it? Or add another patch?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

technosnorunt58 wrote:Ok I compiled it, now how do I play it?
Euhm, start the created openttd.exe file by double-clicking it (or whatever you do to start a program at a Windows system)?

It should be in the 'bin' directory. If you cannot find it, let the computer search for it in all folders where you put the source code.
technosnorunt58 wrote:Or add another patch?
You cannot 'add patches' in the general sense. Each patch is developed seperately of all other patches, and cannot be combined with another patch without risk that the program cannot compile, or does not run, or does not crash.
To 'add patches', you need to have an understanding of C++, the OpenTTD program, and patches.
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

Can't find it.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Howto apply a patch/diff file

Post by planetmaker »

technosnorunt58 wrote:Can't find it.
Me neither. But I'm talking about your verbose error description and a detailed step-by-step guide on how you got there.
User avatar
technosnorunt58
Engineer
Engineer
Posts: 79
Joined: 09 Nov 2008 00:59

Re: Howto apply a patch/diff file

Post by technosnorunt58 »

Ok.

I use SVN checkout. Apply the patch. Compile on C++ using VS_80 NOT 90 because it doesn't exsist. Copy the data folder to Relece/Debug. But I can't find OpenTTD.exe anywere in the folder! ;(
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 7 guests