2.1 KiB
2.1 KiB
GameManager
Role
Panel/modules/gamemanager is the core customer server control module. It owns:
- start
- stop
- restart
- logs
- server monitor
- update flow hooks
- RCON integration
- status display
Important Files
Panel/modules/gamemanager/module.phpPanel/modules/gamemanager/home_handling_functions.phpPanel/modules/gamemanager/server_monitor.phpPanel/modules/gamemanager/start_server.phpPanel/modules/gamemanager/stop_server.phpPanel/modules/gamemanager/restart_server.phpPanel/modules/gamemanager/log.phpPanel/modules/gamemanager/view_server_log.phpPanel/modules/gamemanager/get_server_log.phpPanel/modules/gamemanager/update_server.php
Start / Stop / Restart
The module calls the agent through Panel/includes/lib_remote.php.
Current shape:
- start ->
universal_start - stop ->
remote_stop_server - restart ->
remote_restart_server
The right behavior is:
- start shows
STARTINGas soon as the managed session exists - online status requires the process/session plus the game port
- restart should be stop, wait, start
- stop should not be treated as complete until the session/process is actually gone
Status Reporting
The current flow now points toward agent-truth status reporting via:
remote_server_statusget_agent_server_statusinhome_handling_functions.phpserver_status_without_decryptin both agents
Useful state labels:
OFFLINESTARTINGONLINESTOPPINGUNRESPONSIVEUNKNOWN
Query checks should remain optional metadata only.
Log Viewer
Relevant files:
Panel/modules/gamemanager/log.phpPanel/modules/gamemanager/view_server_log.phpPanel/modules/gamemanager/get_server_log.php
The log view should be treated as live, AJAX-updated output rather than a full page reload workflow.
What This Module Depends On
config_gamesfor startup parameters and protocol definitionslib_remote.phpfor agent callsuser_gamesfor server home recordsrconfor command support where availableaddonsmanagerfor content/mod interactions