Tremulous Forum
Mods => Modding Center => Topic started by: cp blast on July 25, 2007, 02:33:40 pm
-
I have a *.patch file (downloaded somewhere here, forgot).
I'm on windows, just wondering how i can "apply" this patch to make it work?[/u]
-
get winmerge or better tortoiseSVN
-
I have a *.patch file (downloaded somewhere here, forgot).
I'm on windows, just wondering how i can "apply" this patch to make it work?[/u]
Install Cygwin (http://www.cygwin.com/). UNIX-like command-line environment makes development much easier when you get the hang of it.
Then just change dir to the source root and run
patch -p0 -F0 <path/to/patch
-
I have a *.patch file (downloaded somewhere here, forgot).
I'm on windows, just wondering how i can "apply" this patch to make it work?[/u]
Install Cygwin (http://www.cygwin.com/). UNIX-like command-line environment makes development much easier when you get the hang of it.
Then just change dir to the source root and run
patch -p0 -F0 <path/to/patch
he doesnt need cygwin
msys + mingw works great
-
Thanks to both. i got winmerge. but, could someone please explain to me how to actually "apply" the patch file? which 2 files to do open with winmerge?
1. the patch file
2. ?
-
Game source code.
-
Thanks
-
make a pozhaluysto example detailed with the program of winmerge
or by other program
or inundate the prepared server for windows on gremator@yandex.ru
with a work crew !layouts
plz
-
http://tremulous.net/phpBB2/viewtopic.php?t=3408
Why is that stickied if you don't read it?
-
...
Computer translators suck. I'm really sure we'd all understand the russian original better. :roll:
-
Follow these steps to compile the Tremulous client on Windows:[list=1]- Go to http://www.mingw.org/download.shtml
- Download MSys EXE (http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download) under Current
- Download MinGW EXE (http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download) under Previous
- Download w32api-3.6.tar.gz (http://prdownloads.sf.net/mingw/w32api-3.6.tar.gz?download) under Current
- Go to http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
- Download svn-1.4.2-setup.exe (or the latest *-setup.exe for svn)
- If your papers are in order you can get the DirectX SDK from Microsoft (http://www.microsoft.com/downloads/details.aspx?FamilyID=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en)
Alternatively, you can grab the two header files you need out of here from my website:
http://risujin.org/pub/tremulous/tremulous-dxsdk.zip
- Install subversion, use default paths etc
- Install MSys, but NOT to a path with a space in it! That means NO "Program Files", put it in C:\MSys
- Install MinGW to your C:\MSys\MinGW (folder should exist already)
- Install the MinGW Windows API by extracting it into the C:\MSys\mingw directory. You can do this either with WinRAR (http://www.rarsoft.com/download.htm) or through the MSys terminal using Unix tar commands:
[list=1] - Move the win32-api tar file to the C:\MSys\mingw directory.
- Open the MSys link on your desktop or start C:\MSys\msys.bat
- Change to the mingw directory ('cd ../../mingw' should do it)
- Untar the tar file ('tar xzf w32api-3.6.tar.gz')
[/list:o]That should work though I personally used WinRAR. :)
- Install the DirectX SDK if you downloaded it
- Copy dinput.h and dsound.h from either the DirectX SDK include folder or from my archive to MSys\MinGW\include
- Download the latest Tremulous SVN code by opening a console, cd'ing to your MinGW home folder ('cd C:\MinGW\home\User'), and typing the SVN command:
svn co -r 895 svn://svn.icculus.org/tremulous/trunk Tremulous
(if you feel confident, you can remove the '-r 895' part to download the latest SVN, but success is not guaranteed :))
If your code is not in a subdirectory of your MinGW home folder you will need to mount it (skip this otherwise):[list=1]- Open C:\MSys\etc\fstab.sample
- Comment out (add #s) to the two lines at the bottom
- Add your Tremulous SVN folder and mount point (e.g. 'C:\Tremulous /home/User/Tremulous')
- Open your mount point in the MSys directory tree and create the folder (MSys\home\User\Tremulous)
- Rename fstab.sample to fstab[/list:o]
- If you let it, MSys has created a shortcut on your desktop, start it; if not start C:\MSys\msys.bat
- cd to your Tremulous mount point ('cd Tremulous')
- Create a Makefile.local
- Edit your Makefile.local to read 'BUILD_GAME_QVM=0' if you don't want to compile the QVMs otherwise add 'INCLUDE=' and 'LIBRARY=' (original fix (http://code3arena.planetquake.gamespy.com/compilers.shtml#stdinerr)). Add 'USE_CURL=1' if you want WWW redirection support.
- Run make ('make' NOT 'mingw32-make' which doesn't work for some reason...)
- If all went well, your brand new tremulous.x86.exe is waiting for you in build/release-mingw-x86/
[/list:o]I couldn't compile game QVMs this way as it would hang when running one of the Quake QVM tools. This wasn't a problem for me as I can build the QVMs from Linux.
There are several mysteries about this process. I don't understand why it compiled without the OpenAL or SDL libraries (though they may have defaulted to off). Further, why are two DirectX headers necessary when the game never links to DirectX libraries?
for step 5) go to http://tortoisesvn.tigris.org/
for step 6) download tortoise svn
for step 7) nothing
for step 8 ) install tortoise svn - you will need to restart
for step 12) nothing - no directx sdk needed
for step 13) Download http://www.libsdl.org/extras/win32/common/directx-devel.tar.gz
and untar it into your MinGW directory (usually C:\MinGW).
for step 14) create a folder for svn download "c:\tremulous_svn" for example
right click the folder and select svn checkout
follow the sub steps 1-5
type svn://svn.icculus.org/tremulous/trunk
as the svn address
for step 16) "cd /c/tremulous_svn" if you used "c:\tremulous_svn"
for step 17) optional
for step 18 ) optional - curl is on by default
you can use -e switch to set compile options for ex:
"make -e BUILD_CLIENT=0 BUILD_CLIENT_SMP=0 BUILD_SERVER=0 BUILD_GAME_SO=0 BUILD_GAME_QVM=1"
no client/smp client/server/game dll but game qvm
I use the program tortoise svn to set this patch http://wraths.dyndns.org/downloads/code/patches/svn901/999.even_more_all_in_one-044.patch
I do right click mouse in folder tremulous_svn TortoiseSVN>Apply patch..>use patch>
>ERROR
TortoiseMerge
The line "Index:" was not found!
Either this is not a diff file or the diff is empty
how to set is this patch correct?
I looked over all of forum and did not find an answer =(
plz help
-
I use the program tortoise svn to set this patch http://wraths.dyndns.org/downloads/code/patches/svn901/999.even_more_all_in_one-044.patch
I do right click mouse in folder tremulous_svn TortoiseSVN>Apply patch..>use patch>
>ERROR
TortoiseMerge
The line "Index:" was not found!
Either this is not a diff file or the diff is empty
how to set is this patch correct?
I looked over all of forum and did not find an answer =(
plz help
Modify all header lines which look like this:
diff -Nru trem901-original/src/cgame/cg_public.h trem901-original-wrath-tmp/src/cgame/cg_public.h
--- trem901-original/src/cgame/cg_public.h 2007-05-05 14:56:02.000000000 +0200
+++ trem901-original-wrath-tmp/src/cgame/cg_public.h 2007-08-18 10:25:12.000000000 +0200
to look like this:
Index: src/cgame/cg_public.h
--- src/cgame/cg_public.h 2007-05-05 14:56:02.000000000 +0200
+++ src/cgame/cg_public.h 2007-08-18 10:25:12.000000000 +0200
Then it should work.
-
I found that this (http://tremulous.net/phpBB2/viewtopic.php?t=5654) is very helpful and easy 2 understand
-
Stop. Just Stop. You've spammed enough topics with your pointless shit.