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

Functions

 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
int SECONDS = 120
int DVARS = 3000
str FREEZE = 'wait 60\nfreeze 5\nwait 40\nquit\n'
int CHUNK = 100

Detailed Description

The client holds more dvars than 1.3 and reports a frozen main thread.

    python3 scripts/stability_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH] [--wine CMD] [--keep DIR]

dvars: a client (cod2_linux, or with --wine a Windows client given with
--binary) archives DVARS dvars from a config, past 1.3's 1280, and quits; a
second client on the same folder reads the last one back from a config_mp.cfg
over the 64 KB of 1.3's command buffer. freeze, with --wine only, as the watch is Windows': com_freezeWatch
2 and the freeze command stop the main thread longer than that, the client
leaves a cod2_freeze_ report and still quits by itself; with com_freezeWatch 0
it leaves none. Exits with 0 when all of that holds and there is no crash report.
The client opens a window and needs a CD key in ~/.cod2/preferences; without one
the test is skipped (exit 0).

Function Documentation

◆ main()

stability_test.main ( )

Variable Documentation

◆ CHUNK

int stability_test.CHUNK = 100

◆ DVARS

int stability_test.DVARS = 3000

◆ FREEZE

str stability_test.FREEZE = 'wait 60\nfreeze 5\nwait 40\nquit\n'

◆ ROOT

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

◆ SECONDS

int stability_test.SECONDS = 120