Compiling the Source Code - Subject9x/battleMETAL GitHub Wiki

How To: Compile Game code

Primer from insideqc.com

http://www.insideqc.com/qctut/started.shtml

/metaldata directory structure

\<path>\<to>\<game>\
[.exe, .dll, etc] \metaldata \ -> holds ALL game assets .pak3 etc

1) Create Source Code Folder in \metaldata \

  • Name this folder anything you'd like, I used 'qc'
  • Clone the 'Master' branch of this repo to the 'qc' folder.

2) Inside 'qc' you will see the .exe called:

  • fteqcc.exe, this is the quake C compiler.

3) Double Left Mouse Button Click the fteqcc.exe

  • This will open the exe and show you the compiler's UI
  • click the 'Compile' button to compile code.

4) Compiled code is placed in a file called 'progs.dat'

  • this is the 'server' code for the game, and is housed in /metaldata /
  • to compile the Menu System, see the /metaldata /qc/menu/ folder (menu.dat)
  • to compile the mission briefing menus, see the /metaldata /qc/client/ folder (csqc.dat)
⚠️ **GitHub.com Fallback** ⚠️