Cordite Ranked lobby for IW4X-COMP
=================================

Adapted from the user's 20260803-233402/iw4x-port backup. That original backup
is untouched. Ranked opens the installed game's original party pre-lobby,
including Create a Class, Callsign & Killstreaks, Barracks, Invite and Find
Match. It uses the native Ranked extension and the server pool configured
here; the stock DLL alone is insufficient.

1. Configure public endpoints in servers.json. The current test pool is MS-02,
   192.168.0.243:29860, with lobby_url http://192.168.0.243:8791 on the LAN.
   Each ID/address must agree with the lobby service configuration. For launch,
   replace these with the rented VPS addresses and an HTTPS lobby endpoint.
   Never include RCON, bridge or administrative credentials in this file.
2. Run python3 client_menu/build.py from the repository root. Optional options:
   --servers /path/to/servers.json --output /path/to/z_cordite_menu.iwd
3. Close IW4x. Back up iw4x.dll and any previous menu replacement. Copy the
   built client_native/iw4x.dll to the game root, and z_cordite_menu.iwd into
   userraw. Start iw4x.exe directly. The installer embeds these same files.
4. Select Register (between Options and Quit) and choose your username on
   https://zeal.family. The game proves ownership of its IW4x GUID automatically;
   no GUID copy/paste or Discord account is needed. Registration is required.
   Select Ranked to enter the party pre-lobby. Invite one friend, or share
   the eight-character code inside INVITE for JOIN BY CODE. Only selecting
   FIND MATCH begins searching. Steam is optional for the code flow.
   Discord is not required.
   Voice joins your party automatically, using voice activation by default.
   VOICE SETTINGS in the party menu (F7 in a match) provides mic mute, optional
   push-to-talk, devices, sensitivity, a private mic test, and player volumes.
   When a match starts, voice follows the server's teams and communication rules.
5. Search uses IW4x getInfo discovery and Party::Connect, restricted to the
   configured pool. A duo reserves two seats on one server. All eight players
   must be ready and load their assigned teams before the rated match starts.
6. The original game search lobby shows eight player slots and the selected
   match map/mode. Create a Class, Callsign & Killstreaks and Barracks use
   their original game actions. Press RB + RT (keyboard: F6) for playable warmup.
   Press the same shortcut to return. Searching and duo reservations continue
   in both views. Release both controls before toggling again. The shortcut
   is disabled automatically once the rated match map loads.
7. Apply graphics/video settings before connecting to Ranked. In this test
   build, vid_restart while connected is blocked with a message: the retained
   frontend game-type catalog cannot safely survive IW4x's in-server restart.
   Leaving the server restores normal video-setting application.

Captains, drafting and pre-match voting are disabled. Duos stay on the same
team. The repository's installed map pool and active modes supply matches.
One-Flag CTF remains implemented but is disabled in the launch pool.

Windows uses the x86 build. Linux uses the same files through Wine; no native
Linux binary or x64 IW4x(MM) support is claimed. See client_native/README.txt
for the pinned upstream source, GPL license and build instructions.

Both server bridges and services must also be running; a menu alone does not
host matchmaking or ratings. See docs/SETUP.txt and docs/QA.txt for deployment
and the exact scope of tests completed. Restore the saved DLL/menu to uninstall.
Identical menu source/config creates identical IWD bytes.

Installer 1.25 uses https://ranked.zeal.family for discovery. The menu has an
empty static server list and dynamic_pool=true: MS-02 supplies the live pool.
Enrolling/draining a game instance changes discovery without rebuilding this
menu or reinstalling clients. The current game/media UDP endpoint is still the
MS-02 LAN test server until Psychz deployment. See docs/CENTRAL-OPERATIONS.txt.

Ranked class rules: Intervention + FMJ only; no secondary, lethal/tactical
grenades, equipment or deathstreak. Slot 1 allows Sleight of Hand Pro or
Marathon Pro. Slots 2 and 3 are Stopping Power Pro and Ninja Pro. Opening
Ranked normalizes all 15 custom slots while preserving names, camos and either
legal first-slot perk. The class editor locks fixed slots; the server enforces
the same rules independently, including default classes and warmup.

The main menu places the gold Z above Ranked and the ZEAL wordmark with
COMPETITIVE SNIPING to the right. Generated PNG sources and the exact built-in
image_gen prompts are in artwork/. They are bundled in the IWD, with their
transparent alpha preserved. RankedBranding.hpp loads them using the game's
DirectX runtime only while the frontend is active.

The native client adapts menu_xboxlive and menu_xboxlive_lobby from installed
game assets. It does not package a replacement party/search panel. These
menus are rebuilt with the engine UI when maps or video settings reload.

A small Discord icon and https://Discord.gg/PlanetZeal appear at the bottom
left of every Zeal screen: main menu, party and search screens, Options and
the Friends popup. Selecting the icon or URL opens that fixed
invite in the default browser. It is optional and passes no account information.
