From 4feb44b2849b9c2779118f58991a295efb0727b9 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 24 Jan 2021 13:09:32 -0600 Subject: changed some constants in anonet map generator and swapped from maxdist to mindist in shitdist2() --- share/hackvr/examples/anonet_map/map | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'share/hackvr/examples/anonet_map') diff --git a/share/hackvr/examples/anonet_map/map b/share/hackvr/examples/anonet_map/map index 4dbbdbd..976bb79 100755 --- a/share/hackvr/examples/anonet_map/map +++ b/share/hackvr/examples/anonet_map/map @@ -2,6 +2,7 @@ paths="$(ncat --recv-only 21.41.41.1 64777 | sort | uniq | tee ${PREFIX}/var/cache/hackvr/anonet_data.new)" MAP=${PREFIX}/var/cache/hackvr/anonet_map.hackvr +mkdir -p ${PREFIX}/var/cache/hackvr/ #see if the data actually changed before regenerating this shit... if cmp ${PREFIX}/var/cache/hackvr/anonet_data.new ${PREFIX}/var/cache/hackvr/anonet_data.old ; then @@ -17,7 +18,7 @@ nodes=$(printf "%s\n" "$paths" | tr ' ' '\n' | sort | uniq) nodes_count="$(printf "%s\n" "$nodes" | tr ' ' '\n' | wc -l | tr -cd '0-9')" #echo $nodes #echo $nodes_count -echo $USER move 0 0 -17 +echo $USER move 0 0 -20 coords="$( (for node in $nodes;do printf "AS%s addshape 4 2 0 8 0 0 0 0\n" "$node" printf "AS* rotate 0 0 +%d\n" "$[360 / ${nodes_count} ]" @@ -56,7 +57,7 @@ for node in $nodes;do printf " addshape 5 4 -1 8 0 -1 10 0 1 10 0 1 8 0\n" "$node" printf "