Where can i install patch?

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
Keprta
Engineer
Engineer
Posts: 2
Joined: 12 Feb 2010 21:08

Where can i install patch?

Post 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.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2858
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Where can i install patch?

Post 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.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 13 guests