Forum

"Omg! Learn CSQC!"

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

"Omg! Learn CSQC!"

Postby Error » Wed Feb 10, 2010 5:48 am

Ok, here's the problem... I've scoured the internet looking for some sort of real CSQC documentation or good HUD tutorial... and I've found damn near nothing.

Every time I show my programming work in #darkplaces or #qc, someone at some point thereafter says "that would work better in CSQC". So, after that happens, I attempt to find some way of learning it. It's never there. These are the same people that NEVER offer a site or file with which to start.

CSQC has to be the most useful thing this community has NOT learned/utilized.

So, I beg, can we have the CSQC guru's start making some tutorials for basic menu drawing, hud drawing/positioning, and even some shared entity stuff?

Or, add things to the quakery wiki? I'm sick of seeing commented code where it says "this does this with this"... I want to know how to "do this with this". Examples are amazing!

Thanks folks. :wink:
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Postby ceriux » Wed Feb 10, 2010 6:56 am

yes please, i have to admit the basic tutorial i made well sucks, apparently i didnt add the whole thing. and i no longer have the source and since someone helped me make it... i really dont remember what was done to get it to actually work. some please make a couple basic tutorials on csqc and hud drawing PLEASE!
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Urre » Wed Feb 10, 2010 2:37 pm

Tutorial for basic shared entities written by me (tested in DarkPlaces)

HUD tutorial by avirox (FTE specific)

Although these two are only tested on one of two possible engines, it shouldn't be hard to modify the code to work on the other.

Another way to learn is to actively ask about things you don't understand in chat, rather than forums, because it can take a lot of explaining in some cases, if it's very far from how you imagine it'd work.
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Postby ceriux » Wed Feb 10, 2010 4:28 pm

that hud tutorial is pretty far from basic if you ask me.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby Teiman » Wed Feb 10, 2010 5:12 pm

Maybe something can be done. Something like a "cheatshet" with a list of the builtins, and constants. And take one of these already existing tutorials, and make something even more simple.

I must think about this topic..
Teiman
 
Posts: 309
Joined: Sun Jun 03, 2007 9:39 am

Postby c0burn » Wed Feb 10, 2010 5:19 pm

I have an updated "blank" csqc for DP only (should work on FTE with some modifications) with some typo fixes and other random bits I tweaked on top of the csqc-scratch.zip Urre was using.

I also made it use id 1.06 style QC instead of the C style which fteqcc supports (semicolons after functions, "void() blah = " instead of "void blah() " etc, which is probably "better" for people new to csqc. Plus it's how I like it.

Problem is, I then started coding on top of it, so I'll remove my cruft and upload it when I have the time.

Same goes for my blank MenuQC (contains just init functions and a cursor) which should work on DP/FTE.
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England

Postby ceriux » Wed Feb 10, 2010 6:18 pm

yes please do that, if you dont mind when u do. ill upload them to my quake group on moddb as well.
User avatar
ceriux
 
Posts: 2223
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Postby avirox » Wed Feb 10, 2010 9:09 pm

The CSQC GUI tutorial which Urre linked to actually contains a "bare-bones" csqc that can load with either FTE or DP.

Also, as for complexity - it's actually not that complicated at all. Plus everything I'm doing is pretty much described in the post, as well as how to manipulate it.

I will try to getting to post my tutorial for third-person camera ala Diablo/Zelda some day..
avirox
 
Posts: 137
Joined: Wed Aug 16, 2006 3:25 pm

Postby xaGe » Fri Mar 19, 2010 5:09 am

..Just curious if you have gotten any where with this c0burn? Something like that could be useful. :)


c0burn wrote:I have an updated "blank" csqc for DP only (should work on FTE with some modifications) with some typo fixes and other random bits I tweaked on top of the csqc-scratch.zip Urre was using.



..General csqc knowledge is good, but something DP specific would be better for me I feel. I'm not even looking to make something magically complicated. For the moment (as in the last 2 years) I just want to hide the default quake hud in DP for a mod and add a few new hud elements to graphically display health, ammo, or mana.. "ALA" Darsana.
Last edited by xaGe on Tue Mar 23, 2010 5:31 am, edited 2 times in total.
User avatar
xaGe
 
Posts: 461
Joined: Wed Mar 01, 2006 8:29 am
Location: Upstate, New York

Postby Error » Fri Mar 19, 2010 5:30 am

ditto.
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest