Author Topic: How Do I Complie A Patch  (Read 11142 times)

crazywhiteboy9x9

  • Posts: 23
  • Turrets: +0/-8
How Do I Complie A Patch
« on: March 08, 2008, 03:06:09 am »
Ok so i want to learn how to complie patches will some 1 help me out???

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
Re: How Do I Complie A Patch
« Reply #1 on: March 08, 2008, 03:33:26 am »
You mean patch the source with a downloaded patch?

Or do you mean edit the source and make a patch from your edits?

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
Re: How Do I Complie A Patch
« Reply #2 on: March 08, 2008, 07:54:01 am »
You don't compile a patch, you patch with a patch.
Patch files are applied to existing files and they patch them.
Search these forums, there are plenty of threads that have covered doing it.
Search "compile trem" for the compile info.
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

n.o.s.brain

  • Posts: 339
  • Turrets: +1337/-24
    • youtube page
Re: How Do I Complie A Patch
« Reply #3 on: March 09, 2008, 01:56:59 am »
to make a patch from source code, type
Code: [Select]
svn diff > patchfile.patch
to apply a patch, type
Code: [Select]
patch -p0 < patchname.patch

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: How Do I Complie A Patch
« Reply #4 on: March 11, 2008, 03:36:30 am »
If you are about to make your own patch, you must also add your own files to the source code before doing svn diff:
Code: [Select]
svn add file

MartinX3

  • Guest
Re: How Do I Complie A Patch
« Reply #5 on: March 23, 2008, 08:01:17 pm »
And when i want to patch my Game.qvm?
I want to have a super hyper mega Game.QVM for my server.
With all specials. XD

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: How Do I Complie A Patch
« Reply #6 on: March 24, 2008, 12:42:51 am »
And when i want to patch my Game.qvm?
I want to have a super hyper mega Game.QVM for my server.
With all specials. XD
to apply a patch, type
Code: [Select]
patch -p0 < patchname.patch
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

n.o.s.brain

  • Posts: 339
  • Turrets: +1337/-24
    • youtube page
Re: How Do I Complie A Patch
« Reply #7 on: March 24, 2008, 01:24:45 am »
if that doesn't make sense, then read this if you are on windows...

MartinX3

  • Guest
Re: How Do I Complie A Patch
« Reply #8 on: March 24, 2008, 10:31:26 pm »
Okay I tried to compile but it gave me an error.
=(

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: How Do I Complie A Patch
« Reply #9 on: March 25, 2008, 06:06:49 am »
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

blood2.0

  • Guest
Re: How Do I Complie A Patch
« Reply #10 on: March 27, 2008, 05:16:15 am »
what commands were you thinking of. just wondering?

AlphaBetaAdmin

  • Posts: 63
  • Turrets: +2/-11
Re: How Do I Complie A Patch
« Reply #11 on: April 10, 2008, 10:03:17 pm »
interesting, yesterday it was working...but now i can't seem to get it to work  :( it keeps saying file not found [i have to do it in the command prompt because i have a vista  :-\]

Divmax

  • Posts: 197
  • Turrets: +3/-8
Re: How Do I Complie A Patch
« Reply #12 on: April 11, 2008, 10:29:27 am »
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
Let me guess the error, Error 2/ GCC not found.
I'm a developer for the following projects(now I'm inactive) :
TremWars's QVMNot updated anymore
TremWars's Client and Server Executable
TremWars's QVM 2

lizards160

  • Posts: 62
  • Turrets: +1/-5
Re: How Do I Complie A Patch
« Reply #13 on: April 12, 2008, 07:44:57 pm »
-_-
You expect people to know how to solve your problem, but you don't tell us what the problem is. Post the error.
Let me guess the error, Error 2/ GCC not found.

I just got this error how do you fix it??
exact code here
Code: [Select]
$ make
make[1]: Entering directory `/c/editable/code'

Building Tremulous in build/release-mingw32-x86:
  PLATFORM: mingw32
  ARCH: x86
  COMPILE_PLATFORM: mingw32
  COMPILE_ARCH: x86
  CC: gcc

  CFLAGS:
    -MMD
    -Wall
    -fno-strict-aliasing
    -Wimplicit
    -Wstrict-prototypes
    -DUSE_ICON
    -Isrc/SDL12/include
    -DUSE_OPENAL=1
    -DUSE_OPENAL_DLOPEN
    -DUSE_CURL
    -DCURL_STATICLIB
    -m32
    -DUSE_LOCAL_HEADERS
    -DNDEBUG
    -O3
    -march=i586
    -fno-omit-frame-pointer
    -ffast-math
    -falign-loops=2
    -funroll-loops
    -falign-jumps=2
    -falign-functions=2
    -fstrength-reduce

  LDFLAGS:
    -lwsock32
    -lwinmm
    -m32

  Output:
    build/release-mingw32-x86/tremded.x86.exe
    build/release-mingw32-x86/tremulous.x86.exe
    build/release-mingw32-x86/base/vm/cgame.qvm
    build/release-mingw32-x86/base/vm/game.qvm
    build/release-mingw32-x86/base/vm/ui.qvm

make[2]: Entering directory `/c/editable/code'
DED_CC src/server/sv_client.c
make[2]: gcc: Command not found
make[2]: *** [build/release-mingw32-x86/ded/sv_client.o] Error 127
make[2]: Leaving directory `/c/editable/code'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/c/editable/code'
make: *** [release] Error 2


David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: How Do I Complie A Patch
« Reply #14 on: April 12, 2008, 10:11:34 pm »
You can't compile without a compiler.
Follow one of the tutorials.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Divmax

  • Posts: 197
  • Turrets: +3/-8
Re: How Do I Complie A Patch
« Reply #15 on: April 13, 2008, 02:59:04 am »
*smacks head**spoonfeeds some who doesn't use the Search function*
Error :
Code: [Select]
/bin/sh.exe: svnversion: command not found
make[1]: Entering directory `/c/SVN966'
make -C src/tools/lcc install
make[2]: Entering directory `/c/SVN966/src/tools/lcc'
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-mingw32-x86/etc/lcc.o etc/lcc.c
make[2]: gcc: Command not found
make[2]: *** [build-mingw32-x86/etc/lcc.o] Error 127
make[2]: Leaving directory `/c/SVN966/src/tools/lcc'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/c/SVN966'
make: *** [release] Error 2
^Something like that.

