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

Functions

 main ()

Variables

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

Detailed Description

The real client signs a Plus ID at connect (docs/architecture/plus-id.md).

    python3 scripts/plusid_client_test.py /path/to/CoD2 [--binary PATH] [--server PATH]

Runs the dedicated server (OpenCoD2-Plus Server's, which verifies the ID) and
connects the client (cod2_linux) to it with a temporary fs_homepath, several
times: the first run makes fs_homepath/plusid.key, one line of 64 lowercase
hex, and the server's rcon plusIdStatus shows the ID computed here from that
file; the console command plusid prints it with the file's path; a second run
keeps the file and the ID; a corrupt key file is left alone and the client
plays without an ID; and so does a client whose userinfo has no room for the
keys. A home without hard links (link() failing with EPERM through an
LD_PRELOAD shim, as on vfat or exFAT) still gets its key by rename. The client opens a window and needs a CD key in ~/.cod2/preferences;
without one the test is skipped (exit 0). Exits with 0 when all of that holds.

Function Documentation

◆ main()

plusid_client_test.main ( )

Variable Documentation

◆ ROOT

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