Game Development Community

Patch

by Fucifer · in Torque Game Engine · 07/05/2006 (8:44 am) · 5 replies

I have been try install this patch
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4199

But I alway get two things

'patch' is not recognized as an internal or externel command operable program or batch file
or
specify path cannot be found

Here what I have been type in

C:\torque\torque>patch -p0 < engine\interiorrender.patch
C:\torque>patch -p0 < engine\interiorrender.patch

cd c:\Torque
patch -p0 < ..\interiorrender.patch

I have try many different ways too many to list here. I have search the form nothing work. I have try other patch to and get the same. I dont know what esle to do. What I doing wrong?

#1
07/05/2006 (8:57 am)
Michael,

If there's an automated way to apply the changes, I haven't figured it out yet, but to do this manually, is pretty easy -- just a little tedious. ;)

Basically, you will need to find the interiorRender.cc file in your engine directory structure and whenever you see a line of code starting with a plus, you need to add that line of code to your version of the file. Whenever you see a line of code starting with a -, then you need to delete that entire line from your version of the file. Whenever you see @@ preceeding any line of code, then you should change that line in your version to match the patch example.

At least that's how I think it works. I'm still new to the whole coding thing. :)

Aaron E.
#2
07/05/2006 (8:59 am)
By the way. When you're editing your version of interiorRender.cc, make sure you don't include the +, the -, or the @@s. That could cause some problems.
#3
07/05/2006 (9:07 am)
Err, just get patch.exe (which should come with WinCVS e.g.) and add the directory where its located to your PATH variable in Windows... or specify the full path to patch.exe, e.g.
C:\torque\torque>C:\WinCVS\bin\patch -p0 < engine\interiorrender.patch
or something like that...
#4
07/05/2006 (9:35 am)
Stefan,

Your way sounds much easier.

;)
#5
07/05/2006 (12:24 pm)
Thank you very much.