This is a little project of mine which helps me keep organized when including the many different header files and cpp files in a gmod module project. Simply rename the folder and files and follow the instructions inside of main.cpp in order to configure your template to compile with certain libraries. All the required libraries can be added to the module by simply uncommenting one line.
The following libraries supported are:
- Main GMOD header files
- Detours 1.5 and 2.1
- A small library of function(s) I’ve been adding and will continue to update
**Fixed some memory leaks and crashes for select circumstances
****Fixed crashes when loading onto multiple Lua states
*Added gLua_Server, gLua_Client, and gLua_Menu to denote each state the module is run on
*Fixed compile errors when including the base headers more than once
**Added an example of a basic print function using C++
*Added the ability to turn off the info message when the module loads, set default to “No”
If you have any suggestions or problems please comment below!
If you are missing interface.h, make sure you have added:
to your Tools -> Options… -> Projects and Solutions -> VC++ Directories -> Include files
to your Tools -> Options… -> Projects and Solutions -> VC++ Directories -> Library files