From Empires Wiki
Revision as of 14:08, 13 April 2017 by VulcanStorm (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to get your code to compile on the gitlab runners.

  1. Make sure your .cpp file contains #include "cbase.h" before any other includes

Wikipires includes.PNG

  1. Make sure the last include is #include "tier0/memdbgon.h"
  2. Repeat this for all the cpp files you want to add :P before proceeding...

  1. Ensure your files are in an appropriate directory. e.g. ...\src\game\server\empires\my_cpp_file.cpp

Wikipires file locations.PNG

  1. Make an entry in the server_hl2mp.vpc file for your file e.g. $File "empires\my_cpp_file.cpp"

Wikipires vpc edit.PNG