Server Issues
Server won't start or crashes immediately
Server won't start or crashes immediately
Symptoms
- Server process exits immediately after starting
- No output in console or log files
- “Segmentation fault” error on Linux
Solutions
Check file permissions (Linux):- Install Win32 OpenSSL v1.1.1g or later from slproweb.com
- Make sure all DLL files are in the same directory or in PATH
Server runs but players can't connect
Server runs but players can't connect
Symptoms
- Server appears in master list but is not joinable
- “Server is not responding” error for clients
- Timeout errors when connecting
Solutions
Verify port forwarding:- Default port:
28960(UDP) - Forward both game port and master server port
- Check router firewall settings
High CPU usage or server lag
High CPU usage or server lag
Symptoms
- Server using 100% CPU
- Players experiencing lag despite good ping
- Server tick rate dropping below 20 FPS
Solutions
Optimize server settings:- Review custom mods for infinite loops
- Use
getCountedFps()andisLagging()functions to detect performance issues - Monitor with:
/rcon status
Memory leaks or growing RAM usage
Memory leaks or growing RAM usage
Symptoms
- Server RAM usage increases over time
- Server becomes unresponsive after hours/days
- Out of memory errors
Solutions
Monitor memory usage:- Plugins must use
Plugin_Malloc()andPlugin_Free()instead of standard malloc/free - The plugin system tracks allocations to prevent leaks
- Unload plugins one by one to identify the culprit
- Use
isArray()to verify variables - Clear large arrays when no longer needed
- Avoid creating massive arrays in loops
RCON not working
RCON not working
Symptoms
- “Bad rconpassword” error
- RCON commands not executing
- Connection timeout to RCON port
Solutions
Verify RCON configuration:- TCP connection on RCON port
- Compatible with tools like
mcrcon - See
hl2rcon.csource for implementation details
Plugin Issues
Plugin won't load
Plugin won't load
Symptoms
- “Could not load plugin” error
- Plugin doesn’t appear in
pluginlist - Server ignores plugin load command
Solutions
Verify file location and name:- Plugin must be compiled for the correct architecture (32-bit)
- Plugin must use the correct plugin API version
- Check plugin documentation for requirements
Server crashes when loading plugin
Server crashes when loading plugin
Symptoms
- Server crashes immediately after loading plugin
- Segmentation fault or access violation
- “Plugin caused exception” error
Solutions
Identify the problematic plugin:- Badly written plugins can crash the server
- Plugin API is designed for speed with minimal safety checks
- Contact plugin author for bug fixes
- Plugins MUST use
Plugin_Malloc()andPlugin_Free() - Never use standard
malloc()/free()or C++new/delete - Plugin system tracks allocations to prevent issues
Can't unload plugin
Can't unload plugin
Symptoms
- “Cannot unload plugin” error
- Plugin remains loaded after unload command
Solutions
Understand plugin types:Plugins fall into categories:- Standard plugins: Can be unloaded anytime
- Library plugins: Export functions to other plugins - CANNOT be unloaded
- Script-library plugins: Export GSC functions - CANNOT be unloaded
- If a plugin exports functions, unloading it would cause crashes when those functions are called
- This is a security/stability feature
- Only way to unload: restart the server
Build Issues
Compilation fails with missing headers
Compilation fails with missing headers
NASM errors during build
NASM errors during build
Scripting Issues
Custom GSC functions not working
Custom GSC functions not working
Symptoms
- “Unknown function” errors in GSC
- New functions from CoD4U not available
Solutions
Verify you’re running CoD4 Unleashed:- Some functions are version-specific
- Review Scripting API for function list
- Use
isDefined()to check if function exists
HTTP/HTTPS requests failing
HTTP/HTTPS requests failing
Symptoms
httpGet()orhttpPost()returning errors- Timeout errors on HTTP requests
Solutions
Check libcurl is linked:- CoD4 Unleashed includes HTTPS support via libcurl
- Requires libcurl compiled with SSL support
- Test with simple HTTP request first
- Server must be able to make outbound connections
- Some hosting providers block outbound HTTP/HTTPS
JSON parsing errors
JSON parsing errors
Symptoms
jsonParse()returns undefined- Boolean values not parsing correctly (fixed in 1.1.1)
Solutions
Use JSON module:- Use online JSON validators
- Ensure proper escaping of quotes
- Verify UTF-8 encoding
- JSON boolean fix was in version 1.1.1
- Update to latest version if experiencing boolean issues
Performance Optimization
FPS and Lag Detection
CoD4 Unleashed provides enhanced FPS monitoring:Protocol Detection
For servers supporting both 1.7 and 1.8 (Steam) clients:Time Functions
Getting Help
If you’re still experiencing issues:Community Forum
Post your questions on the official forum
Documentation
Review the complete Scripting API reference
GitHub Issues
Report bugs and technical issues
Server Logs
Always check
main/games_mp.log for error details