The International Simutrans Forum

 

Author Topic: .patch files  (Read 9926 times)

0 Members and 1 Guest are viewing this topic.

Offline Bruno Philipe

  • *
  • Posts: 16
    • Personal Website
  • Languages: EN, PT
.patch files
« 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!  :(

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: .patch files
« Reply #1 on: March 14, 2009, 02:52:44 PM »
« Last Edit: March 14, 2009, 03:01:21 PM by Frank »

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: .patch files
« Reply #2 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, but it is not used very much.

Offline Bruno Philipe

  • *
  • Posts: 16
    • Personal Website
  • Languages: EN, PT
Re: .patch files
« Reply #3 on: March 14, 2009, 03:39:15 PM »
Ok, Thanks for your help! ;D

Offline BudapestTRansport

  • Lounger
  • *
  • Posts: 59
Patch Question
« Reply #4 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
« Last Edit: March 17, 2009, 08:29:49 PM by whoami »

Offline whoami

  • Devotees (Inactive)
  • *
  • Posts: 693
Re: Patch Question
« Reply #5 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.

Offline BudapestTRansport

  • Lounger
  • *
  • Posts: 59
Re: Patch Question
« Reply #6 on: March 17, 2009, 09:30:11 AM »
this files which simutrans directory needs copy? pak128 or which?

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Patch Question
« Reply #7 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.
« Last Edit: March 17, 2009, 10:17:36 PM by vilvoh »

Offline mwoodburn81

  • *
  • Posts: 81
Re: .patch files
« Reply #8 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: .patch files
« Reply #9 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.

Offline mwoodburn81

  • *
  • Posts: 81
Re: .patch files
« Reply #10 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?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: .patch files
« Reply #11 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.

Offline mwoodburn81

  • *
  • Posts: 81
Re: .patch files
« Reply #12 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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9460
  • Languages: De,EN,JP
Re: .patch files
« Reply #13 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.

Offline VictorKoehler

  • *
  • Posts: 157
  • Ahh... Os Transportes de hoje em dia...
    • VK Simutrans - Absolutamente Tudo sobre Simutrans!
Help me out, I need to know how to install Patches...
« Reply #14 on: January 15, 2011, 04:33:36 AM »
I'm trying to understand what patches, I know it
Simutrans changes, only this I know, I see some patches and want to download.

But I do not know how to put in Simutrans. :-[
Could anyone tell how to install Patches? (Recalling that I am beginner in this case) ;)



Translated by Google Translator

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2269
Re: Help me out, I need to know how to install Patches...
« Reply #15 on: January 15, 2011, 06:37:12 AM »
You cannot install patches, they make changes to the simutrans sourcecode, and you then need to compile this. You are probably best off waiting for the patch to be incorporated into the main version of simutrans.

Offline sdog

  • Devotee
  • *
  • Posts: 2039
Re: Help me out, I need to know how to install Patches...
« Reply #16 on: January 15, 2011, 06:46:41 AM »
First two questions:
- did you compile the source code before?
- what is your operating system?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: Help me out, I need to know how to install Patches...
« Reply #17 on: January 15, 2011, 12:08:01 PM »
@Victor:

please read

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


--mod note: moved to help requests

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4083
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: .patch files
« Reply #18 on: January 15, 2011, 04:34:21 PM »
Topic merged.

EDIT:

But still, we don't have an actual help about patch files, unless some posts here and there.

Question: is there a developer manual anywhere?
« Last Edit: January 15, 2011, 04:43:02 PM by IgorEliezer »

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: .patch files
« Reply #19 on: January 15, 2011, 05:07:51 PM »
Depends on what is "developer manual". The topic is not limited to Simutrans, so most developers will already know what to do. If it's a manual from developers...?

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4083
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: .patch files
« Reply #20 on: January 15, 2011, 05:16:39 PM »
Sorry, I wasn't precise.

I meant, a Developer wiki for Simutrans. IIRC, I had heard of it somewhere.

Offline VictorKoehler

  • *
  • Posts: 157
  • Ahh... Os Transportes de hoje em dia...
    • VK Simutrans - Absolutamente Tudo sobre Simutrans!
Re: .patch files
« Reply #21 on: January 15, 2011, 07:06:47 PM »
I do not know compile sdog, I use Windows XP

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9460
  • Languages: De,EN,JP
Re: .patch files
« Reply #22 on: January 15, 2011, 08:03:04 PM »
There are two pages on sourceforge, which mirror mostly the text files in the documentation folder. EDIT: JUst saw they changed the wiki format => No, there is no developer wiki.