Five Ordeals Access 0.5.3 for Linux (Steam with Proton)

What it is
A screen reader accessibility mod for Wizardry: The Five Ordeals on Steam. It speaks menus, text, character sheets, fights and maze movement, adds maze lists, directions to places, auto-walk and compass movement.
On Linux it speaks through speech-dispatcher, so you hear the voice speech-dispatcher uses. It does not use Orca directly.
Unofficial. Not made by or connected with the game's developers.

Links
Mod page: https://howlingwolfgameworks.com/mods.html
Donate: https://howlingwolfgameworks.com/donate.html
The donate page lists Cash App, Bitcoin and PayPal.
Report a crash or bug: https://howlingwolfgameworks.com/mods/report/
Attach BepInEx/LogOutput.log from the game folder to your report.

Game version
Built for game version 2.1.20261014b (the Windows build, run with Proton). Tested with Proton Hotfix.

What is in this zip
winhttp.dll, doorstop_config.ini and .doorstop_version: the BepInEx 5.4.23.5 loader.
BepInEx/core: BepInEx 5.4.23.5.
BepInEx/plugins/FiveOrdealsAccess: FiveOrdealsAccess.dll, FiveOrdealsSheet.dll, Sheet-keys.txt, CHANGELOG.txt, licenses.
BepInEx/config/com.matthew.fiveordealsaccess.cfg: preset with SpeechOutput = SpeechDispatcher, host 127.0.0.1, port 6560.
speechd-bridge.sh: connects TCP port 6560 to your speech-dispatcher.
No game files are included. Tolk is not included, it is Windows only.

What you need
speech-dispatcher, which most Linux desktops with Orca already have.
For the bridge script: socat (for example sudo apt install socat).
The game runs inside Proton, which cannot reach speech-dispatcher's normal Unix socket, so the mod talks to it over TCP on 127.0.0.1 port 6560.

Install
1. Close the game.
2. In Steam, right click Wizardry: The Five Ordeals, choose Manage, then Browse local files. This opens the game folder, the one with WizardryFoV2.exe.
3. Extract everything in this zip straight into that folder. Keep the folders as they are. If you already have BepInEx/config/com.matthew.fiveordealsaccess.cfg, keep yours and just set SpeechOutput = SpeechDispatcher in its [Speech] section.
4. In Steam, open the game's Properties, General, Launch options, and enter:
   WINEDLLOVERRIDES="winhttp=n,b" %command%
   Without this Proton ignores winhttp.dll and the mod never loads.
5. Start speech on TCP port 6560, with one of the two ways below.
6. Start the game from Steam. You should hear Five Ordeals Access, then V, 0, 5, 3.

Speech on port 6560, way 1: the bridge (keeps Orca and everything else on your normal speech-dispatcher)
Run in a terminal, and leave it running while you play:
   sh speechd-bridge.sh
It finds your speech-dispatcher socket at $XDG_RUNTIME_DIR/speech-dispatcher/speechd.sock. If speech-dispatcher is not running, it starts it first. Then it runs socat from 127.0.0.1:6560 to that socket. Press Control+C to stop it.
To start it automatically, add it to your desktop's autostart, or run it as a systemd user service.

Speech on port 6560, way 2: speech-dispatcher straight on TCP (simplest, if nothing else on your system needs speech-dispatcher's normal socket)
   speech-dispatcher -d -t 0 -c inet_socket -p 6560
-d runs it in the background, -t 0 keeps it running when no client is connected, -c inet_socket -p 6560 makes it listen on TCP port 6560. Only one speech-dispatcher can run per user, so stop the normal one first if needed (killall speech-dispatcher). Orca will not speak while this one runs on TCP only, so use way 1 if you use Orca.

Choosing a voice
The mod connects as the client default:fiveordeals:main. You can give it its own voice in your speech-dispatcher config (~/.config/speech-dispatcher/speechd.conf, created with spd-conf -u), for example:
   BeginClient "default:fiveordeals:*"
    DefaultModule espeak-ng
    DefaultVoiceType "MALE1"
    DefaultRate 20
   EndClient
Then restart speech-dispatcher. Without this the mod uses your normal default voice and rate. spd-say -O lists output modules and spd-say -L lists voices.
Turn off Orca's key echo while playing if it talks over the game.

Keys
Read BepInEx/plugins/FiveOrdealsAccess/Sheet-keys.txt for the full list. In the maze the arrows, WASD and the D-pad are compass directions: Up north, Down south, Left west, Right east. Page Down and Page Up go through places, Home gives the way, Shift with Home walks there, End says what is ahead.
Settings are in BepInEx/config. com.matthew.fiveordealsaccess.sheet.cfg has CompassMove (false gives the game's own controls) and TerseSteps.

Troubleshooting
No speech at all: open BepInEx/LogOutput.log in the game folder.
If the log file is missing, BepInEx did not load. Check the launch option above.
If it has Speech blocked: speech-dispatcher not reachable at 127.0.0.1:6560, nothing is listening on port 6560. Start the bridge or way 2, then wait. The mod retries every 5 seconds, so you do not have to restart the game.
If it has Speech output: SpeechDispatcher 127.0.0.1:6560 connected but you hear nothing, test speech-dispatcher itself with spd-say hello, and check your sound output.
Check the port with: ss -ltn | grep 6560

Reporting a crash or bug
Use the report page: https://howlingwolfgameworks.com/mods/report/
Say what you pressed, where you were, and what you heard or did not hear. Attach BepInEx/LogOutput.log from the game folder. It is rewritten each time the game starts, so copy it right after the problem.

Uninstall
Close the game. In the game folder, delete winhttp.dll, doorstop_config.ini, .doorstop_version and the BepInEx folder, and remove the launch option.

Licenses
BepInEx is MIT licensed (BepInEx-LICENSE.txt). The Doorstop loader is LGPL 2.1 (Doorstop-LICENSE.txt). They are in BepInEx/plugins/FiveOrdealsAccess/licenses.
