Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
290225b7f1 | ||
|
|
1a0b9143be | ||
|
|
ac55a08796 | ||
|
|
3653f286f8 | ||
|
|
5a9dcac684 | ||
|
|
86bd0d851d | ||
|
|
55aae5a55f | ||
|
|
d559f5244f | ||
|
|
df2c5cb0ad | ||
|
|
53cab7e43c | ||
|
|
5062abdfc7 | ||
|
|
d80b73a052 | ||
|
|
5d70ac0002 | ||
|
|
c2d2cda761 |
37
README.md
37
README.md
@@ -2,34 +2,7 @@
|
||||
|
||||
# Clients
|
||||
|
||||
## Distribute `rusty-pipe`
|
||||
|
||||
```bash
|
||||
# https://www.reddit.com/r/rust/comments/5k8uab/crosscompiling_from_ubuntu_to_windows_with_rustup/
|
||||
(
|
||||
echo '[target.x86_64-pc-windows-gnu]'
|
||||
echo 'linker = "x86_64-w64-mingw32-gcc"'
|
||||
echo 'ar = "x86_64-w64-mingw32-gcc-ar"'
|
||||
) >> $HOME/.cargo/config
|
||||
sudo apt install mingw-w64
|
||||
rustup target add x86_64-pc-windows-gnu
|
||||
echo windows
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
rm target/x86_64-pc-windows-gnu/release/rusty-pipe-signed.exe
|
||||
read -p ".crt? " CERT
|
||||
osslsigncode sign \
|
||||
-certs ${CERT%.crt}.crt -key ${CERT%.crt}.key \
|
||||
-n Rusty-Pipe -i https://whois.home.blapointe.com \
|
||||
-in target/x86_64-pc-windows-gnu/release/rusty-pipe.exe -out target/x86_64-pc-windows-gnu/release/rusty-pipe-signed.exe
|
||||
echo local
|
||||
cargo install --path ./
|
||||
```
|
||||
|
||||
Each client needs 1 executable and 1 config file
|
||||
|
||||
The server cannot be a client because sending, listening, and typing keyboard is bad. Maybe a VM on the client as a server would work tho.
|
||||
|
||||
See `./config.d/rusty-pipe.d`
|
||||
Send link to `http://localhost:17072`
|
||||
|
||||
# Server
|
||||
|
||||
@@ -40,11 +13,3 @@ See `./config.d/rusty-pipe.d`
|
||||
## Game Playing
|
||||
|
||||
Foreground
|
||||
|
||||
#### Discord
|
||||
|
||||
Yep
|
||||
|
||||
#### Dolphin
|
||||
|
||||
Yep
|
||||
|
||||
3
config.d/mayhem-party.d/elect.sh
Normal file
3
config.d/mayhem-party.d/elect.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
curl -sS http://mp.home.blapointe.com:17071/gm/rpc/elect
|
||||
@@ -1,8 +1,6 @@
|
||||
export DEBUG=true
|
||||
export MAIN_INTERVAL_DURATION=5ms
|
||||
|
||||
export RAW_UDP=17070
|
||||
|
||||
export PARSE_V01=true
|
||||
cp ./config.d/mayhem-party.d/v01{"",-live}.yaml
|
||||
export V01_CONFIG=./config.d/mayhem-party.d/v01-live.yaml
|
||||
@@ -10,3 +8,7 @@ export V01_CONFIG=./config.d/mayhem-party.d/v01-live.yaml
|
||||
export WRAP_REFRESH_ON_SIGUSR1=true
|
||||
|
||||
export OUTPUT_KEYBOARD=${OUTPUT_KEYBOARD:-false}
|
||||
|
||||
#export RAW_UDP=17070
|
||||
export RAW_WS_PROXY_URL=http://localhost$(cat config.d/mayhem-party.d/v01-live.yaml | grep -A 10 feedback | grep addr: | awk '{print $NF}')
|
||||
export RAW_WS=17072
|
||||
|
||||
7
config.d/mayhem-party.d/fill.sh
Normal file
7
config.d/mayhem-party.d/fill.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
curl \
|
||||
-X POST \
|
||||
-i -sS \
|
||||
http://mp.home.blapointe.com:17071/gm/rpc/fillNonPlayerAliases \
|
||||
-d "[$(cat ./hotwords.txt | tr '\n' ' ')]"
|
||||
18
config.d/mayhem-party.d/hotwords.txt
Normal file
18
config.d/mayhem-party.d/hotwords.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
mario
|
||||
luigi
|
||||
peach
|
||||
daisy
|
||||
wario
|
||||
waluigi
|
||||
bowser
|
||||
junior
|
||||
koopa
|
||||
shyguy
|
||||
boo
|
||||
toad
|
||||
toadette
|
||||
coin
|
||||
star
|
||||
minigame
|
||||
win
|
||||
lose
|
||||
7
config.d/mayhem-party.d/init.sh
Normal file
7
config.d/mayhem-party.d/init.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
bash ./shuffle.sh
|
||||
bash ./fill.sh
|
||||
bash ./players.sh
|
||||
2
config.d/mayhem-party.d/players.sh
Normal file
2
config.d/mayhem-party.d/players.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#! /bin/bash
|
||||
curl -sS -i http://mp.home.blapointe.com:17071/
|
||||
3
config.d/mayhem-party.d/shuffle.sh
Normal file
3
config.d/mayhem-party.d/shuffle.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
curl -sS -i http://mp.home.blapointe.com:17071/gm/rpc/shuffle
|
||||
bash ./players.sh
|
||||
@@ -1,42 +1,56 @@
|
||||
feedback:
|
||||
addr: :17071
|
||||
ttsurl: http://localhost:15002
|
||||
users:
|
||||
bel:
|
||||
meta:
|
||||
lasttsms: 1680371007738
|
||||
lastlag: 0
|
||||
state:
|
||||
player: 1
|
||||
message: ""
|
||||
gm:
|
||||
alias: ""
|
||||
lastalias: ""
|
||||
vote: ""
|
||||
zach:
|
||||
meta:
|
||||
lasttsms: 1679978514018
|
||||
lastlag: 0
|
||||
state:
|
||||
player: 0
|
||||
message: ""
|
||||
gm:
|
||||
alias: ""
|
||||
lastalias: ""
|
||||
vote: ""
|
||||
users: {}
|
||||
players:
|
||||
- transformation:
|
||||
"1": "6" # a
|
||||
"2": "7" # b
|
||||
"3": "8" # x
|
||||
"4": "9" # y
|
||||
"5": "0" # start
|
||||
a: f # stickLeft
|
||||
d: h # stickRight
|
||||
e: "y" # r
|
||||
q: r # l
|
||||
s: g # stickDown
|
||||
w: t # stickUp
|
||||
"1": "1" # a
|
||||
"2": "2" # b
|
||||
"3": "3" # x
|
||||
"4": "4" # y
|
||||
"5": "5" # start
|
||||
w: "6" # stickUp
|
||||
a: "7" # stickLeft
|
||||
s: "8" # stickDown
|
||||
d: "9" # stickRight
|
||||
e: "0" # r
|
||||
q: "-" # l
|
||||
- transformation:
|
||||
"1": "q" # a
|
||||
"2": "w" # b
|
||||
"3": "e" # x
|
||||
"4": "r" # y
|
||||
"5": " " # "t" # start
|
||||
w: "y" # stickUp
|
||||
a: "u" # stickLeft
|
||||
s: "i" # stickDown
|
||||
d: "o" # stickRight
|
||||
e: "p" # r
|
||||
q: "=" # l
|
||||
- transformation:
|
||||
"1": "a" # a
|
||||
"2": "s" # b
|
||||
"3": "d" # x
|
||||
"4": "f" # y
|
||||
"5": " " # "g" # start
|
||||
w: "h" # stickUp
|
||||
a: "j" # stickLeft
|
||||
s: "k" # stickDown
|
||||
d: "l" # stickRight
|
||||
e: ";" # r
|
||||
q: "g" # l
|
||||
- transformation:
|
||||
"1": "z" # a
|
||||
"2": "x" # b
|
||||
"3": "c" # x
|
||||
"4": "v" # y
|
||||
"5": " " # "b" # start
|
||||
w: "n" # stickUp
|
||||
a: "m" # stickLeft
|
||||
s: "," # stickDown
|
||||
d: "." # stickRight
|
||||
e: "/" # r
|
||||
q: "b" # l
|
||||
quiet: false
|
||||
broadcast:
|
||||
message: ""
|
||||
message: "#early access"
|
||||
|
||||
@@ -1,42 +1,56 @@
|
||||
feedback:
|
||||
addr: :17071
|
||||
ttsurl: http://localhost:15002
|
||||
users:
|
||||
bel:
|
||||
meta:
|
||||
lasttsms: 1680371007738
|
||||
lastlag: 0
|
||||
state:
|
||||
player: 1
|
||||
message: ""
|
||||
gm:
|
||||
alias: ""
|
||||
lastalias: ""
|
||||
vote: ""
|
||||
zach:
|
||||
meta:
|
||||
lasttsms: 1679978514018
|
||||
lastlag: 0
|
||||
state:
|
||||
player: 0
|
||||
message: ""
|
||||
gm:
|
||||
alias: ""
|
||||
lastalias: ""
|
||||
vote: ""
|
||||
users: {}
|
||||
players:
|
||||
- transformation:
|
||||
"1": "6" # a
|
||||
"2": "7" # b
|
||||
"3": "8" # x
|
||||
"4": "9" # y
|
||||
"5": "0" # start
|
||||
a: f # stickLeft
|
||||
d: h # stickRight
|
||||
e: "y" # r
|
||||
q: r # l
|
||||
s: g # stickDown
|
||||
w: t # stickUp
|
||||
"1": "1" # a
|
||||
"2": "2" # b
|
||||
"3": "3" # x
|
||||
"4": "4" # y
|
||||
"5": "5" # start
|
||||
w: "6" # stickUp
|
||||
a: "7" # stickLeft
|
||||
s: "8" # stickDown
|
||||
d: "9" # stickRight
|
||||
e: "0" # r
|
||||
q: "-" # l
|
||||
- transformation:
|
||||
"1": "q" # a
|
||||
"2": "w" # b
|
||||
"3": "e" # x
|
||||
"4": "r" # y
|
||||
"5": " " # "t" # start
|
||||
w: "y" # stickUp
|
||||
a: "u" # stickLeft
|
||||
s: "i" # stickDown
|
||||
d: "o" # stickRight
|
||||
e: "p" # r
|
||||
q: "=" # l
|
||||
- transformation:
|
||||
"1": "a" # a
|
||||
"2": "s" # b
|
||||
"3": "d" # x
|
||||
"4": "f" # y
|
||||
"5": " " # "g" # start
|
||||
w: "h" # stickUp
|
||||
a: "j" # stickLeft
|
||||
s: "k" # stickDown
|
||||
d: "l" # stickRight
|
||||
e: ";" # r
|
||||
q: "g" # l
|
||||
- transformation:
|
||||
"1": "z" # a
|
||||
"2": "x" # b
|
||||
"3": "c" # x
|
||||
"4": "v" # y
|
||||
"5": " " # "b" # start
|
||||
w: "n" # stickUp
|
||||
a: "m" # stickLeft
|
||||
s: "," # stickDown
|
||||
d: "." # stickRight
|
||||
e: "/" # r
|
||||
q: "b" # l
|
||||
quiet: false
|
||||
broadcast:
|
||||
message: ""
|
||||
message: "#early access"
|
||||
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
16
config.d/rusty-pipe.d/package-and-distribute.sh
Normal file
16
config.d/rusty-pipe.d/package-and-distribute.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo source ./package.sh
|
||||
|
||||
set -e
|
||||
|
||||
cd ${based%/*}
|
||||
tar_f=${based##*/}.tar
|
||||
rm -f "$tar_f"
|
||||
tar -cf "$tar_f" ${based##*/}
|
||||
cleanup() { rm "$tar_f"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
scp_scratch.sh "$tar_f" squeaky2x3@192.168.0.86:/volume1/video/FTP/
|
||||
ssh_scratch.sh ls /volume1/video/FTP/"$tar_f"
|
||||
|
||||
20
config.d/rusty-pipe.d/package.sh
Normal file
20
config.d/rusty-pipe.d/package.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#! /bin/bash
|
||||
|
||||
test -f ./rusty-pipe-signed.exe || exit 1
|
||||
|
||||
based=$(mktemp -d)
|
||||
for f in ./*.yaml; do
|
||||
d="$based/${f%.yaml}.d"
|
||||
mkdir -p "$d"
|
||||
cp "$f" "$d"/rusty-pipe.yaml
|
||||
cp "$(realpath ./rusty-pipe-signed.exe)" "$d"/rusty-pipe-windows.exe
|
||||
cp "$(realpath ./rusty-pipe-notwindows.bin)" "$d"/rusty-pipe-notwindows.bin
|
||||
done
|
||||
pushd "$based"
|
||||
for d in ./*/; do
|
||||
zip -r -7 ${d%/}.zip $d
|
||||
rm -rf "$d"
|
||||
done
|
||||
popd
|
||||
echo "$based"
|
||||
du -sh "$based"/*
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
1
config.d/rusty-pipe.d/rusty-pipe-notwindows.bin
Symbolic link
1
config.d/rusty-pipe.d/rusty-pipe-notwindows.bin
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../rusty-pipe.d/target/release/rusty-pipe
|
||||
1
config.d/rusty-pipe.d/rusty-pipe-signed.exe
Symbolic link
1
config.d/rusty-pipe.d/rusty-pipe-signed.exe
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../rusty-pipe.d/target/x86_64-pc-windows-gnu/release/rusty-pipe-signed.exe
|
||||
@@ -22,6 +22,7 @@ streams:
|
||||
b: '2'
|
||||
x: '3'
|
||||
y: '4'
|
||||
start: '5'
|
||||
output:
|
||||
debug: false
|
||||
engine:
|
||||
Submodule git.d/mayhem-party.d updated: 934158b7a3...9418cecdf5
Submodule git.d/stt.d updated: 88bf54d022...814a8ae2f3
Reference in New Issue
Block a user