Page 1 of 1

Where can i install patch?

Posted: 12 Feb 2010 21:15
by Keprta
I am not sure if is right place but whatever...

I am trying to install patch to OTTD but when i hit console with : patch -p0 < r14293-daypatch.diff

I get following errors...



|Index: src/aircraft_cmd.cpp
|===================================================================
|--- src/aircraft_cmd.cpp (revision 14293)
|+++ src/aircraft_cmd.cpp (working copy)
--------------------------
File to patch:


I am using Ubuntu 9.10 and i cant find any of these files in ottd directory.

Re: Where can i install patch?

Posted: 12 Feb 2010 22:08
by ChillCore
Hi and welcome Keprta,

I guess you are trying to patch the executable, that won't work.

You are supposed to checkout the source, patch that and recompile,
which will result in a new patched executable to be found inside the bin folder.

How and where to find the source and other things you need can be found in the link below.
http://wiki.openttd.org/Category:Compiling_OpenTTD

Please if you have more questions ask them here,
http://www.tt-forums.net/viewtopic.php?f=33&t=21678,
mentioning at what stage you got stuck.

ps:
Make sure you checkout the correct revision number before applying the patch,
unless you speak some c++ and know a bit about the source and changes made to it since the patch was created.