63 lines
1.2 KiB
Markdown
63 lines
1.2 KiB
Markdown
# mayhem-party
|
|
|
|
Think Dug's Twitch Chat Plays
|
|
|
|
* output keyboard; https://github.com/micmonay/keybd_event
|
|
* input gamepad; https://github.com/orsinium-labs/gamepad
|
|
* gcc plan b; https://github.com/go-vgo/robotgo
|
|
* gaaaaaym; https://www.mariowiki.com/Mario_Party_7
|
|
* multiplayer engine
|
|
* server; https://github.com/LizardByte/Sunshine
|
|
* client; https://moonlight-stream.org/
|
|
|
|
## DONE
|
|
|
|
* input
|
|
* random from weighted file
|
|
* buffered
|
|
* remapped from file
|
|
* output
|
|
* to keyboard
|
|
* to stderr
|
|
|
|
## Hosting a Mayhem Party
|
|
|
|
#### Requirements
|
|
|
|
1. [`rusty-pipe`](https://gogs.inhome.blapointe.com/bel/rusty-pipe)
|
|
1. [`mayhem-party`](https://gogs.inhome.blapointe.com/bel/mayhem-party)
|
|
1. [`stt`](https://gogs.inhome.blapointe.com/bel/stt)
|
|
|
|
### Clients
|
|
|
|
#### Distribute `rusty-pipe`
|
|
|
|
Each client needs 1 executable and 1 env file with a unique set of buttons
|
|
|
|
```bash
|
|
INPUT_NAME=gui
|
|
OUTPUT_UDP_HOST=ip
|
|
OUTPUT_UDP_PORT=port
|
|
INPUT_GUI_BUTTON_A=X
|
|
INPUT_GUI_BUTTON_B=X
|
|
INPUT_GUI_BUTTON_DOWN=X
|
|
INPUT_GUI_BUTTON_L=X
|
|
INPUT_GUI_BUTTON_LEFT=X
|
|
INPUT_GUI_BUTTON_R=X
|
|
INPUT_GUI_BUTTON_RIGHT=X
|
|
INPUT_GUI_BUTTON_UP=X
|
|
INPUT_GUI_BUTTON_X=X
|
|
INPUT_GUI_BUTTON_Y=X
|
|
```
|
|
|
|
### Server
|
|
|
|
#### `rusty-pipe`
|
|
|
|
```bash
|
|
INPUT_NAME=udp
|
|
INPUT_UDP_PORT=port_i
|
|
```
|
|
|
|
#### `mayhem-party`
|