How sanaerin/tychos-pishock-integrations works
This is a desktop mod companion for Poker Night at the Inventory Remastered: game events are written to a file by the packaged Lua mod, then the Python app reads them, updates status and logs, and sends configured PiShock actions. The UI also supports connection checks, testing, and editing event toggles. Python control flow is shown from the excerpts; the archive scripts are present in the tree but unsampled, so their event-generation details are documented by the README rather than inferred.
Main entry points: main.py Status and controls · config.py INI settings · shock_event_listener.lua Event hook · CP_pc_Common_TychosPiShockIntegrations.ttarch2 Game archive mod
Components 12
Game mod
- Event hook
shock_event_listener.lua - Game archive mod
Archives/CP_pc_Common_TychosPiShockIntegrations.ttarch2
Desktop app
- Event log file
- Status and controls
main.py - Event polling
main.py - Event handling
main.py - Activity log
main.py
Configuration
- INI settings
config.py - Config editor access
config.py
PiShock integration
- PiShock API
Other components
- Poker Night
- PiShock device
Connections 16
- Poker Night → Event hook: hosts hooks
README.md - Event hook → Event log file: writes events
- Game archive mod → Poker Night: loads mod
README.md - Event log file → Event polling: provides events
main.py - Event polling → Event handling: dispatches events
main.py - Event handling → Activity log: logs activity
main.py - Status and controls → Event polling: starts polling
main.py - Status and controls → Activity log: displays logs
main.py - Status and controls → INI settings: loads settings
main.py - Status and controls → Config editor access: opens editor
main.py - Config editor access → INI settings: creates settings
config.py - Event handling → INI settings: reads conditions
main.py - Status and controls → INI settings: saves toggles
main.py - Status and controls → PiShock API: checks connection
main.py - Event handling → PiShock API: sends actions
main.py - PiShock API → PiShock device: controls device