OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
rcon_drop_test Namespace Reference

Functions

 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
str RCON = 'droppw'
str MAP = 'mp_toujane'

Detailed Description

A drop error raised by an rcon command must not take the server down.

    python3 scripts/rcon_drop_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH]

Starts the server in LAN mode with developer 1 (which registers the "error"
command) and a temporary home folder, sends "rcon error drop", which raises
Com_Error(ERR_DROP) while rcon output is redirected to the client. The
server must stay up, report the error in its log and leave no crash report.
Exits with 0 when all of that holds. With no map running the server answers
no packets, as the original does, so the map cannot be loaded again by rcon.

Function Documentation

◆ main()

rcon_drop_test.main ( )

Variable Documentation

◆ MAP

str rcon_drop_test.MAP = 'mp_toujane'

◆ RCON

str rcon_drop_test.RCON = 'droppw'

◆ ROOT

rcon_drop_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))