Reply :
Code: [Select]
maybe you didnt set the mingw path :/
Solution :
http://tremulous.net/phpBB2/viewtopic.php?t=2672&highlight=fstab
I'm a developer for the following projects(now I'm inactive) :
TremWars's QVMNot updated anymore
TremWars's Client and Server Executable
TremWars's QVM 2

AlphaBetaAdmin

  • Posts: 63
  • Turrets: +2/-11
Re: How Do I Complie A Patch
« Reply #16 on: April 13, 2008, 11:58:04 pm »
ok, i think i have everything ready, except:

where do you put the .patch file?

and

where do you put the original game.qvm?

also, what i said above, i was getting an error, here it is:


Code: [Select]
$ make
make -C src/tools/lcc install
make[1]: Entering directory `/mingw/tremulous/src/tools/lcc'
gcc -O2 -Wall -fno-strict-aliasing -MMD -DTEMPDIR=\"/tmp\" -DSYSTEM=\"\" -c -Isrc -o build-mingw32-x86/etc/lcc.o etc/lcc.c
make[1]: gcc: Command not found
make[1]: *** [build-mingw32-x86/etc/lcc.o] Error 127
make[1]: Leaving directory `/mingw/tremulous/src/tools/lcc'
make: *** [tools] Error 2


[i'm probably doing something horribly wrong, but idk what]
« Last Edit: April 14, 2008, 12:20:53 am by AlphaBetaAdmin »

Divmax

  • Posts: 197
  • Turrets: +3/-8
Re: How Do I Complie A Patch
« Reply #17 on: April 14, 2008, 10:23:16 am »
Read the post above you for the solution for your error...
* Divmax is getting pissed off with people WHO CANT FUCKING READ.
I'm a developer for the following projects(now I'm inactive) :
TremWars's QVMNot updated anymore
TremWars's Client and Server Executable
TremWars's QVM 2

AlphaBetaAdmin

  • Posts: 63
  • Turrets: +2/-11
Re: How Do I Complie A Patch
« Reply #18 on: April 14, 2008, 08:25:22 pm »
wow...i finaly got it working, some files were installed in the wrong place =/


i moved:

cc1.exe
gcc.exe
cpp0.exe

to the bin folder in C:\msys\1.0\bin


and i copied mingw directly to C:/

wow, there are a lot of files to be made xD
« Last Edit: April 14, 2008, 10:06:31 pm by AlphaBetaAdmin »

AlphaBetaAdmin

  • Posts: 63
  • Turrets: +2/-11
Re: How Do I Complie A Patch
« Reply #19 on: April 14, 2008, 10:13:43 pm »
um, i figured out last error, now onto the next one...

Code: [Select]
$ patch -p0 < NERO_QVM.patch
m.AllocationBase 0x0, m.BaseAddress 0x715B0000, m.RegionSize 0xD0000, m.State 0x10000
C:\msys\1.0\bin\patch.exe: *** Couldn't reserve space for cygwin's heap (0x715B0000 <0x1690000>) in child, Win32 error 0
« Last Edit: April 15, 2008, 02:21:29 am by AlphaBetaAdmin »

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: How Do I Complie A Patch
« Reply #20 on: April 15, 2008, 02:03:56 pm »
A one second google on that error and the top hit says that your a retard for moving things around and blindly hoping it would work.
Read the docs.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Divmax

  • Posts: 197
  • Turrets: +3/-8
Re: How Do I Complie A Patch
« Reply #21 on: April 15, 2008, 02:42:42 pm »
Quote from:
The error "Couldn't reserve space for cygwin's heap" is actually due to some
XP/cygwin bug in older versions of the cygwin1 DLL. To fix the problem, go
to http://www.cygwin.com, and then download and install the lastest and
greatest version  (r1.3.0). One potential hang up here, is that PDP++
expects to find cygwin1.dll in something like C:\WINDOWS\SYSTEM32, however
the cygwin install program puts it in something like C:\CYGWIN\BIN. So, to
fix this just copy the file over.
The other solution, disable your AV(For stupid people, Anti-Virus).
« Last Edit: April 16, 2008, 12:55:46 pm by Divmax »
I'm a developer for the following projects(now I'm inactive) :
TremWars's QVMNot updated anymore
TremWars's Client and Server Executable
TremWars's QVM 2