OpenWF Bootstrapper Manual

While the main feature of the Bootstrapper (wtsapi32.dll, dwmapi.dll, or version.dll) is to use a custom server with the game, it has other features as well.

Client Config.json

The Bootstrapper's configuration is in OpenWF/Client Config.json relative to your game folder. It has the following fields:

HTTP Interface

While the game is running, you can visit http://localhost:6155/ to modify some of the above options, access additional features like teleportation, and use scripts.

This web interface uses the game's language or ?lang= query parameter to check for translations. The builtin translations are mirrored from https://onlyg.it/OpenWF/Translations. You can provide a OpenWF/webui-dict.cat.txt file to provide a custom work-in-progress translation.

Developers can also use the HTTP interface to interact with the Bootstrapper. In addition to commands (documented below), the following routes are available: /ping, /save_all_metadata, /write_all_metadata_reads_to_console, /write_all_metadata_reads_to_ee_log, /write_patched_metadata_reads_to_console, /write_patched_metadata_reads_to_ee_log, /pause_always_stops_time, /server_host, /status, /toggle_console, /scripts, /start_script, /start_script_inline, /autostart_scripts, /add_autostart_script, /remove_autostart_script, /apply_hotfix, /version, /game_version, /memory, /get_effective_metadata, /get_effective_metadata_as_json

Command Line Arguments

The Bootstrapper adds the following command line arguments, which can be used to override their respective config fields: owfServerHost, owfServerHttpPort, owfServerHttpsPort, owfClientHttpPort, owfAutologin (0 or 1), owfEmail, owfPassword

Version Compatibility

The Bootstapper generally works in all versions, but certain additional features only support specific versions (for now):

Tunables

When connecting to a server, the Bootstrapper requests /custom/tunables.json. The resulting JSON object may provide the following fields:

To aid in troubleshooting, the Bootstrapper assumes that a compatible server responds to this request with status code 200 and a valid JSON object, otherwise showing a warning.

Traffic Deviations

And the other way around:

Label Replacements

Label Replacements are loaded by instantiating the OpenWF/Label Replacements.pluto script. You can modify this script but by default it loads replacements from OpenWF/Label Replacements.cat.txt. As implied by the extension, it uses the CaT format. Note that nested nodes are ignored.

Metadata Patches

Metadata Patches are loaded from .txt files in the OpenWF/Metadata Patches/ folder and its subfolders.

They are parsed line by line, with leading and trailing spaces and tabs being ignored:

If multiple patches affect the same absolute path, they are combined.

For patches targeting multiple versions, a preprocessor is available:

Content Management

The Bootstrapper handles the client's content requests by consulting the OpenWF/Content/ folder, forwarding the request to the configured server in case a file is not found.

At minimum, the client requests /0/H.Cache.bin!x_---------------------w (where x depends on the game version), although the Bootstrapper disables this request in versions below U33.6. The Bootstrapper has 3 modes for managing this file:

If the OpenWF/Content/0 folder does not exist, passthrough mode is used and unmanaged mode will be enabled right after.

WebSocket Connection to Server

After login, the Bootstrapper will attempt to establish a WebSocket connection with ws://server_host:http_port/custom/ws. If the WebSocket upgrade succeeds, the Bootstrapper sends {"auth_game":{"accountId":...,"token":...}} where token is HMAC-SHA265(nonce, "accountId=...&ct=WS"). With this connection in place, the server can send the following:

Command API

The command API is a versatile way for developers to interact with the Bootstrapper. Commands are available via HTTP, WebSocket, and the scripting API. For example, to enable skip_mission_start_timer, one can use HTTP with /skip_mission_start_timer?true, WebSocket with send("skip_mission_start_timer?true") or scripting with owf_command("skip_mission_start_timer?true").

The following commands are available: logout, save_config, reload_hotkeys, reload_label_replacements, reload_metadata_patches, available_scripts, running_scripts, autostart_scripts, script_log, clear_script_log, stop_script, high_damage_numbers_patch, skip_mission_start_timer, disable_profanity_filter, simulacrum_blacklisted, simulacrum_whitelisted, alternative_loading, ee_log_in_console, fov_override, freecam, lockcam, gamecam, teleport, enable_pause_always_stops_time, disable_pause_always_stops_time, request_bgscript_broadcasts, download_latest_hotfix, check_for_updates

Feedback

I hope this document was useful. If you have any feature requests or bug reports regarding the Bootstrapper, feel free to submit them at https://onlyg.it/OpenWF/Bootstrapper/issues.