The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: brunoresende29 on March 14, 2009, 02:27:50 pm

Title: .patch files
Post by: brunoresende29 on March 14, 2009, 02:27:50 pm
Please, where I should put the .patch files, or what should I do with them. I put some in the "pak128" file and it did not work. Thanks for reading!  :(
Title: Re: .patch files
Post by: Frank on March 14, 2009, 02:52:44 pm
.patch files are source code not addon

see http://simutrans.wiki.sourceforge.net/ (http://simutrans.wiki.sourceforge.net/)

or http://en.wiki.simutrans.com/index.php/Source_Code (http://en.wiki.simutrans.com/index.php/Source_Code)
Title: Re: .patch files
Post by: VS on March 14, 2009, 02:54:59 pm
Judging from how you asked the question, they are probably of no use to you :(

Please read the second paragraph here:
http://en.wikipedia.org/wiki/Patch_(computing)#Types

They are usually added to the game after some reviewing, so eventually you get that functionality, too. Also there is a place for authors to upload "preview" versions with patches added (http://patches.simutrans-germany.com/), but it is not used very much.
Title: Re: .patch files
Post by: brunoresende29 on March 14, 2009, 03:39:15 pm
Ok, Thanks for your help! ;D
Title: Patch Question
Post by: BudapestTRansport on March 16, 2009, 11:49:19 pm
the patch files which simutrans it is necessary to make a copy into a library?

modnote (whoami): merged with similar topic
Title: Re: Patch Question
Post by: whoami on March 17, 2009, 01:06:26 am
I don't understand the question, for grammatical reasons. How about using simple sentences?

Patches (as published in the forum) are changes to the source code. You can view them as text files, but you can't use them for anything, unless you have a C++ development environment.
Title: Re: Patch Question
Post by: BudapestTRansport on March 17, 2009, 09:30:11 am
this files which simutrans directory needs copy? pak128 or which?
Title: Re: Patch Question
Post by: vilvoh on March 17, 2009, 09:41:53 am
BudapestTRansport, did you actually read what whoami posted?

[..] but you can't use them for anything, unless you have a C++ development environment.

To use them, you need to get the source code, apply the patches and recompile all to get a new Simutrans binary.
Title: Re: .patch files
Post by: mwoodburn81 on September 03, 2009, 05:00:52 am
BudapestTRansport, did you actually read what whoami posted?

To use them, you need to get the source code, apply the patches and recompile all to get a new Simutrans binary.

How do I apply the patch file once I have the source code. (using VC++ express on Windows [vista])  I tried yelling "APPLY PATCH" at the computer, and pressing the "read my mind" button.   And that didn't seam to work for some reason.
Title: Re: .patch files
Post by: Dwachs on September 03, 2009, 05:04:46 am
Here is a description how to get the source code and compile under Windows:

http://forum.simutrans.com/index.php?topic=652.0

The .patch file can then be applied using TortoiseSvn.
Title: Re: .patch files
Post by: mwoodburn81 on September 03, 2009, 05:14:31 am
do i just put it in the patchs folder, then right click on the file and select, "apply patch" ?

I think I did it correctly.  TortosieMerge pops up with a list of files that was patchs?  Do that mean it worked, and I can try to compile now?
Title: Re: .patch files
Post by: Dwachs on September 03, 2009, 05:29:57 am
do i just put it in the patchs folder, then right click on the file and select, "apply patch" ?
yes
Quote
I think I did it correctly.  TortosieMerge pops up with a list of files that was patchs?  Do that mean it worked, and I can try to compile now?
You have to click 'apply patches' in TortoiseMerge and save. Then it should work.
Title: Re: .patch files
Post by: mwoodburn81 on September 03, 2009, 05:40:48 am
Dwachs,

Thank you for your quick reply.  I didn't get it to compile, it looks like I have a path set incorrectly, but I will try to figure it out tomorrow.   This is the first time I tried compiling simutrans in windows.  If it compiled on the first attempt, I don't think it would be any fun, lol.


~Michael.
Title: Re: .patch files
Post by: prissi on September 04, 2009, 06:41:05 am
The MSVC on windows is highly recommended to compile on windows, as SDL is somewhat difficult to set up in MinGW for Newbies.