Page 25 of 40

Re: Howto apply a patch/diff file

Posted: 31 May 2009 18:12
by dihedral
did you read ANY of the information in this thread?

Re: Howto apply a patch/diff file

Posted: 23 Jun 2009 11:50
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!

Re: Howto apply a patch/diff file

Posted: 23 Jun 2009 12:01
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.

Re: Howto apply a patch/diff file

Posted: 23 Jun 2009 16:27
by corps
Thats right :)

thx A LOT :D

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 02:03
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:

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 02:31
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?

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 14:01
by technosnorunt58
What is the next step?

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 14:33
by Alberth
euhm, compile the source code to a binary program with a C++ compiler?

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 22:00
by technosnorunt58
How?

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 22:11
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.

Re: Howto apply a patch/diff file

Posted: 27 Jun 2009 22:19
by Alberth

Re: Howto apply a patch/diff file

Posted: 28 Jun 2009 09:08
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. ;)

Re: Howto apply a patch/diff file

Posted: 28 Jun 2009 09:23
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

Re: Howto apply a patch/diff file

Posted: 28 Jun 2009 14:56
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?

Re: Howto apply a patch/diff file

Posted: 28 Jun 2009 20:21
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.

Re: Howto apply a patch/diff file

Posted: 28 Jun 2009 22:38
by technosnorunt58
Ok I compiled it, now how do I play it? Or add another patch?

Re: Howto apply a patch/diff file

Posted: 01 Jul 2009 19:23
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.

Re: Howto apply a patch/diff file

Posted: 02 Jul 2009 14:22
by technosnorunt58
Can't find it.

Re: Howto apply a patch/diff file

Posted: 02 Jul 2009 15:05
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.

Re: Howto apply a patch/diff file

Posted: 02 Jul 2009 18:00
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! ;(