Tremulous Forum

Mods => Modding Center => Topic started by: Piper802 on February 02, 2009, 12:36:43 am

Title: How to compile a patch.
Post by: Piper802 on February 02, 2009, 12:36:43 am
Okay, so I think I finally finished through Risujin's guide to setting up MSys. Anyways, I've downloaded an ESD patch, and would like to know how I can add it to a QVM.

What I've done so far, is I took the source code from the ESD patch and pasted onto the end of the source code of the QVM i'm using, then I saved it was ESDPATCH.patch. Then I put it in the directory C:\MSys\home\Owner\Tremulous, and typed
Code: [Select]
patch -p0 < ESDPATCH.PATCH into the MSys console, and I think it compiled. However, when I tested the QVM, it was really messed up... Whenever i tried to select my spawn class it would say, "There is no room to hold this item." Did I even compile it right? Help ;[.
Title: Re: How to compile a patch.
Post by: Archangel on February 02, 2009, 01:56:39 am
You need to backport the QVM. Searching the MG patch tracker will give you several patches which do that for you.
Title: Re: How to compile a patch.
Post by: Piper802 on February 02, 2009, 02:10:26 am
So I download a backport patch, copy and paste it to my QVM, and then recompile it? Or wat?
Someone should make an awesome, epic, amazing wiki for this :/. It seems like theres a thousand different problems randomly pop up for every problem I come across and never an explanation on how to do them. It'd be nice to have a huge modding database at hand @_@.
Title: Re: How to compile a patch.
Post by: Archangel on February 02, 2009, 02:13:49 am
you don't copy/paste anything, you download the patch file to your Tremulous source root (C:\MSys\home\Owner\Tremulous) then run
Code: [Select]
patch -p0 < patchname
Title: Re: How to compile a patch.
Post by: Bissig on February 02, 2009, 03:49:04 am
@Piper

Read up on patching in general FIRST before you do something even more stupid than appending a patch to a file.
Title: Re: How to compile a patch.
Post by: Piper802 on February 02, 2009, 04:37:25 am
you don't copy/paste anything, you download the patch file to your Tremulous source root (C:\MSys\home\Owner\Tremulous) then run
Code: [Select]
patch -p0 < patchname
Okay.

@Bissig: If you can be constructive and find any links that can help me learn more about patching, feel free to post them.
Title: Re: How to compile a patch.
Post by: Foe of Eternity on February 14, 2009, 09:21:55 pm
ok, first, in msys, get the source:
Code: [Select]
svn co svn://svn.icculus.org/tremulous/trunk tremulous
then paste the patch in the folder tremulous that svn made

then run the command
Code: [Select]
patch -p0 < [patchname]where [patchname] is the name of your patch

then finally compile it:
Code: [Select]
make



Title: Re: How to compile a patch.
Post by: Bissig on February 15, 2009, 12:01:41 am
you don't copy/paste anything, you download the patch file to your Tremulous source root (C:\MSys\home\Owner\Tremulous) then run
Code: [Select]
patch -p0 < patchname
Okay.

@Bissig: If you can be constructive and find any links that can help me learn more about patching, feel free to post them.

man patch

Wikipedia? Or millions other dev sources? Or you could just search this very forums.