Page 35 of 40

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 17:34
by planetmaker
Loiner wrote:So if I used this method:

http://wiki.openttd.org/Compiler_sur_MinGW/Fr

Would I have to do everything mentioned or just the part under 'Compiling OTTD'?

Also, is there something I should put where it says 'cd ~/<path_to_source>'?
If you've never done one of the preceeding steps, you'll have to complete each step, i.e. install a complete development environment and all the dependencies which OpenTTD needs installed in order to compile successfully. Guess why that page is named as it is ;-)

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 19:08
by Loiner
OK, I've compiled everything except Libfreetype which couldn't be found - so would I still be able to compile OpenTTD without it?

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 20:24
by FooBar
You should be able to compile OpenTTD without that, but then you cannot use a custom font setting in openttd.cfg.

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 20:27
by Loiner
OK, no problem. :)

Next step however - How do I go about this?

Code: Select all

cd ~/<path_to_source>
./configure
make
Like I say this is all new to me but I assume I'll have to enter something where it says 'cd ~/<path_to_source>'?

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 20:44
by Lord Aro
Loiner wrote:OK, I've compiled everything except Libfreetype which couldn't be found - so would I still be able to compile OpenTTD without it?
"which can't be found"
?
works for me

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 20:53
by FooBar
First make sure you actually have the source. It's easiest if you place it in (a subdirectory of ) C:\MinGW\msys\1.0\home\<user_name>
Then replace <path_to_source> with the actual path to the source, counting from C:\MinGW\msys\1.0\home\<user_name>. Say that the source is in C:\MinGW\msys\1.0\home\<user_name>\openttd, the command becomes:

Code: Select all

cd ~/openttd

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 21:23
by Loiner
FooBar wrote:First make sure you actually have the source. It's easiest if you place it in (a subdirectory of ) C:\MinGW\msys\1.0\home\<user_name>
Then replace <path_to_source> with the actual path to the source, counting from C:\MinGW\msys\1.0\home\<user_name>. Say that the source is in C:\MinGW\msys\1.0\home\<user_name>\openttd, the command becomes:

Code: Select all

cd ~/openttd
OK, cheers!

But the next problem is, it tells me to enter this:

Code: Select all

./configure
And when I do, it says 'No such file or directory'.

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 22:24
by Eddi
what does "ls -l" say? (those are lower case letters L)

Re: Howto apply a patch/diff file

Posted: 11 Jul 2011 23:21
by Loiner
It says:

Code: Select all

total 61
-rw-r-r--r-- 1 Home Administrators 62150 Jul  8 23:38 openttd-is2-r20009-15820.svn.diff
Does this mean anything significant?

Re: Howto apply a patch/diff file

Posted: 12 Jul 2011 03:03
by planetmaker
Loiner wrote:It says:

Code: Select all

total 61
-rw-r-r--r-- 1 Home Administrators 62150 Jul  8 23:38 openttd-is2-r20009-15820.svn.diff
Does this mean anything significant?
Obviously you then have only the diff in that directory and not OpenTTD's source.

Re: Howto apply a patch/diff file

Posted: 12 Jul 2011 06:50
by Alberth
You have to do the steps under 'getting the source code' to get all source files in that directory.
A .diff or .patch file is just a set of instructions of how to modify the source code to add the functionality of the patch.
In your case, it looks like you want to get revision 20009 of the source code as the patch has been written against that version.

(svn checkout -r20009 svn://svn.openttd.org/trunk)

How to apply a patch ( idiots guide )

Posted: 25 Jul 2011 20:06
by REDBOOK7
Hi there ,

After several unsuccessfull attempts to apply a patch , I have failed . Is there anywhere you have an ( idiots guide ) for doing this . I am trying to apply infrstructure sharing to the latest working version of open ttd . Could anyone explain this for me line by line , For example , i dont know what to open , where or how and would greatly apreciate a complete , simple set of instructions . Looking at ( how to apply a patch diff ) is a complete mystery to me as it does not tell what to open and where .

Thanks .

Re: Howto apply a patch/diff file

Posted: 25 Jul 2011 20:12
by planetmaker
Did you already compile an unpatched OpenTTD version so far? If the answer is 'no', please go for that first.

Re: Howto apply a patch/diff file

Posted: 25 Jul 2011 21:03
by REDBOOK7
Thanks for the reply.

To be brutaly honest , i am hopeless at compling anything except my sandwiches in the moprning before i trudge out to work . So heres my request . Since i will probably never , ever be able to do this , would it be possible for you to just comple it for me . What i want to do is be able to play the latest working version and have infrastructure sharing enabled . Would be forever grateful if you could as i would love to have all the latest featueres and be able to play with sharing as it forms the core part of how i play the game . If you can my e-mail addres is sphelanjml@eircom.net . If you cant or wont then you cant or wont :(

Re: Howto apply a patch/diff file

Posted: 25 Jul 2011 21:18
by FooBar
I woudn't disclose my e-mail address like that... Unless you're interested in a boatload of spam.

Maybe you should take a look at "Chill's Patch Pack". I believe that includes infrastructure sharing (and a lot more), with precompiled Windows binaries available in the thread.

The "idiots guide" on compiling that you are looking for is this: http://wiki.openttd.org/Compiling_on_MinGW

Re: Howto apply a patch/diff file

Posted: 27 Jul 2011 21:28
by REDBOOK7
Well , thnks for any help but after a frustrating night to be honest its all far too technical for me and i dont have a hope of compiling anything ,myself . So as a last desperate question . Is it possible to use the console window to apply an infrastructure sharing patch file . If not then i will have to give up i guess . :cry:

Re: Howto apply a patch/diff file

Posted: 27 Jul 2011 21:55
by Level Crossing
REDBOOK7 wrote:Well , thnks for any help but after a frustrating night to be honest its all far too technical for me and i dont have a hope of compiling anything ,myself . So as a last desperate question . Is it possible to use the console window to apply an infrastructure sharing patch file . If not then i will have to give up i guess . :cry:
No, it is not.

I would seriously suggest you try Chill's Patchpack. Clicky the Linky :D

Re: Howto apply a patch/diff file

Posted: 15 Aug 2011 19:09
by Loiner
Would I need to download all those patches that Chilli has put up?

I'm also a very un-technical guy. I've done everything the Wiki says, so what would I need to do from there?

Really want to use the infrastructure sharing thing, I have great plans to be used with it. :cry:

Re: Howto apply a patch/diff file

Posted: 15 Aug 2011 19:53
by Level Crossing
Loiner wrote:Would I need to download all those patches that Chilli has put up?

I'm also a very un-technical guy. I've done everything the Wiki says, so what would I need to do from there?

Really want to use the infrastructure sharing thing, I have great plans to be used with it. :cry:
No, go to pg. 85 and look for the post with the word binary. It will have relevant instructions.

Re: Howto apply a patch/diff file

Posted: 15 Aug 2011 20:19
by Loiner
Level Crossing wrote:
Loiner wrote:Would I need to download all those patches that Chilli has put up?

I'm also a very un-technical guy. I've done everything the Wiki says, so what would I need to do from there?

Really want to use the infrastructure sharing thing, I have great plans to be used with it. :cry:
No, go to pg. 85 and look for the post with the word binary. It will have relevant instructions.
I really am coming across as naive and feel like I've skipped something, but the files related to binaries on that page just seem to link to the download of OTTD.