News:

Come Chat with us live! Learn how HERE!

Main Menu

How Do I Complie A Patch

Started by crazywhiteboy9x9, March 08, 2008, 03:06:09 AM

crazywhiteboy9x9

Ok so i want to learn how to complie patches will some 1 help me out???

Death On Ice

You mean patch the source with a downloaded patch?

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

TinMan

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.
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

to make a patch from source code, type svn diff > patchfile.patch

to apply a patch, type patch -p0 < patchname.patch

Odin

If you are about to make your own patch, you must also add your own files to the source code before doing svn diff:
svn add file

MartinX3

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

Quote from: MartinX3 on March 23, 2008, 07: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
Quote from: n.o.s.brain on March 09, 2008, 01:56:59 AM
to apply a patch, type 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

if that doesn't make sense, then read this if you are on windows...

MartinX3

Okay I tried to compile but it gave me an error.
=(

Amanieu

-_-
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

what commands were you thinking of. just wondering?

AlphaBetaAdmin

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

Quote from: Amanieu on March 25, 2008, 05: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.
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

Quote from: Divmax on April 11, 2008, 10:29:27 AM
Quote from: Amanieu on March 25, 2008, 05: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.
Let me guess the error, Error 2/ GCC not found.

I just got this error how do you fix it??
exact code here

$ 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

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

*smacks head**spoonfeeds some who doesn't use the Search function*
Error :
/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 :
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

#16
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:


$ 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]

Divmax

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

#18
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

AlphaBetaAdmin

#19
um, i figured out last error, now onto the next one...

$ 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

David

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

#21
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).
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