Forum

Adding CSQC Support to a Quake Engine.

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Postby Spike » Fri Jun 26, 2009 7:58 pm

ignore pr_csqc.c - that file is entirely new and should be, for the most part, a drop in addition. It does interact with the rest of the engine a bit, but hopefully not too drastically.

If you get gnu diff/patch you can do:


diff csqcwinquake vanillawinquake -r -u > moo.diff
cd myengine
patch -p 1 < ../moo.diff

hurrah for commandlines.
You need the apps to be in your path.


Any conflicts will need to be merged by hand. They'll be marked with <<<<< blah ==== blah >>>>> type characters so your compiler will complain nice and loud if it there is a conflict in there.


Be sure to back up your current engine version first.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Team Xlink » Fri Jun 26, 2009 8:45 pm

I just noticed I already have cygwin installed. So how would I go about using creating a diff file with Cygwin?

These are the path names to the sources.

E:\QuakeEngine\Kurok

E:\QuakeEngine\WinQuakeCSQC\WinQuake

Cygwin is on the E drive as well.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Spirit » Fri Jun 26, 2009 8:59 pm

Sorry if I curb the enthusiam but is there really a remote chance that merging such patch with a Fitzquake-derivate (unless Kurok changed its engine) will lead to an easy CSQC implementation? :shock:
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby Team Xlink » Fri Jun 26, 2009 9:12 pm

Ok In Cygwin This is what I got.

I was in

UserName@PCName /cygdrive/e/Engine

I typed in

diff Kurok WinQuake -r -u > CSQC.diff

It said bash: diff: command not found

Then in the E/QuakeEngine directory it created a
0 KB DIFF File named CSQC.diff

It doesn't do anything tho.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Team Xlink » Fri Jun 26, 2009 9:19 pm

Is there one with a user interface? Or even one that will just copy the Functions I get when I searched Spike and CSQC in the proper place in the other files?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Downsider » Fri Jun 26, 2009 10:05 pm

Holy shit this makes my life a thousand times easier. I was considering porting directly from FTE or DarkPlaces into GLQuake, but that link you posted, r00k, is excellent.
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby Team Xlink » Fri Jun 26, 2009 10:44 pm

Downsider?
I am wondering what you are going to use to make all of the changes? It would be nice if you could post or pm me please? I can't get the diff to work, Maybe you could help me with it?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Downsider » Fri Jun 26, 2009 11:34 pm

I'll be porting by hand.. Mainly because Kurok, not to mention the PSP itself, is going to prompt some changes..
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby MeTcHsteekle » Sat Jun 27, 2009 12:37 am

hmm i think winmerge might be something you want, i think its a comparison maker-delio-thing... http://winmerge.org/ i think i used it before :O
bah
MeTcHsteekle
 
Posts: 399
Joined: Thu May 15, 2008 10:46 pm
Location: its a secret

Postby Team Xlink » Sat Jun 27, 2009 1:06 am

So I should do it by hand, or use winmerge?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Team Xlink » Sat Jun 27, 2009 1:13 am

I got the cygwin diff to work.
It turns out I didn't have the correct packages installed.
I know have the patch file and have to apply it so I can test it out.
should I try using normal Quake source as a base file and choose the psp one as the other one and the CSQC one as the new one?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Dr. Shadowborg » Sat Jun 27, 2009 3:13 pm

r00k wrote:http://www.quakeone.com/qrack/csqcWinQuake.zip

Here is a winquake implementation of CSQC written by Spike i believe.


Awesome. :D

I might actually start messing around with CSQC now that this is available. :D
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby Team Xlink » Sat Jun 27, 2009 3:53 pm

I guess I will do this by hand.
Thankyou rook for the link.
Thankyou Spike for the Help.
I hope it all works well.

Thankyou!

Also, So If I am going to do this by hand, then does that mean I will only copy the functions that are teh results of the search for Spike and CSQC?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby r00k » Sat Jun 27, 2009 4:11 pm

Well I use ExamDIFF Pro, which is for windows and has a nice interface. The window shows side by side line by line with colored highlights over the changes. This also helps me backtrack the next morning after a late night coding to see what i messed up!
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby Team Xlink » Sat Jun 27, 2009 4:18 pm

Does it work good?
Will it make the changes to the code?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

PreviousNext

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest