.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...

Post news Report article RSS Feed "dectran" utility release.

Announcing the release of the dectran utility version 2.0.

Posted by numbersix on Apr 11th, 2008

For anyone that works with decompiled progs.dat in quake 1, this will make coding much easier. I developed it for working with bot code for the Chaos mod.

Refer to the download section to acquire this quake 1 utility.

In summary dectran is a collection of tuned sed scripts that remove most of proqcc.exe decompiler formatting that makes working with the code more difficult. All windows ^M end of line tags are removed. Useless X.000 and X.500 decimals are cut down to X and X.5. Many extraneous compiler comments such as "float testcase /* 0.000 */;" are removed providing "float testcase;"

The best part is a separate script that has an interactive guide allowing constants to be removed from code fragments like this:

if ( deathmatch ) {^M
intermission_exittime = (time + MOVETYPE_FLY);^M
} else {^M
intermission_exittime = (time + FL_SWIM);^M

translates to:

if (deathmatch)
intermission_exittime = (time + 5);
intermission_exittime = (time + 2);

Since flags and movetypes are never added to time for any reason, this is perfect and much nicer to look at. The script also attempts to repair constants that dont need to be changed.

This code is released under the GPL.

- Mr. Cataboligne

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Aug 18, 2011
Open to all members
Send Message
Join this group
Group Watch
Track this group
Post news
Report Abuse
Report article
Related Groups
qc Hardware & Tech group with 29 members