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

Classes

class  Run

Functions

 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dict DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}
str RCON = 'twopw'
str G_SPEED = '300'
str SMALL_LOG = 'small games log\n'

Detailed Description

Two players on the dedicated server: join, play, leave, come back, get kicked.

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

Starts the server in LAN mode on tdm with developer 1, which makes a script
error stop the map, and a temporary home folder, joins two
clients of cod2client.py, has both send commands, disconnects the first one
and joins it again, and kicks the second one with rcon. After every step the
server must still answer getinfo; at the end its log must hold no crash
report or script error. g_speed set on the command line must survive the
game's registration, and a games_mp.log under g_logRotateSize must not be
rotated. Exits with 0 when all of that holds.

Function Documentation

◆ main()

two_players_test.main ( )

Variable Documentation

◆ DEFAULT_BINARY

dict two_players_test.DEFAULT_BINARY = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}

◆ G_SPEED

str two_players_test.G_SPEED = '300'

◆ RCON

str two_players_test.RCON = 'twopw'

◆ ROOT

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

◆ SMALL_LOG

str two_players_test.SMALL_LOG = 'small games log\n'