Programming: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 2: Line 2:


# Make sure your .cpp file contains #include "cbase.h" before any other includes
# Make sure your .cpp file contains #include "cbase.h" before any other includes
[[File:wikipires_includes.PNG|400px]]
# Make sure the last include is #include "tier0/memdbgon.h"
# Make sure the last include is #include "tier0/memdbgon.h"
# Repeat this for all the cpp files you want to add :P before proceeding...
# Repeat this for all the cpp files you want to add :P before proceeding...
# Ensure your files is in an appropriate directory. e.g. ...\src\game\server\empires\my_cpp_file.cpp
 
 
# Ensure your files are in an appropriate directory. e.g. ...\src\game\server\empires\my_cpp_file.cpp
[[File:wikipires_file_locations.PNG|400px]]
 
# Make an entry in the server_hl2mp.vpc file for your file e.g. $File "empires\my_cpp_file.cpp"
# Make an entry in the server_hl2mp.vpc file for your file e.g. $File "empires\my_cpp_file.cpp"
 
[[File:wikipires_vpc_edit.PNG|400px]]
TODO: add pictures showing this

Latest revision as of 04:08, 14 April 2017

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

  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

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