Author Topic: How to compile a patch.  (Read 5195 times)

Piper802

  • Posts: 56
  • Turrets: +2/-2
How to compile a patch.
« 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 ;[.

Archangel

  • Guest
Re: How to compile a patch.
« Reply #1 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.

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to compile a patch.
« Reply #2 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 @_@.

Archangel

  • Guest
Re: How to compile a patch.
« Reply #3 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

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: How to compile a patch.
« Reply #4 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.

Piper802

  • Posts: 56
  • Turrets: +2/-2
Re: How to compile a patch.
« Reply #5 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.
« Last Edit: February 02, 2009, 04:45:43 am by Piper802 »

Foe of Eternity

  • Posts: 169
  • Turrets: +6/-13
Re: How to compile a patch.
« Reply #6 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




No. Let n00bs pick overly destructive Human weapons and then use them in their own base and around their own teammates. Maybe then they'll learn that doing that is a stupid idea. Meanwhile, I will be slashing at their damaged Armoury, after I vault their smoking turrets and the scattered bodies of their TK' d teammates. N00bs: they're what's for breakfast.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: How to compile a patch.
« Reply #7 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.