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

User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Yes it is, but no such folder.

I did the search and my pc couldn't find a headers folder...
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Howto apply a patch/diff file

Post by Roujin »

The folder is called "Include". It's being called "Headers folder" in the wiki because it has header files in it (*.h).
* @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
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Owwwwwwww, ok i did that.

where do i find the obj/win32/debug folder ?

In my SVN map is a obj/win32 folder but no debug in it.
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

stevenh wrote:orcaz, roll back bash to 3.1.6.. you can do this by running setup again and clicking "skip" until it says the version number.
I can't.
it only have 3.3.3.
Attachments
screenshot.PNG
screenshot.PNG (30.45 KiB) Viewed 2383 times
User avatar
Thief^
Route Supervisor
Route Supervisor
Posts: 469
Joined: 10 Oct 2004 00:11

Re: Howto apply a patch/diff file

Post by Thief^ »

Hamilton2007 wrote:where do i find the obj/win32/debug folder ?
In my SVN map is a obj/win32 folder but no debug in it.
It'll be created when you build the game, or you can create it yourself.
It's also worth noting that the "release" version will go in a "release" folder.

Personally I prefer copying the built .exe into a folder containing my openttd data folder and configs etc, instead of copying the data and configs into the compiler's output folder. But that might just be me.
Melt with the Shadows,
Embrace your destiny...
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

This is what i get when i run build solution, he's missing a file on the end:
Attachments
BS.PNG
BS.PNG (18.22 KiB) Viewed 1270 times
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Now i'm tryin with the Mingw to compile, everything went ok untill i needed to compile the Zlib in order like mentione on the Wiki
Attachments
Mwingerror.PNG
(88.34 KiB) Downloaded 40 times
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

You failed at the precondition of properly installing wget, which caused a failure to compile and install zlib, which eventually failed you to be able to copy the installed file.

If you see errors, the FIRST error is the important one, not the last one.

And for MSVC you failed to either install the proper DirectX or you failed to select the correct path from where to include the DirectX library in MSVC.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Howto apply a patch/diff file

Post by Hamilton2007 »

Pfff

(thinking about giving up on the patching) :?
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

yeah me too.

thinking about having someone who can compile to compile it for me. :(
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: Howto apply a patch/diff file

Post by Gremnon »

You know, I'm starting to wonder if I shouldn't just offer to compile patched builds for people... admittantly, only windows builds at the moment, since my linux system died earlier...
Which patch are you trying to apply orcaz?
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

I want to compile several patches.

Code: Select all

advanced-tree-cutting-4c9d49e5589a.patch
airport-close-v7-r14648.patch
airport-upgrade-v6-r13374.patch
cd-reduce-passengers.patch
distant_join_stations_rev9840.diff
improved-breakdowns-v2.4-r14563.patch
improved-timetable-management-v230-cargodest-14278f48a952.patch
language-r14563.patch
newgrf_gui_r11499.diff
r14293-daypatch.diff
routemarker-r14545.patch
saferLevelCrossing_r14264.diff
Of course I don't know if it works or not because I can't compile even sources from trunk without patches.
User avatar
stevenh
TTDPatch Developer
TTDPatch Developer
Posts: 759
Joined: 24 Jul 2005 05:07
Location: Canberra, Australia
Contact:

Re: Howto apply a patch/diff file

Post by stevenh »

orcaz wrote:
stevenh wrote:orcaz, roll back bash to 3.1.6.. you can do this by running setup again and clicking "skip" until it says the version number.
I can't.
it only have 3.3.3. OF GCC!
bash! bash! bash!
orcaz
Engineer
Engineer
Posts: 97
Joined: 13 May 2006 19:45
Location: Kobe, japan

Re: Howto apply a patch/diff file

Post by orcaz »

I did that...same result.

But how about the errors I get when I use MS Visual C++?
Attachments
screenshot.PNG
screenshot.PNG (22.97 KiB) Viewed 2326 times
Sarvesh50
Engineer
Engineer
Posts: 63
Joined: 31 Mar 2008 16:29

Re: Howto apply a patch/diff file

Post by Sarvesh50 »

Hi i cant patch these airport replace thing wich program should i use you this thread isnt really up to date anymore i am using win xp
Image
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Howto apply a patch/diff file

Post by Conditional Zenith »

Use some punctuation please. And be more specific. And spell properly. And in general type so that we can understand you. Once we can understand you, we may be able to help. Also, please say what you tried that didn't work, rather than ask us to be your personal copy/paste service.
Last edited by Conditional Zenith on 20 Jan 2009 15:00, edited 1 time in total.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Howto apply a patch/diff file

Post by Yexo »

And this thread might be old, but it's still up-to-date.
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 »

Sarvesh50 wrote:Hi i cant patch these airport replace thing wich program should i use you this thread isnt really up to date anymore i am using win xp
Besides what Conditional Zenith said: All advice you need is in this thread. It's not like devellopment programmes change every week. And even a newer version of whatever is more likely than not to be installed in a very similar way as the precedessor.
User avatar
snowie
Engineer
Engineer
Posts: 14
Joined: 06 Feb 2009 18:09
Location: Kraków, Poland
Contact:

Re: Howto apply a patch/diff file

Post by snowie »

Hi, when i'm trying to coplile my trunk, cygwin answers "no target". What should I do?
Attachments
cygwin-make.jpg
(127.36 KiB) Downloaded 27 times
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Howto apply a patch/diff file

Post by Conditional Zenith »

Firstly, you should copy and paste errors, not screenshot them.

Secondly, this is the wrong place to post build errors, this is a thread about applying patches, not building OTTD.

There was an error running the configure script, so the Makefile didn't get generated. Which version of the trunk have you got, and how did you get it?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 16 guests