Forum

Newbie questions about CSQC

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Newbie questions about CSQC

Postby GaciX 69 » Sat Apr 10, 2010 9:42 pm

Alright, after I have spoken with the rest of the team members with whom I make my mod. I have decided to take the "CSQC road" and incorporate it to my mod. Although it might be like a "suicidal move" to somebody like me (with only 2 months of experience poking around with QuakeC code) to take it and try to do some stuff with it, I'm willing to take the risk to bypass the annoying standard Server-Sided QuakeC limits.

I made some research about CSQC beforehand, but as you might aware of, there isn't too much info about it (or at least some "practical" info instead of technical stuff that I don't really care much of). I was trying to find some mods that use it but Google searches doesn't help much (much of the search results bring me back to Inside3D). I was also looking for some answers to my questions about CSQC, but I really didn't found much info, neither some answers (or I really didn't search enough, thing that I doubt).

Well, these are my questions:

1.- I have read somewhere in these forums that is possible to have standard SSQC code along with CSQC code. How do I do this? Do I have to have a separate SSQC progs.dat along with a CSQC csprogs.dat? Or i have to declare all SSQC files in the CSQC progs.src?

2.- Related to the question above, I'll do the oposite to everybody does in CSQC: I want to have as much SSQC code as possible and keep the CSQC code at minimum and use it only for specific things (like modifying the HUD, doing my "inventory system" idea, making functions to add an select weapons in my massive weaponry system, etcetera). Is this possible? Is there a chance to crash the game if I merge the SSQC code and files with the csprogs.dat?

3.- I read that DarkPlaces' CSQC is somewhat different to FTE's CSQC. Since my mod is going to be DP-exclusive. Is there a thing that I should be aware of while coding in DP's CSQC? Any mayor difference? Any tip about it?

4.- I was looking for some mods with CSQC code in. I only found Nexuiz. Although Nexuiz has a very tidy code, it has a lot of complex stuff that I don't really need and is hard to learn something from it. So I'm asking if somebody can give me some names of mods that use CSQC. I'm exactly looking for CSQC mods with modified HUD and custom weapons if possible. But this is not a requirement for me, any mod that has CSQC in it with more simpler code than Nexuiz can do the job, I'm just looking for ideas and to learn how to do stuff on it.

5.- About savegames. I read that CSQC doesn't save games. I was thinking in importing the SSQC's save function or using FRIK_FILE or both. Do you think that those would solve my problems? Or I'm just speaking nonsense about this?

Well, those are my questions for now. Any help is appreciated and excuse me for my bad english.

Thanks in advance... :wink:
User avatar
GaciX 69
 
Posts: 11
Joined: Sat Feb 27, 2010 4:33 pm
Location: Chile

Postby Chip » Sat Apr 10, 2010 10:12 pm

QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby r00k » Sun Apr 11, 2010 4:32 am

Here's an easier link: http://kleshik.svn.sourceforge.net/view ... z?view=tar

Wow I downloaded it and played thru E1M1, WOAH now im scared to turn off the lights! :P
Alot of nice work in there..and alot of reference on the csqc stuff.
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby Chip » Sun Apr 11, 2010 10:47 am

r00k wrote:Here's an easier link: http://kleshik.svn.sourceforge.net/view ... z?view=tar

Wow I downloaded it and played thru E1M1, WOAH now im scared to turn off the lights! :P
Alot of nice work in there..and alot of reference on the csqc stuff.


Yup. That's the next thing that goes into OpenQuartz 2. I have combined QC, QWQC, CSQC and some more nice stuff.
QuakeWiki
getButterfly - WordPress Support Services
Roo Holidays

Fear not the dark, but what the dark hides.
User avatar
Chip
 
Posts: 575
Joined: Wed Jan 21, 2009 9:12 am
Location: Dublin, Ireland

Postby Spike » Sun Apr 11, 2010 11:05 am

1: csqc is additional to ssqc. They don't need to share absolutely everything. They are independant modules.

2: Then put only the minimal refresh stuff in there, and a hud renderer. You do not need to create/remove any entities at all.

3: the differences are more annoying than major.

4: there's fte's csqctest - http://fteqw.svn.sourceforge.net/viewvc/fteqw/trunk/quakec/csqctest/src/

5: If you do anything that requires saving in csqc, you're doing something wrong.
The csqc state is meant to be replicated from the ssqc state. ssqc is the ultimate authority on the game. If you're tracking kills clientside, then you also need to track kills serverside for players that connect to a game that is underway.
If you're making a hud, the only state you have are the stats from the ssqc's player entity which will be automatically replicated as soon as you load the game.
Don't save clientside. Save serverside and replicate.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby GaciX 69 » Sun Apr 11, 2010 11:11 pm

Thanks Chip and r00k for the mod. Features like the ones present in Kleshik are the things that I'm looking for to learn to do in CSQC...

Also thanks Spike for answering my questions. Now I can pretty much start doing some experiments in CSQC and try to make some of the features that I'm planning to do in my mod.

However if you guys know some other remarkable mod with CSQC code on it, please let me know in this thread...
User avatar
GaciX 69
 
Posts: 11
Joined: Sat Feb 27, 2010 4:33 pm
Location: Chile

Postby c0burn » Mon Apr 12, 2010 2:02 pm

Nexuiz
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England

Postby Error » Mon Apr 12, 2010 8:10 pm

he mentioned Nexuiz already
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Postby avirox » Tue Apr 13, 2010 12:36 pm

If you want a base code to get started with, I suggest taking a look at Urre's tutorials and some of the other aforementioned pojects like kleshik and nexuiz (though the latter may give you headaches). Also, CSQC GUI has a pretty solid base for a "Clean" CSQC kinda project..

viewtopic.php?t=1560
avirox
 
Posts: 137
Joined: Wed Aug 16, 2006 3:25 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest