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
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

I have 2 .patch files: "chunnelv10_r16237" and "signaltunnel_V19_r16312" . i want to play with this patches but i did't find the right informations on how to apply this patches. I use Tortoise SVN. i ve create a new folder, i ve made the svncheckout, i applied the patches, and now? what's next? there is no .exe. there is full of files and folder and i don t know what to do with... please help me!
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
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 »

You compile it.

See the wiki for details
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

planetmaker wrote:You compile it.

See the wiki for details
can you give me an URL please.
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

i'll give it a look... hope to understand something...
Thanks
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

I don t have linux, or c++ or another compiling software. cuz i don t know how to do this. for thouse like me that don't know nothing more than playing the game. is there an easyer way to apply patches? why there is no .zip containing the openttd folder with everything already modified? OpenTTD is played even by idiot people like me. how can we adjust this?
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

Sensation Lover wrote:I don t have linux, or c++ or another compiling software. cuz i don t know how to do this. for thouse like me that don't know nothing more than playing the game. is there an easyer way to apply patches? why there is no .zip containing the openttd folder with everything already modified? OpenTTD is played even by idiot people like me. how can we adjust this?
The easiest way to apply ONE (and only ONE) patch *was* using BuildOTTD. Due to it using some unofficial method to figure out what the latest nightly was it does not work anymore. Even then, it only worked when you wanted to make 32 bits Windows binaries and another lists of requirements. Feel free to fix it, however... given the countless other people that want to use it but have not fixed it it is likely that you won't fix it either. It should be relatively trivial IF you've got the right tools and skills (I don't have them).

The reason why there is no '.zip' containing everything you need is the fact that such a '.zip' would need to be made. You ASSUME that the '.zip' will then contain something that YOUR OS and computer can work with. I'll gladly make you a '.zip' containing everything you need that just DOES NOT work on YOUR OS and/or computer.

You also ASSUME that ANYONE can make a '.zip' that works FOR YOU. The thing is, most people that are writing patches and such CANNOT make a '.zip' that works FOR YOU. YOU should be glad that there are people that MAKE a '.zip' FOR YOU. If they do not and you still WANT IT, DO IT YOURSELF.

The people that are writing patches have learned to compile OpenTTD themselves too, so WHY should YOU be ABLE to do so? There are enough manuals which IF FOLLOWED TO THE LETTER work fine.

So, either be grateful that there is SOMEONE making a '.zip' FOR YOU or LEARN how to do it YOURSELF.
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

90% of the manuals are written in a "language" understandable only for thouse that know specific terms and operations of codding. i only see strange things in thouse manuals. so the point is: "If you are a programmer you can do it, if not, GOD will help you!". and by the way, .zips always work, if you zip the right files in the right way (even i know how to zip a folder -with winzip-). ok. thanks to all! i had my answers! hope the patches get in trunk :mrgreen:

Nice week-end to everybody! I m going to seaside :mrgreen:
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

Sensation Lover wrote:and by the way, .zips always work, if you zip the right files in the right way (even i know how to zip a folder -with winzip-)
So you claim you can run ALL of the following on your computer? I really urge you to try. Just so you 'know' it; all these .zips work on at least one platform.
- http://binaries.openttd.org/releases/0. ... -amd64.zip
- http://binaries.openttd.org/releases/0. ... c-i686.zip
- http://binaries.openttd.org/releases/0. ... versal.zip
- http://binaries.openttd.org/releases/0. ... .0-os2.zip
- http://binaries.openttd.org/releases/0. ... -win32.zip
- http://binaries.openttd.org/releases/0. ... -win64.zip
- http://binaries.openttd.org/releases/0. ... -win9x.zip
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

i ve specify winzip... however, i can unzip all of them
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
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 »

There's a slight difference between "unpacking an archive" and "running an executable contained within an archive"...
Namely try to get openttd running using e.g. only the 1st zip file...

Let me quote from a signature of another person around here: "If you are not ready to work a bit for your ideas, it means they don't count much for you."
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

planetmaker wrote:"If you are not ready to work a bit for your ideas, it means they don't count much for you."
it doesn t mach with the topic... i didn t posted any ideas
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

http://www.tt-forums.net/viewtopic.php? ... 58#p790558
by the way i had what i was asking for...thank you all that spent time trying to make things more clear for me...it's only that some things are too complicated for me, and i must learn the basis. thank you all however!
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

Sensation Lover wrote:i ve specify winzip... however, i can unzip all of them
Here, I've compiled OpenTTD specially for you with the chunnel and signaltunnel patches. It is in a '.zip' so you should be able to extract it with Winzip. Happy playing with it!

http://devs.openttd.org/~rubidium/opent ... r-only.zip
User avatar
Sensation Lover
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 26 Feb 2009 09:17
Skype: Aron Bogdan Silviu
Location: Torino, Italy
Contact:

Re: Howto apply a patch/diff file

Post by Sensation Lover »

:bow: thank you very much. your effort is realy apreciated ... a lot! thank you thank you thank you! oneday i ll offer you a nice dinner!!! :mrgreen:
I was in:
Austria,Belgium,Brazil,China,France,Germany,Hungary,Indonesia,Italy,Luxemburg,Malaysia,Mexico,Netherlands,Norway,Panamà,Poland,Romania,
Saudi Arabia,Singapore,Slovenia,Spain,Switzerland,Thailand,U.K.,Ukraine,U.S.A.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Howto apply a patch/diff file

Post by DaleStan »

I wonder when it's going to notice.

Also, aren't we way off topic here?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
ZxBiohazardZx
Tycoon
Tycoon
Posts: 1534
Joined: 14 Mar 2006 12:46
Location: Netherlands

Re: Howto apply a patch/diff file

Post by ZxBiohazardZx »

Sensation Lover wrote:I have 2 .patch files: "chunnelv10_r16237" and "signaltunnel_V19_r16312" . i want to play with this patches but i did't find the right informations on how to apply this patches. I use Tortoise SVN. i ve create a new folder, i ve made the svncheckout, i applied the patches, and now? what's next? there is no .exe. there is full of files and folder and i don t know what to do with... please help me!

same problem for me, how do i complile and why isnt there a step-by step guide on the wiki, its like:

get SVN, and figure it out from there, it REALLY needs more step-by-step info and more images (visualisations) of what to do....
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Howto apply a patch/diff file

Post by Alberth »

ZxBiohazardZx wrote:why isnt there a step-by step guide on the wiki, its like:

get SVN, and figure it out from there, it REALLY needs more step-by-step info and more images (visualisations) of what to do....
For the same reason there is no good newbie OpenTTD manual.

People that understand what is missing don't know what to add, people that know what to add don't understand what is missing for new users.


For example, I only needed the wiki for SVN url, I knew already all the other stuff. So for me the page was too long. For you the page is too short, but I don't know what information you need. Also, I don't have a Windows system, and eg do not use TortoiseSVN, so almost all problems you experience, I don't even realize they exist.


I believe the only way out of it is when some newbie also updates the wiki pages. Unfortunately, that never happens.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Howto apply a patch/diff file

Post by Rubidium »

ZxBiohazardZx wrote:same problem for me, how do i complile and why isnt there a step-by step guide on the wiki, its like:
How much more step-by-step do you want?
- Turn on your computer
- Login (if needed)
- Press "Start" ... hmm, oh bah... there's no "Start" button on Vista? How to describe in simple steps that you need to start a browser?

Are you that computer illiterate that you the MS Visual C++ 2008 Express install instructions?

Do you really need to be shown how to download a file, find it back on you hard disk and then how to follow an installer?

Or is it an inability to find the install instructions? Hmm... wiki -> Development -> Coding tools (to build and debug OpenTTD) -> long list of install instructions; select one for your OS? (several don't work, but that is pretty clear from those pages). Or wiki -> "For those new to development, the FAQ should answer any questions you have" (i.e. the development FAQ) -> Lots of questions with, amongst others, "Now I have got the source code how can I compile it?" which lists links to the install instructions.
In my opinion that should be fairly trivial to find by just intelligently browsing the wiki.


Now about patching stuff and making a manual for that. That's a completely different thing. I could compare it with you making an instruction how I can flawlessly write German (I can read and understand most of it). This is basically what you ask. You ask us for an instruction how to fix any errors the patching process throws at you, which is vastly more complex and requires some basic understanding of coding. That's not something that can be written in a single page; it requires a lot of effort and trial'n'error.
Again... in the development FAQ there's a short explanation how to patch the source, which is sufficient if you apply ONE patch. With multiple patches you'll quickly end up in the situation where you need to know how to code or at least understand it enough to fix the collisions.
Vitus
Traffic Manager
Traffic Manager
Posts: 157
Joined: 11 Mar 2009 15:15

Re: Howto apply a patch/diff file

Post by Vitus »

ZxBiohazardZx wrote:same problem for me, how do i complile and why isnt there a step-by step guide on the wiki, its like:

get SVN, and figure it out from there, it REALLY needs more step-by-step info and more images (visualisations) of what to do....
I was able to compile it without any knowledge about coding nor compiling, I used this step-by-step guide and common sense.

I doubt it is that hard, when even I was able to apply two patches and compile it (I guess the fact that there was no conflict between these two patches helped tremendously).
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 8 guests