From a23de94db5347b9a4fe44b637052c970ca94ac06 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 15 Jan 2017 00:10:12 -0600 Subject: new mesh and a couple scripts that are work-in-progress --- meshes/shittree.blend | Bin 0 -> 428904 bytes meshes/shittree.obj | 32 ++++++++++++++++++++++++++++++++ server/killit.sh | 2 ++ server/server.sh | 8 ++++++++ 4 files changed, 42 insertions(+) create mode 100644 meshes/shittree.blend create mode 100644 meshes/shittree.obj create mode 100755 server/killit.sh create mode 100755 server/server.sh diff --git a/meshes/shittree.blend b/meshes/shittree.blend new file mode 100644 index 0000000..91fc91c Binary files /dev/null and b/meshes/shittree.blend differ diff --git a/meshes/shittree.obj b/meshes/shittree.obj new file mode 100644 index 0000000..e97d62a --- /dev/null +++ b/meshes/shittree.obj @@ -0,0 +1,32 @@ +# Blender v2.72 (sub 0) OBJ File: 'shittree.blend' +# www.blender.org +mtllib shittree.mtl +o Cube +v 0.000000 3.000000 0.000000 +v -2.000000 -2.000000 -2.000000 +v -2.000000 -2.000000 2.000000 +v 2.000000 -2.000000 2.000000 +v 2.000000 -2.000000 -2.000000 +v -1.000000 -2.000000 -1.000000 +v -1.000000 -2.000000 1.000000 +v 1.000000 -2.000000 -1.000000 +v 1.000000 -2.000000 1.000000 +v -1.000000 -3.000000 -1.000000 +v 1.000000 -3.000000 -1.000000 +v 1.000000 -3.000000 1.000000 +v -1.000000 -3.000000 1.000000 +usemtl Material +s off +f 6 7 3 2 +f 8 6 2 5 +f 7 9 4 3 +f 9 8 5 4 +f 10 11 12 13 +f 8 11 10 6 +f 9 12 11 8 +f 7 13 12 9 +f 6 10 13 7 +f 3 4 1 +f 3 1 2 +f 2 1 5 +f 4 5 1 diff --git a/server/killit.sh b/server/killit.sh new file mode 100755 index 0000000..ad38a6b --- /dev/null +++ b/server/killit.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ss -tlanp src 127.0.0.1:1337 | tr ' ' '\n' | grep pid | tr , '\n' | grep pid | cut -d= -f2- | xargs kill diff --git a/server/server.sh b/server/server.sh new file mode 100755 index 0000000..7c92014 --- /dev/null +++ b/server/server.sh @@ -0,0 +1,8 @@ +#!/bin/sh +#this is so I can offer a TCP server that'll +echo 'starting headless hackvr sending to multicast group 234.5.6.7 udp port 1337...' +ncat -u 234.5.6.7 1337 -c '../src/hackvr_headless world < in_pipe' & +echo 'starting TCP listener for clients to connect to on port 1337...' +ncat -v -k -l -p 1337 -c 'stdbuf -i0 cat > in_pipe | mcast 234.5.6.7 1337' +wait +echo 'all done.' -- cgit v1.2.3