Help with Patching the Day-To-Night patch?
by Mitovo · in Torque Game Engine · 04/03/2004 (1:32 pm) · 19 replies
Hello..
It's me, back to bug everyone again.. :-)
I'm working on trying to get John Venderbeck's Day-To-Night patch from this link:
www.garagegames.com/mg/forums/result.thread.php?qt=17044
I have WinCVS set up, as well as MinGW/GCC etc. and can properly compile the engine when need-be.
At this point, I'm trying to learn how to at least apply a patch to the engine and am really eager to see the day-to-night cycle in place, so I've chosen that as my first.
However, despite having read the steps provided on the GG site, referred to by John in his resource page, I am completely at a loss, and am feeling a bit dumb.
How do you go about patching the engine? I can't find the command-line to run, nor any reference to it in the WinCVS documentation, yet it says it has the ability to do so.
I added this request to the Resource page itself, though it probably isn't the right place to do so. If someone could please provide, or point me to some good instructions on how to properly setup and patch Torque for the Day-To-Night, I would be *most* appreciative.
I need to learn this at some point, and have done all I can do to figure it out on my own.. but, without documentation that explains it in specific steps (where to find what, what to run, what switches to use, etc) I'm pretty much lost.
I appreciate any help anyone can provide...
Thank you!
Mike
It's me, back to bug everyone again.. :-)
I'm working on trying to get John Venderbeck's Day-To-Night patch from this link:
www.garagegames.com/mg/forums/result.thread.php?qt=17044
I have WinCVS set up, as well as MinGW/GCC etc. and can properly compile the engine when need-be.
At this point, I'm trying to learn how to at least apply a patch to the engine and am really eager to see the day-to-night cycle in place, so I've chosen that as my first.
However, despite having read the steps provided on the GG site, referred to by John in his resource page, I am completely at a loss, and am feeling a bit dumb.
How do you go about patching the engine? I can't find the command-line to run, nor any reference to it in the WinCVS documentation, yet it says it has the ability to do so.
I added this request to the Resource page itself, though it probably isn't the right place to do so. If someone could please provide, or point me to some good instructions on how to properly setup and patch Torque for the Day-To-Night, I would be *most* appreciative.
I need to learn this at some point, and have done all I can do to figure it out on my own.. but, without documentation that explains it in specific steps (where to find what, what to run, what switches to use, etc) I'm pretty much lost.
I appreciate any help anyone can provide...
Thank you!
Mike
About the author
#2
Let's see how that works out.
Thanks!
Mike
P.S. No apologies necessary :-)
04/03/2004 (1:43 pm)
Oh.. so it's not included with what I downloaded? Hmm.. okay, well that's a good reason why I couldn't find any documentation.. heh.Let's see how that works out.
Thanks!
Mike
P.S. No apologies necessary :-)
#3
Here's where I end up:
unxutils.sourceforge.net/
On that page, I see a line about an executable 'Installer' being available - the word Installer is a link..and I assume that's what I should be looking for, especially since I can see no other link on that page that looks right.
So. here's where that link takes me:
www.braindonors.net/products/unxutils.asp
Which then seems to redirect to this link:
www.braindonors.net/products/xTools.asp
This page seems to have an error part way down as I keep getting several lines of info and then:
"error '800c0005'
/braindonors/rss/news.asp, line 132"
So.. either what I'm supposed to be looking for isn't on that page, or it's farther down, past the error that's occuring and not letting the page load completly..
Soooo... Color me lost. lol. Why does everything relating to Linux/Unix or GNU in general always seem to require jumping through flaming hoops to get it to work?
Thanks again..
04/03/2004 (1:55 pm)
Hmm... Either I don't know what I'm supposed to be looking for, or that link is not a good link to use...Here's where I end up:
unxutils.sourceforge.net/
On that page, I see a line about an executable 'Installer' being available - the word Installer is a link..and I assume that's what I should be looking for, especially since I can see no other link on that page that looks right.
So. here's where that link takes me:
www.braindonors.net/products/unxutils.asp
Which then seems to redirect to this link:
www.braindonors.net/products/xTools.asp
This page seems to have an error part way down as I keep getting several lines of info and then:
"error '800c0005'
/braindonors/rss/news.asp, line 132"
So.. either what I'm supposed to be looking for isn't on that page, or it's farther down, past the error that's occuring and not letting the page load completly..
Soooo... Color me lost. lol. Why does everything relating to Linux/Unix or GNU in general always seem to require jumping through flaming hoops to get it to work?
Thanks again..
#5
It doesn't. But Unix/Linux tends to cater to a different type of user who is used to not having all these pretty nice wizards and installers. They just do it themselves. Coming from a Windows point of view it seems like you have hoops.
04/03/2004 (2:00 pm)
Quote:Why does everything relating to Linux/Unix or GNU in general always seem to require jumping through flaming hoops to get it to work?
It doesn't. But Unix/Linux tends to cater to a different type of user who is used to not having all these pretty nice wizards and installers. They just do it themselves. Coming from a Windows point of view it seems like you have hoops.
#6
Thanks again...
Mike
04/03/2004 (2:05 pm)
...and what's wrong with nice pretty wizards and installers? :-pThanks again...
Mike
#7
04/03/2004 (2:08 pm)
Okay, I got the zip downloaded.. So, do I just unzip these... where? To the WinCVS folder.. or to my WinGW folder? Does it matter?
#8
You can then either copy patch.exe to someplace that is in your path (Such as c:\windows) or when you use it, just type the whole path to the file, eg:
c:\usr\local\wbin\patch.exe -p0 < ..\patchname.patch
04/03/2004 (2:13 pm)
Anywhere you want. I unzipped mine to c:\ since it has its own directory structure.You can then either copy patch.exe to someplace that is in your path (Such as c:\windows) or when you use it, just type the whole path to the file, eg:
c:\usr\local\wbin\patch.exe -p0 < ..\patchname.patch
#9
Just one other thing I'm not sure of.. where does the patch file itself (daynight.patch) have to be when I run patch.exe and apply it?
I did the patch --help, but that doesn't really clear it up. I have no clue which of those options I'm supposed to be using, or what the proper command line is.. Like, they have the example as an input name and an output name... :shrug: I really just have no idea what I'm looking at. This is really confusing stuff. Guess that left-brain/right-brain stuff is true. I just can't "get it" when it comes to anything relating to programming or code.
Also, you put this step:
4) add the files in this new directory to your torque project
How do you add files to a project? Do I have to add some text to a file or something of that sort?
You're a huge help, John.. It's much appreciated. Thank You. :-)
04/03/2004 (2:29 pm)
Okay.. Almost there!Just one other thing I'm not sure of.. where does the patch file itself (daynight.patch) have to be when I run patch.exe and apply it?
I did the patch --help, but that doesn't really clear it up. I have no clue which of those options I'm supposed to be using, or what the proper command line is.. Like, they have the example as an input name and an output name... :shrug: I really just have no idea what I'm looking at. This is really confusing stuff. Guess that left-brain/right-brain stuff is true. I just can't "get it" when it comes to anything relating to programming or code.
Also, you put this step:
4) add the files in this new directory to your torque project
How do you add files to a project? Do I have to add some text to a file or something of that sort?
You're a huge help, John.. It's much appreciated. Thank You. :-)
#10
As for adding the files to your project, you do that however your IDE works. I wrote that assuming the reader has a familiarity with the basic functions of thier IDE :)
In VisualStudio 6 right click on a folder in the project's file view and ADD FILES TO FOLDER.
04/03/2004 (3:49 pm)
The page I referenced in my original post explains exactly how to use the patch tool. Re-read that :)As for adding the files to your project, you do that however your IDE works. I wrote that assuming the reader has a familiarity with the basic functions of thier IDE :)
In VisualStudio 6 right click on a folder in the project's file view and ADD FILES TO FOLDER.
#11
Ugh...
Nevermind. Forget I asked.
As I already said in my first post.. I've *read* the GG instructions you keep referring to. Several times. Before *and* after I posted here. They didn't make sense any of the times. They make references to things I don't know about. They're talking about "making necessary changes to files" - What changes? What files? I don't know what they're talking about. As I said - I'm *new* to all of this. I've never *done* any of this before. I'm still *learning*. I *tried* to figure it out myself.. I couldn't.
That's why I posted here in the first place - to see if someone could perhaps provide some clarification on the GG docs and help me along a bit - not to be dismissively referred right back to them again.
You can put something written in Chinese in front of me and I won't understand it. Telling me to read it again is not going to make me understand it any better.
Nevermind.. I'll see if I can find some other way to figure it out.
Thanks anyway.
04/03/2004 (5:32 pm)
I'm not using an IDE... from what I understand, from a post by Jeff Tunnell who said in one thread that you only need notepad and a compiler to work with the code, I don't need an IDE. He refers to a compiler that comes packaged with a book about .NET or something like that. Ugh...
Nevermind. Forget I asked.
As I already said in my first post.. I've *read* the GG instructions you keep referring to. Several times. Before *and* after I posted here. They didn't make sense any of the times. They make references to things I don't know about. They're talking about "making necessary changes to files" - What changes? What files? I don't know what they're talking about. As I said - I'm *new* to all of this. I've never *done* any of this before. I'm still *learning*. I *tried* to figure it out myself.. I couldn't.
That's why I posted here in the first place - to see if someone could perhaps provide some clarification on the GG docs and help me along a bit - not to be dismissively referred right back to them again.
You can put something written in Chinese in front of me and I won't understand it. Telling me to read it again is not going to make me understand it any better.
Nevermind.. I'll see if I can find some other way to figure it out.
Thanks anyway.
#12
Assuming you have Torque checked out to c:\Torque, place the patch file in C:\
Click on START->RUN and type in CMD and hit enter
type c: and hit enter
type cd:\ and hit enter
type patch -p0 < ..\patchname.patch and hit enter (I forget the exact name of the patch file)
As for adding the files to the project i'm afraid I can't help you. All I know is how to do it in VisualStudio. If you aren't using an IDE, then you are probably compiling from a makefile. You'd hzave to add the new files into the makefile somwhere but I honestly don't have a clue.
Next time take a deep breath and count to three before you go flying off the handle at someone taking thier time to help you. I was simply hoping you could figure it out for yourself after reading the refernce so I wouldn't have to explain it step by step. I assumed you had not read it to being with since the link to download the patch program was in there which you had missed to begin with.
04/03/2004 (5:49 pm)
The referenced DOC is mainly for people MAKIKNG patches, but there is a section that explains how to apply the patch to test it out. The procedure is the same for someone applying a patch from someone else.Quote:
Testing the Patch
Testing the patch is the most important part of the patch process. To test the patch you'll need a copy of the SDK source at the current HEAD. If you saved a copy off before you started working on the patch, you can make a test copy of the saved SDK and update it to the HEAD revision.
Apply the patch from the command line: (assuming your test copy of the source is in the "c:\test"):
cd c:\test
patch -p0 < ..\patchname.patch
Assuming you have Torque checked out to c:\Torque, place the patch file in C:\
Click on START->RUN and type in CMD and hit enter
type c: and hit enter
type cd:\ and hit enter
type patch -p0 < ..\patchname.patch and hit enter (I forget the exact name of the patch file)
As for adding the files to the project i'm afraid I can't help you. All I know is how to do it in VisualStudio. If you aren't using an IDE, then you are probably compiling from a makefile. You'd hzave to add the new files into the makefile somwhere but I honestly don't have a clue.
Next time take a deep breath and count to three before you go flying off the handle at someone taking thier time to help you. I was simply hoping you could figure it out for yourself after reading the refernce so I wouldn't have to explain it step by step. I assumed you had not read it to being with since the link to download the patch program was in there which you had missed to begin with.
#13
Right.. and I read that part.. In fact, I read the entire page, including the "Testing" part.. I didn't know that I didn't need to worry about anything else.. Because, as I said, I'd never done this before. I don't have any prior knowledge to draw from.
I had taken a deep breath. Two in fact. And I didn't fly off a handle.
All I knew is that I'd said I read the GG docs, that I didn't understand them and could use some help. I was then told to read them again. This frustrated me and I responded accordingly.
No hard feelings. I understand you are/were trying to help and appreciate it. I just didn't understand why you would tell me to read something I'd already said I read through and couldn't follow.
Anyway...
The MakeFile part sounds familiar.. that's what's being referenced when I compile from the command-line. I've started a thread asking for suggestions for a non-VC++ - based IDE.. so hopefully I can get that set up.
Thanks again..
Mike
04/03/2004 (6:37 pm)
Quote:
The referenced DOC is mainly for people MAKIKNG patches, but there is a section that explains how to apply the patch to test it out. The procedure is the same for someone applying a patch from someone else.
Right.. and I read that part.. In fact, I read the entire page, including the "Testing" part.. I didn't know that I didn't need to worry about anything else.. Because, as I said, I'd never done this before. I don't have any prior knowledge to draw from.
Quote:
Next time take a deep breath and count to three before you go flying off the handle at someone taking thier time to help you. I was simply hoping you could figure it out for yourself after reading the refernce so I wouldn't have to explain it step by step. I assumed you had not read it to being with since the link to download the patch program was in there which you had missed to begin with.
I had taken a deep breath. Two in fact. And I didn't fly off a handle.
All I knew is that I'd said I read the GG docs, that I didn't understand them and could use some help. I was then told to read them again. This frustrated me and I responded accordingly.
No hard feelings. I understand you are/were trying to help and appreciate it. I just didn't understand why you would tell me to read something I'd already said I read through and couldn't follow.
Anyway...
The MakeFile part sounds familiar.. that's what's being referenced when I compile from the command-line. I've started a thread asking for suggestions for a non-VC++ - based IDE.. so hopefully I can get that set up.
Thanks again..
Mike
#14
Okay... I've gotten the patch applied (that was simple.. Heh.. all that documentation on the GG site was making my head-spin..
John.. as a possible suggestion, maybe update/alter the steps on your Resource page to specify that people follow only the instructions under "Testing the Patch" on that page and not to worry about the rest? If they're new and read that the way I did, they'll think that all the steps on that page, or at least a good chunk of them, are required.
Granted, most people reading that are likely going to be familiar with what to do.. but I can't believe I'm the first nor last person who's gonna be confused by that..
Thanks..
04/03/2004 (6:55 pm)
Update:Okay... I've gotten the patch applied (that was simple.. Heh.. all that documentation on the GG site was making my head-spin..
John.. as a possible suggestion, maybe update/alter the steps on your Resource page to specify that people follow only the instructions under "Testing the Patch" on that page and not to worry about the rest? If they're new and read that the way I did, they'll think that all the steps on that page, or at least a good chunk of them, are required.
Granted, most people reading that are likely going to be familiar with what to do.. but I can't believe I'm the first nor last person who's gonna be confused by that..
Thanks..
#15
My apoligies for getting a little riled up. I'm just tired and frustrated with my self the last few days. I guess I took it out on you.
04/03/2004 (7:02 pm)
@MikeMy apoligies for getting a little riled up. I'm just tired and frustrated with my self the last few days. I guess I took it out on you.
#16
I *was* frustrated and confused at the situation, but not nearly as much as it may have come across. I just figured it was a lost cause.. lol.
Assuming the frustration is rooted in Torque.. maybe you need a break from it for a day or so? Or are you like me and, despite the fact that you know it's getting under your skin, you're compelled to keep at it anyway?
Thanks again and take care.
04/03/2004 (7:22 pm)
No apologies necessary. The one thing I hate about writing things as opposed to saying them is that the way you read it isn't necessarily the way it's intended.I *was* frustrated and confused at the situation, but not nearly as much as it may have come across. I just figured it was a lost cause.. lol.
Assuming the frustration is rooted in Torque.. maybe you need a break from it for a day or so? Or are you like me and, despite the fact that you know it's getting under your skin, you're compelled to keep at it anyway?
Thanks again and take care.
#17
Okay, I seem to have Eclipse set up properly (it's running through a build right now.. so we'll see if anything blows up while I'm typing this)...
All I need to do now is import the two files for the DayToNight patch into the project (makefile)... Can anyone with knowledge of Eclipse help out with this? I looked at each of the "import" options, but none of them seem to be what I'm looking for.
Thanks in advance!
Mike
04/04/2004 (9:08 am)
UPDATE:Okay, I seem to have Eclipse set up properly (it's running through a build right now.. so we'll see if anything blows up while I'm typing this)...
All I need to do now is import the two files for the DayToNight patch into the project (makefile)... Can anyone with knowledge of Eclipse help out with this? I looked at each of the "import" options, but none of them seem to be what I'm looking for.
Thanks in advance!
Mike
#18
whever i try to run this it continusly tells me that it cant find the patch file :s
any ideas?
(NOTE: command refuses to go to C:\, it goes to C:\documents and settings\owner and i cant get it to default to C:\ )
yea.. i know i suck :p
08/29/2004 (7:48 pm)
Sorry ot dig this thing up but,whever i try to run this it continusly tells me that it cant find the patch file :s
any ideas?
(NOTE: command refuses to go to C:\, it goes to C:\documents and settings\owner and i cant get it to default to C:\ )
yea.. i know i suck :p
Torque Owner John Vanderbeck
VanderGames
Somehow I must have missed your post in the other thread. My apologies.
If you read the GG page on patches though you will see this:
"Windows users can get "patch" as part of the GNU utilities for Win32"
You need to install that. AFAIK WinCVS doesn't include it. It isn't to hard to install though. Once youve installed it, just follow the directions on that GG page for doing patches and you should be all set.