Forum

Program that compiles QC and progdefs.q1 ?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Program that compiles QC and progdefs.q1 ?

Postby ScatterBox » Thu Nov 07, 2013 10:10 pm

Hello! :D I was wondering if there was a QuakeC Compiler that compiled the QC while also generating a progdefs.q1 file (for the engine).

I need this because I started re-coding QC from scratch since I don't need a lot of Quakes original code and it was taking up a lot of unnecessary space. (500kb slimmed down to 40kb)

I did some google searches and from what I gather the original QCCompiler does this, but I couldn't get it to compile in dosbox. :? Anyone know a newer compiler that could do this for me?

Thanks for the help! :)
User avatar
ScatterBox
 
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm

Re: Program that compiles QC and progdefs.q1 ?

Postby Spike » Fri Nov 08, 2013 12:04 am

fteqcc -progdefs
will write out a progdefs.h file
I do urge you to consider the ramifications of the change. Your engine will not be able to load vanilla/third party mods, and your mod will not work in other engines. There isn't any going back (or there is, but there's a heck of a lot of work involved and defeats the point in the exercise)...
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Program that compiles QC and progdefs.q1 ?

Postby ScatterBox » Fri Nov 08, 2013 12:17 am

Spike wrote:fteqcc -progdefs
will write out a progdefs.h file
I do urge you to consider the ramifications of the change. Your engine will not be able to load vanilla/third party mods, and your mod will not work in other engines. There isn't any going back (or there is, but there's a heck of a lot of work involved and defeats the point in the exercise)...


Honestly it's better this way since this mod is using my own custom engine built from the Quartal engine (or Kurok). Plus it's for PSP and so there really is no engine alternatives for PSP mods. :P It's also good because my mod isn't really going to be meant for other people to mod it. Thanks for your feedback! :D And the progs work great in game now. (insane speed difference)

:o
User avatar
ScatterBox
 
Posts: 50
Joined: Sun Oct 13, 2013 7:53 pm

Re: Program that compiles QC and progdefs.q1 ?

Postby Spike » Fri Nov 08, 2013 12:35 am

if you're not retaining compat in any way, and rewriting the gamecode from scratch, you might actually be better off ditching qc entirely. Some native oo-esque language like c++ should run faster. This would require updating the entire engine with each gamecode change however, I don't know how annoying that may / may not be with the psp.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: Program that compiles QC and progdefs.q1 ?

Postby Max_Salivan » Fri Nov 08, 2013 10:28 am

Spike wrote:fteqcc -progdefs
will write out a progdefs.h file

i always used frikqcc for generating progdefs :lol:
I did not know about -progdefs

ScatterBox,it looks like you want to combine DQuakePlus and Quartal Engine for this
http://www.youtube.com/watch?v=niBHG3whTtU
Sorry for my english :)
Max_Salivan
 
Posts: 93
Joined: Thu Dec 15, 2011 1:00 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest