You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The result is always the same, the server crashes immediately and this is logged:
Jan 06 03:06:08 cod4x start.sh[140896]: Command execution: promod Invoked by: XXXX InvokerSteamID: XXXX Power: 1
Jan 06 03:06:08 cod4x start.sh[140896]: Sys_Error: Attempt to call a script added function without a registered callback: maps/mp/gametypes/_callbacksetup::CodeCallback_ScriptCommand
Jan 06 03:06:08 cod4x start.sh[140896]: Maybe you have not used addscriptcommand() like it is supposed to use?
// Allow players to change r_fullbright, cg_fovscale and promod vision setting with script command or via rcon interface ( 1-yes ; 0-no )
set cmd_fov "1"
set cmd_fps "1"
set cmd_promod "1"
// If above CMD_XYZ settings are set to 0 it will default to these ( force players to play at that vision settings )
// If you want to force either FPS or PROMOD it is recommended that you disable both FPS and PROMOD command
// if fs_players / mysql is set to 1, players will start with these settings
set default_fov "2" // 0-2, 2- fovscale 1.25, 1- fovscale 1.125, 0- fovscale 1.0
set default_fps "0" // 1-enable, 0-disable
set default_promod "1" // 1-enable, 0-disable
// Enable rcon commands to change vision settings ( for B3 and other 3rd party admin tools ) ( 1-yes ; 0-no )
set rcon_interface "1"
The text was updated successfully, but these errors were encountered:
I managed to resolve this by editing main_shared/maps/mp/gametypes/_callbacksetup.gsx, there in the bottom of the file the function CodeCallback_ScriptCommand was missing for some reason. After copying it from this repository, the server no longer crashes.
The result is always the same, the server crashes immediately and this is logged:
In
main_shared/code/scriptcommands.gsx
:In my server config:
The text was updated successfully, but these errors were encountered: