diff --git a/tools/Connect_PLAYER_To_Gchange.sh b/tools/Connect_PLAYER_To_Gchange.sh index 1c922622..08d0ebe5 100755 --- a/tools/Connect_PLAYER_To_Gchange.sh +++ b/tools/Connect_PLAYER_To_Gchange.sh @@ -1,5 +1,9 @@ #!/bin/bash # Run After PLAYER.entrance.sh +################################################################################ +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" ######################################################################### CONNECT PLAYER WITH GCHANGE # Check who is .current PLAYER PLAYER=$(cat ~/.zen/game/players/.current/.player 2>/dev/null) || ( echo "noplayer" && exit 1 ) diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index 87ab4588..628ba7af 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -157,7 +157,7 @@ G1PUB=$(cat /tmp/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) sed -i "s~ipfs.infura.io~tube.copylaradio.com~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html myIP=$(hostname -I | awk '{print $1}' | head -n 1) - sed -i "s~127.0.0.1~$myIP~g" ~/.zen/game/world/$WISHKEY/index.html + sed -i "s~127.0.0.1~$myIP~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html tiddlywiki --verbose --load ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html \ --import ~/.zen/Astroport.ONE/templates/data/local.api.json "application/json" \