Help with Patching
by Dan Van Meer · in Torque Game Engine · 02/05/2003 (7:53 pm) · 46 replies
Hi all,
I've been trying to install the daynight.patch file to my code, however, even after following the instructions, I can't seem to get this to work. I've downloaded UnxUtils, and have tried everything that I can think of to make this work. If anybody has any hints, or knows where they think I may be going wrong, please let me know.
Thanks in advance.
I've been trying to install the daynight.patch file to my code, however, even after following the instructions, I can't seem to get this to work. I've downloaded UnxUtils, and have tried everything that I can think of to make this work. If anybody has any hints, or knows where they think I may be going wrong, please let me know.
Thanks in advance.
#2
04/19/2003 (8:39 am)
You use "CVS diff -uN" to MAKE the patches. You use the command "patch" to apply a patch. Note NOT "cvs patch" but "patch". There's a complete easy to follow set of instructions in the Torque documentation.
#3
04/19/2003 (8:51 am)
yes i used "patch" not "cvs patch". but the program doesnt know this parameter.
#4
04/19/2003 (1:55 pm)
What parameter doesn't it know? The command line for patch is "patch -p0 < PATCHFILENAME"... What exact message do you get when you try and run patch?
#5
I had to install patch seperately.
is That is the problem:
unxutils.sourceforge.net/
you can get a set of common tools from Unix for win32 there.
04/19/2003 (4:53 pm)
I never had patch just by installing cvsI had to install patch seperately.
is That is the problem:
unxutils.sourceforge.net/
you can get a set of common tools from Unix for win32 there.
#6
04/19/2003 (5:03 pm)
Im using "unxutils", when i use the command "patch" i get the following message: "zsh: command not found: patch"
#7
you need to add the path of this program to your PATH
what os?
04/19/2003 (5:06 pm)
patch is not available in your PATHyou need to add the path of this program to your PATH
what os?
#8
04/20/2003 (1:32 am)
i have windowsXP
#9
Once thats done you shoudl be able to open a new command prompt and run patdch from the anywhere on your machine.
04/20/2003 (3:42 am)
Ok then, go to your control panel, switch to classic view and double click on system. On the advanced tab press the enviroment variables button. In the bottom listview double click on "path". Add the directory where your copy of the "patch" executable resides to the end of the "variable value" entry. Make sure you put a semicolon before it so it looks something like "OLDPATH;dir\to\patch".Once thats done you shoudl be able to open a new command prompt and run patdch from the anywhere on your machine.
#10
04/20/2003 (4:51 am)
still doesnt work. added the new variable value to "path". do i have to include the "exe" after the path?
#11
the path is just that, a path not a reference to an exe.
so
OLDPATH;c:\patchisinhere\;
04/20/2003 (4:58 am)
no just dont put the filename.. eg : patchthe path is just that, a path not a reference to an exe.
so
OLDPATH;c:\patchisinhere\;
#12
04/20/2003 (5:31 am)
still doesnt accept the command "patch"
#13
paste the final path here.
Edit:
and paste as well the location of your patch.exe
Edit:
Actually if you put a final slash in like I did then That is wrong take that out
04/20/2003 (5:50 am)
hmm are you sure you did not make a mistake in adjusting the system path?paste the final path here.
Edit:
and paste as well the location of your patch.exe
Edit:
Actually if you put a final slash in like I did then That is wrong take that out
#14
c:/torque/engine>C:/here/is/my/patch.exe -p0 C:/here/is/my/.patch
If this doesn't work, I would say your patch file is defect.
Max: It doesn't matter where your .patch file is. Just to be sure, type in the hole path to your .patch fiel:
patch -p0
(sorry about the path, but I don't know mac very well. But i think the command line should be the same).
06/04/2003 (10:48 pm)
Well, for windows. Open your CMD and go into the directory where you have to apply the .patch file. if you are there enter THE HOLE PATH to patch.exe and the hole path the the .patch file. It then looks something like this:c:/torque/engine>C:/here/is/my/patch.exe -p0 C:/here/is/my/.patch
If this doesn't work, I would say your patch file is defect.
Max: It doesn't matter where your .patch file is. Just to be sure, type in the hole path to your .patch fiel:
patch -p0
#15
as for other files that come With the patch.
it really depends on what they are and stuff.. so more description is necessary.
I usually for simplicity sake do all patching from the base directory of the project.
in this case : ../torque
so I put the .patch file in the torque dir.
so I dont have to type the path to it.
06/05/2003 (2:56 pm)
Quote:Max: It doesn't matter where your .patch file is. Just to be sure, type in the whole path to your .patch file.
as for other files that come With the patch.
it really depends on what they are and stuff.. so more description is necessary.
I usually for simplicity sake do all patching from the base directory of the project.
in this case : ../torque
so I put the .patch file in the torque dir.
so I dont have to type the path to it.
#16
The patch is the Daylight Patch, which is an updated version of the TGEDN patch. Anyways, it doesn't tell me where the files go... Thanks,
Max
06/05/2003 (3:10 pm)
Ok, thanks. The patch is the Daylight Patch, which is an updated version of the TGEDN patch. Anyways, it doesn't tell me where the files go... Thanks,
Max
#17
I've looked through the .patch file and I'm now wondering if there is an assumption of what the directory layout is. In other words does a patch have to be applied to an unmodified sdk?
06/05/2003 (6:01 pm)
To the best of my, very limited, knowledge, I have done the patching process(daynight.patch) as described in this and other threads and yet nothing happens. The cmd prompt moves down a line and sits there flashing.I've looked through the .patch file and I'm now wondering if there is an assumption of what the directory layout is. In other words does a patch have to be applied to an unmodified sdk?
#18
06/05/2003 (6:16 pm)
Yes, it does... If you read the read-me on the original that's what is said...
#19
Please help, I've never used this program before and am very confused...
Max
06/05/2003 (8:14 pm)
Ok, nothing seems to work... I am supposed to pull up the little window with the ~ key right? Then what do I type in? I tried stuff like: patch -p0 Please help, I've never used this program before and am very confused...
Max
#20
I think you're starting torque and then open the console.
If so, that's wrong. You have to do that in your windows command promt (in windows start -> run -> "cmd" or "command").
There you can type in "patch -p0
Just follow the instructions in this thread...
06/05/2003 (10:11 pm)
Are you trying to apply the patch using the torque console? I just ask because you wrote "to pull up the little window with the ~ key".I think you're starting torque and then open the console.
If so, that's wrong. You have to do that in your windows command promt (in windows start -> run -> "cmd" or "command").
There you can type in "patch -p0
Just follow the instructions in this thread...
Torque Owner Christian Weber
HydraGames
Thx