diff --git a/start.sh b/start.sh index 7062ad37..3704970b 100755 --- a/start.sh +++ b/start.sh @@ -17,11 +17,11 @@ echo ' /_/ \_\____/ |_| |_| \_\\___/|_| \___/|_| \_\|_| \___/|_| \_|_____| -ASTROPORT is a peer to peer friends of friends real life game based on IPFS. -Join the OASIS so we fix the world together. +ASTROPORT is a peer to peer friends of friends real life game run on IPFS. +Build an OASIS or join the local crew @@@@@@@@@@@@@@ -ACTUAL PLAYERS +OASIS ACTUAL PLAYERS @@@@@@@@@@@@@@ ' @@ -30,29 +30,33 @@ ACTUAL PLAYERS mkdir -p ~/.zen/tmp mkdir -p ~/.zen/game/players +mkdir -p ~/.zen/game/players +## CHECK CONNECTED USER +if [[ -e ~/.zen/game/players/.current ]]; then + echo "WELCOME $(cat ~/.zen/game/players/.current/.pseudo)" + PLAYER=$(cat ~/.zen/game/players/.current/.player) +else + PS3='Choisissez ou créez votre identité : ' + players=($(ls ~/.zen/game/players) "NOUVEAU VISA") + select fav in "${players[@]}"; do + case $fav in + "NOUVEAU VISA") + fav=$(${MY_PATH}/tools/VISA.new.sh quiet | tail -n 1) + break + ;; + "") + echo "Choix obligatoire. exit" + exit + ;; + *) echo "Salut $fav" + break + ;; + esac + done -## VERIFY MadeInZion VISA OWNERSHIP -# AONE=$(zenity --entry --width 300 --title="Astroport ONE" --text="Connectez vous Astroport One?" --entry-text="OUI" NON) -PS3='Choisissez ou créez votre identité : ' -players=($(ls ~/.zen/game/players) "NOUVEAU VISA") -select fav in "${players[@]}"; do - case $fav in - "NOUVEAU VISA") - fav=$(${MY_PATH}/tools/VISA.new.sh quiet | tail -n 1) - break - ;; - "") - echo "Choix obligatoire. exit" - exit - ;; - *) echo "Salut $fav" - break - ;; - esac -done - -PLAYER=$fav + PLAYER=$fav +fi echo "SVP entrez votre PASS $fav" rm -f ~/.zen/game/players/.current ln -s ~/.zen/game/players/$PLAYER ~/.zen/game/players/.current diff --git a/story.fr.txt b/story.fr.txt index 81c37c50..91293610 100644 --- a/story.fr.txt +++ b/story.fr.txt @@ -1,12 +1,12 @@ # ASTROPORT One Un JEu pour terraformer la planète sur IPFS +ipfs ls Qme6a6RscGHTg4e1XsRrpRoNbfA6yojC6XNCBrS8nPSEox/ +ipfs cat QmbfVUAyX6hsxTMAZY7MhvUmB3AkfLS7KqWihjGfu327yG /tmp/vdoc.pub_the-barefoot-architect.pdf -Bienvenue. - -La confédération intergalactique vient de choisir votre planète pour y établir une expérience. +Bienvenue dans la confédération intergalactique DELARATION DES LIEUX -~/.zen/game/places +~/.zen/game/lieux - Coord GPS - Map Minetest - niveaux autonomie @@ -22,4 +22,12 @@ NAVIGATEUR JOUEUR ~/.zen/game/players -ipfs ls Qme6a6RscGHTg4e1XsRrpRoNbfA6yojC6XNCBrS8nPSEox/ + + +CHOIX DE CONVENTION SYSTEME DE FICHIER +Chaque fichier est ajouté à ipfs ajoute le fichier .ipfs contenant le lien IPFS du fichier de même nom sans extension .ipfs ? + + +TODO +AJOUTER des worlists au choix par oasis https://diceware.readthedocs.io/en/stable/wordlists.html +TRADUIRE