Installation ------------ Upgrade an old installation: If you already had an older version of hcminus installed, no patching is required. Just replace the old hcminus.dll by the new one. Continue with step 5 of the 'new installation'. New installation: The 'SoF.exe' has to be patched. Follow these steps: 1) Put the following files in a directory: SoF.exe patch.exe 2) Run patch.exe. Normally this will only show 'Ready' and no 'Note' or 'Error' messages. Messages like this are ok: Note: SoF.exe already patched to use hcminus.dll Ready Error messages like this are bad: Error: File 'SoF.exe' could not be opened 4) Put the 'hcminus.dll' and the patched 'SoF.exe' on the server and restart SOF. You don't have to reboot the entire PC. 5) Create the following directories in the user directory: sofplus/sv/log sofplus/sv/spawn Logfiles will be written to the log directory Data required for SpawnEntites will be read from/written to the spawn directory Violence trouble: If your server won't work in full violence mode, use the full-violence-hcminus.dll instead of the hcminus.dll. Delete hcminus.dll and rename full-violence-hcminus.dll to hcminus.dll. Cvars ----- Cvar: hc_mode Description: Enable/disable Haxorcist Value: 0: Haxorcist disabled All RCON requests by the Haxorcist server are blocked 1: Haxorcist enabled, normal mode Nothing is blocked 2: Haxorcist enabled, players without client allowed (default) RCON kick requests for players without client are blocked Example: set hc_mode 2 Cvar: hc_check_packets Description: Perform extra checks on received packets Turn this on to have some crash and cheat protection Value: 0: Off (default) 1: On Example: set hc_check_packets 1 Cvar: hc_maxfps Description: Maximum FPS allowed Players with higher FPS will be kicked after about 30 seconds Value: 0: Off (default) 1+: Maximum FPS Example: set hc_maxfps 150 Cvar: hc_exclude_ports Description: Don't treat rcon requests from these ports as Haxorcist requests This is only required if you play SOF on the same PC, or if you run the SOF-logger on the same PC Value: A comma separated list of ports (empty by default) Example: set hc_exclude_ports "28901,28764" Cvar: hc_debug_packet_log Description: For debugging All packets that are sent and received are logged to file One file per socket is created every second After a minute the oldest logfiles will be overwritten This will produce 120 logfiles and might cause lag Use only for debugging or if you want to find out how someone crashes your server The logfiles will be written to /sofplus/sv/log/* Value: 0: Don't log (default) 1: Log Example: set hc_debug_packet_log 1 Cvar: _sp_sv_spawn_read_file_prefix Description: Read data for SpawnEntities from a file /sofplus/sv/spawn/.txt Value: Empty: Disabled Not empty: Enabled Example: set _sp_sv_spawn_read_file_prefix "fixed-" Cvar: _sp_sv_spawn_replace_file Description: Modify data for SpawnEntities /sofplus/sv/spawn/ Value: Empty: Disabled Not empty: Enabled Example: set _sp_sv_spawn_replace_file "replace-no-mpg-no-shotgun.txt" Cvar: _sp_sv_spawn_write_file_prefix Description: Write data for SpawnEntities to a file /sofplus/sv/spawn/.txt Value: Empty: Disabled Not empty: Enabled Example: set _sp_sv_spawn_write_file_prefix "write-" Commands -------- Command: hcplayers Description: This will produce a list of players The HC column indicates if the player is running with the Haxorcist client All players can execute this command, without having to know the rcon password Example: rcon hcplayers Command: hcrequire [fps] Description: Players with matching ip are required to use Haxorcist If FPS is specified, they are only required to use Haxorcist if FPS is higher If multiple ip specifications match, the last match will be used Example: hcrequire 0.0.0.0/0 120 // Any ip, if FPS >= 120 hcrequire 1.2.3.4/32 // 1.2.3.4, FPS does not matter Command: hcrequire_list Description: List all entries that were added with hcrequire Example: hcrequire_list Command: cvar_add_text Description: Add text to a cvar value (maximum lenght allowed is 4096) Example: cvar_add_text welcome_mess "Add this text" Command: cvar_add_newline Description: Add a newline character to a cvar value Example: cvar_add_newline welcome_mess Command: rename_rcon_password Description: Change the name of the 'rcon_password' cvar to something else The new name must be 13 characters long No need to use this if you are running SoF with Haxorcist Example: rename_rcon_password MyNewCvarName Command: uptime Description: Shows server and haxorcist uptime Example: uptime Command: red Description: Moves the player in the specified slot to the red team Example: red 3 Command: blue Description: Moves the player in the specified slot to the blue team Example: blue 3 Command: play Description: Moves the player in the specified slot to play mode Example: play 3 Command: spec Description: Moves the player in the specified slot to spectator mode Example: spec 3 Command: run Description: Turns ALWAYS RUN on for the player in the specified slot Example: run 3 Command: walk Description: Turns ALWAYS RUN off for the player in the specified slot Example: walk 3 Command: kill Description: Kills the player in the specified slot Example: kill 3 Command: modify_spawnentities Description: When this command is executed, spawning of entities during a map change can be altered. Note that this has te be repeated when gamex86.dll is reloaded. The map command reloads gamex86.dll. The gamemap command doesn't reload gamex86.dll. Example: modify_spawnentities set _sp_sv_spawn_read_file_prefix "fixed-" set _sp_sv_spawn_replace_file "replace-no-mpg-no-shotgun.txt" set _sp_sv_spawn_write_file_prefix "write-" gamemap dm/jpnctf1 Example dedicated.cfg --------------------- // This is an example dedicated.cfg with just // enough settings to make the server work // The boring stuff... set deathmatch 1 set public 1 set dmflags 4 set sv_maplistfile ravdm set hostname "Example server" zero password zero spectator_password set timelimit 20 set fraglimit 0 set g_movescale 1.0 set cheats 0 set maxclients 4 set maxspectators 4 set logfile 3 // Now the interresting stuff... // Set rcon password set rcon_password ExamplePassword // Added this one for people just using the example :-) // Remove after you changed the ExamplePassword above // and the rcon_12345678 below zero rcon_password // Rename rcon_password cvar for anti-hack (must be 13 characters long) rename_rcon_password rcon_12345678 // Enable checks for some extra crash protection set hc_check_packets 1 // Don't log all netword traffic (enable to investigate crashes) set hc_debug_packet_log 0 // Set Haxorcist mode to 2, anyone allowed set hc_mode 2 // Set maximum FPS // Haxorcist already limits to 150, but players without Haxorcist can use // higher FPS without this set hc_maxfps 150 // Set welcome message // You can have 10 lines max // Keep the total lenght below 256 characters set welcome_mess "Welcome to the BlaBla clan SOF server" cvar_add_newline welcome_mess cvar_add_newline welcome_mess cvar_add_text welcome_mess "Here are two lines that are here just to show that a" cvar_add_newline welcome_mess cvar_add_text welcome_mess "lot of text can be in the server welcome message" cvar_add_newline welcome_mess cvar_add_newline welcome_mess cvar_add_text welcome_mess "Get the Haxorcist here:" cvar_add_newline welcome_mess cvar_add_text welcome_mess "http://www.clanplay.com/haxorcist/" cvar_add_newline welcome_mess cvar_add_newline welcome_mess cvar_add_text welcome_mess "Get your color name here:" cvar_add_newline welcome_mess cvar_add_text welcome_mess "http://www.elitefx.com" // Change map to make sure the new welcome message will be shown // The map command should always be the last thing in your dedicated.cfg map dm/nycdm1 Example output for hcplayers ---------------------------- ]rcon hcplayers 192.168.1.133:28920: print Haxorcist players (hc_mode = 2; hc_maxfps = 130; hcminus 0.009) Slot HC FPS Ping Frag Name ---- --- ---- ---- ---- -------------------------------- 0 YES 110 10 0 Joan Mullins 1 NO 30 50 4 bennyboy 2 NO 19 87 6 Imbecil sk. 3 NO 29 123 12 IrOnFist_13 4 NO 25 94 5 love parade }CZ 5 NO 29 78 32 ogri 6 YES 60 69 15 ///MãÇHÏNÊ 7 NO 28 105 10 Moose 8 NO 30 177 11 pittbul PL