Forum

QC Folder Structure

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

QC Folder Structure

Postby Junrall » Fri May 21, 2010 12:06 am

How do you folks structure your working folder... in regards to qc files, progs.src, and progs.dat?

Do you place all of your qc files, progs.src, and progs.dat into a single folder? How many of you separate your qc files into separate folders?

I, personally, like all of my qc files and .src file in one folder. I like having progs.dat compiled into my mod folder under Quake:
Code: Select all
Quake Folder
           |
     My Mod Folder
                 |
                 progs.dat
                 QC Files Folder
                               |
                               progs.src
                               ai.qc
                               boss.qc
                               (and so on...)

Who here has their qc files located entirely out of the Quake directory?

Lol, I know these sound like noob questions, but really they aren't! I'm creating my own qc editor. (I know... yet another one?! :lol: )
I like one or two features of other programing editors, but have yet to find the same features packed into one editor. So, I'm attempting to make my own... one that is simple, has my favorite features that are easy accessible, and be able to utilize the progs.src file live.
Anyways... If I should ever release this "monstrosity" I would like it to be flexible in regards to where a user's files are located. And so, I ask the above questions to get a feel for how people like to manipulate their qc files.

Hopefully, by this weekend, I will be able to post some images in What are you working on? thread.
Good God! You shot my leg off!
User avatar
Junrall
 
Posts: 191
Joined: Mon Sep 21, 2009 12:27 am
Location: North West Oregon, USA

Postby Spike » Fri May 21, 2010 9:09 am

quake/gamedir/src/progs.src
qc files in the same dir as the src file.
notepad to edit qc code
fte's 'compile;restart' console command for the qcc, resulting in the progs.dat itself being saved in the user's home dir somewhere else entirely. which is slightly annoying, but hey
I do separate qc files for ssqc/csqc/menu/common, in which case its a separate sub directory for each, the src files are always in gamedir/src/ though. no real need for other distinctions, generally.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby gnounc » Fri May 21, 2010 9:40 am

I make a copy of my quake folder...rename it something like


Code: Select all
quakeTest_Folder
     |         |
quake.exe     ID1
                |
        mod_source_folder
                         |
                         compiler.exe


using Qcide to edit the files (associated with .qc)
and a shortcut to my compiler and quake engine on the taskbar.

That way, I can have the qc file open to edit, and when I'm done
I click the compiler shortcut, progs.dat appears in the id1 folder where it should be, and then I click quake.exe and bam I'm playing my mod

(yes I know..but I'm too lazy to make a bat file)
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Postby Sajt » Fri May 21, 2010 4:43 pm

Spike wrote:quake/gamedir/src/progs.src
qc files in the same dir as the src file.
notepad to edit qc code
fte's 'compile;restart' console command for the qcc, resulting in the progs.dat itself being saved in the user's home dir somewhere else entirely. which is slightly annoying, but hey
I do separate qc files for ssqc/csqc/menu/common, in which case its a separate sub directory for each, the src files are always in gamedir/src/ though. no real need for other distinctions, generally.


I do this, except the source dir is called either qc or qcsrc, depending on the weather. I use Notepad or MSVC6 for editing now. It sucked back in the Win98 days, when Notepad couldn't edit a file larger than 32KB or so (usually client.qc). Then again, Notepad has always been about 20 years behind the times. The WinXP one still has annoying wordwrap glitch when saving (of course you shouldn't use wordwrap when coding).
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Dr. Shadowborg » Fri May 21, 2010 5:00 pm

Here's how I do it these days:

quake/gamedir/src/progs.src
quake/gamedir/src/(subfolders for specific stuff, i.e. drs, fbx, frikac, wazat, etc.)

I use programmer's notepad.
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest