Extendable SuperHero Mod
Custom Compiling Instructions

Why Compile?

The ONLY reason you should be compiling the plugin yourself is if you need to change the define options listed in the next section or you are making modifications to the code. If you are trying to recompile the plugin to change CVARS, DON'T! Use the shconfig.cfg, that's what it is for.

Also you may need to compile heroes if the pre-compiled version is not working or not available.

#define Options

In AMX(x) plugins define options are settings that are used during the compile of the plugin and cannot be changed without re-compiling. They are used in SuperHero to set limits on the variables that hold data during the game. They are located in the superheromod.inc which is an include (and in the include folder) that the core mod and all heroes use. All these options are explained in the file, open it up in notepad and see.

There is also a define option at the top of the superheromod.sma to change it between Vault and MySQL saving.

How to Compile

First thing you need is to Download ( AMX | AMXModX ) the compile package from the forums and extract it into the same folder you extracted superhero into. It should add some files to your scripting (or examples) and include folders.

The scripting (or examples) folder has the source code for the core mod (superheromod.sma) and all the heroes (sh_*.sma). The includes folder has files with functions that can be shared across different plugins.

In the scripting (or examples) folder there should be a compile.exe (compile.bat for AMX). By double clicking the compile.exe you will compile all sma files in the scripting folder. The resulting compiled files are located in the "compiled" folder. Watch for errors on the DOS window when its done compiling.

If you compile the core of the mod the resulting file will be superheromod.amxx (or superheromod.amx for AMX), by default this uses vault saving. You can change it to compile for MySQL by editing the source, there is a define option at the top that is changeable. You either need to rename it to superheromodvault.amxx or change the entry in your plugins.ini to reflect the new plugin name.

To install compiled plugin simply copy (or upload) the amxx files into your servers plugins folder and if they are new plugins add them to the plugins.ini.

Read this for help with installing plugins:
AMXModX Documentation | AMXMod Documentation