Inside3D!
     

Newbie questions about CSQC

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
GaciX 69



Joined: 27 Feb 2010
Posts: 11
Location: Chile

PostPosted: Sat Apr 10, 2010 9:42 pm    Post subject: Newbie questions about CSQC Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Chip



Joined: 21 Jan 2009
Posts: 314
Location: Romania

PostPosted: Sat Apr 10, 2010 10:12 pm    Post subject: Reply with quote

Kleshik for DP - http://sourceforge.net/projects/kleshik/files/
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake
Back to top
View user's profile Send private message Visit poster's website
r00k



Joined: 13 Nov 2004
Posts: 483

PostPosted: Sun Apr 11, 2010 4:32 am    Post subject: Reply with quote

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

Wow I downloaded it and played thru E1M1, WOAH now im scared to turn off the lights! Razz
Alot of nice work in there..and alot of reference on the csqc stuff.
Back to top
View user's profile Send private message
Chip



Joined: 21 Jan 2009
Posts: 314
Location: Romania

PostPosted: Sun Apr 11, 2010 10:47 am    Post subject: Reply with quote

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

Wow I downloaded it and played thru E1M1, WOAH now im scared to turn off the lights! Razz
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.
_________________
My Projects: Quake 1 Mods | OpenQuartz 2 | ChipQuake
Back to top
View user's profile Send private message Visit poster's website
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Sun Apr 11, 2010 11:05 am    Post subject: Reply with quote

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.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
GaciX 69



Joined: 27 Feb 2010
Posts: 11
Location: Chile

PostPosted: Sun Apr 11, 2010 11:11 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message Visit poster's website
c0burn



Joined: 05 Nov 2004
Posts: 158
Location: Liverpool, England

PostPosted: Mon Apr 12, 2010 2:02 pm    Post subject: Reply with quote

Nexuiz
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Mon Apr 12, 2010 8:10 pm    Post subject: Reply with quote

he mentioned Nexuiz already
_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
avirox



Joined: 16 Aug 2006
Posts: 109

PostPosted: Tue Apr 13, 2010 12:36 pm    Post subject: Reply with quote

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..

http://forums.inside3d.com/viewtopic.php?t=1560
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group