From e65ff48c30a541cdc12c7c3cd5ace422cc47c774 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 15 Mar 2022 23:44:06 +0100 Subject: [PATCH] the story continue --- rooms/bigroom.sh | 10 ++++---- rooms/end.sh | 46 +++++++++++------------------------ rooms/meteofrance.sh | 13 ++++++++++ templates/meteo_chain.html | 50 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 37 deletions(-) create mode 100644 templates/meteo_chain.html diff --git a/rooms/bigroom.sh b/rooms/bigroom.sh index e9b343a4..a3463cf3 100755 --- a/rooms/bigroom.sh +++ b/rooms/bigroom.sh @@ -19,17 +19,17 @@ echo sleep 2 echo "Il ne dépend que de vous d'explorer ce nouveau futur." - echo "Le Visa MadeInZion nous permet de découvrir ensemble le monde qui nous entoure" + echo "Le Visa MadeInZion inaugure un monde sans territoire, sans frontière, transnationnal, interplanétaire, à vous de voir?" sleep 2 - echo "Nous espérons vous voir sur notre 'bon coin' https://gchange.fr " + echo "Avant de nous rejoindre. Visitez notre 'bon coin' https://gchange.fr " echo sleep 3 - echo "Vous aussi voulez ouvrir une ambassade? Installez IPFS, faisons Internet à notre façon." + echo "Ouvrez une ambassade? Installez IPFS, devenons hébergeur, fournisseur d'accès de nos Internets." echo sleep 4 - echo "Transformez votre bout de terrain, construisez un Astroport." + echo "Ouvrez votre propriété au futur en commun, activez Astroport." echo "Nous organisons des formations habitats posés, vissés et cousus. Eau potable. Biogaz, Marmite Norvégienne..." - echo "Et par desssus tout, comment nourrir le sol, reconnaitre les plantes... Redevenir ceuilleur, créateur." + echo "Comment nourrir le sol, reconnaitre les plantes... Redevenir ceuilleur, créateur." echo else echo "" diff --git a/rooms/end.sh b/rooms/end.sh index 4433dfc3..58b79da5 100755 --- a/rooms/end.sh +++ b/rooms/end.sh @@ -15,48 +15,30 @@ do done <"$file1" echo sleep 1 -echo "You swallow the pill, and suddenly rainbows are all around you." +echo "Voic la fin de cette petite aventure." echo sleep 4 -echo "You look down to find that you're riding a unicorn. On a rainbow." +echo "Vous venez de visiter la forêt où s'est posé Astroport ONE." sleep 3 echo -echo "A motherfucking UNICORN." +echo "Une oeuvre habitable. Un jardin sur sol vivant. Un progamme pair à pair interplanétaire" sleep 4 echo -echo "This is ridiculous. Surely this is some kind of dream? You pinch" -echo "yourself to try and wake up. Wait, you're feeling dizzy..." +echo "Les terraformeurs" +echo "En quête de la meilleure façon de vivre sur le vaisseau spatal Terre..." echo sleep 5 -echo "You blink, and are surprised to find yourself laying in bed." -echo "You check your phone - it's 5am, and definitely Thursday. Huh." -echo "I guess it was all a dream." +echo "Vous aussi ouvrez votre Ambassade." +echo "Activez le JEu. Invitez vos visiteurs à rêver d'un monde meilleur" +echo "Reproduisez, améliorez, partagez les plans pour y parvenir." echo sleep 7 -echo "You go to get out of bed and suddenly spot a tiny marbel figurine on" -echo "your bedside table. It's a beautifully carved kitten." +echo "Il est l'heure de laisser derrière vous la civilisation thermo industrielle." +echo "Gagnez en autonomie, en convivialité, en optimisme, en conscience." echo sleep 5 -echo "How the hell did that get there?" -sleep 5 echo -echo "Unable to work out what is dream and what is reality, you shrug your" -echo "shoulders and pick up the figurine. It hasn't transported you anywhere" -echo "this time... but how did it get here? What does it mean?" -echo -sleep 7 -echo "Your phone buzzes. It's a call from a withheld number. You don't usually" -echo "answer those, but you get the feeling that this call might be important." -sleep 5 -echo -echo "You answer the call, and an electronic voice says five words to you" -echo "before the line goes dead." -sleep 3 -echo -echo "Just five words." -sleep 7 -echo -echo "THE KITTEN IS WATCHING YOU." +echo "EMBARQUEZ VERS LE FUTUR" echo sleep 9 echo @@ -67,7 +49,7 @@ do done <"$file1" echo echo -read -p "Press [ENTER] to exit..." +read -p "Appuyez sur [ENTER] pour terminer..." echo clear file1="../art/titleart.ben" @@ -77,9 +59,9 @@ do done <"$file1" echo echo "Merci d'avoir joué le jeu" -echo "Je suis heureux que vous ayez rejoins les astronautes terraformeurs." +echo "Je suis heureux de vous avoir fait partager le rêve des astronautes terraformeurs." echo -echo "Toutes les transitions seront possible quand nous autons franchi celle de la monnaie" +echo "Le futur ne se prédit pas, il se construit. Il se vit." echo echo " - @Fred" echo diff --git a/rooms/meteofrance.sh b/rooms/meteofrance.sh index 4a701e08..89673ca8 100755 --- a/rooms/meteofrance.sh +++ b/rooms/meteofrance.sh @@ -21,6 +21,19 @@ else echo "Mise à jour archive points meteo : $ts" echo $ts > ~/..zen/game/meteo.anim.eu/.ts + PSEUDO=$(cat ~/.zen/game/players/.current/.pseudo 2>/dev/null) + OLDID=$(cat ~/.zen/game/players/.current/.meteo.index 2>/dev/null) + sed s/_OLDID_/$OLDID/g ${MY_PATH}/../templates/meteo_chain.html > /tmp/index.html + sed -i s/_IPFSID_/$IPFSID/g /tmp/index.html + sed -i s/_DATE_/$(date -u "+%Y-%m-%d#%H:%M:%S")/g /tmp/index.html + sed s/_PSEUDO_/$PSEUDO/g /tmp/index.html > ~/.zen/game/players/.current/public/index.html + + # Copy style css + cp -R ${MY_PATH}/../templates/styles ~/.zen/game/players/.current/public/ + + INDEXID=$(ipfs add -rHq ~/.zen/game/players/.current/public | tail -n 1) + echo $INDEXID > ~/.zen/game/players/.current/.meteo.index + echo "LAST VIDEO INDEX http://127.0.0.1:8080/ipfs/$INDEXID" IPFS=$(ipfs add -Rw ~/..zen/game/meteo.anim.eu/) echo $IPFS > ~/..zen/game/meteo.anim.eu/.chain diff --git a/templates/meteo_chain.html b/templates/meteo_chain.html new file mode 100644 index 00000000..108086f3 --- /dev/null +++ b/templates/meteo_chain.html @@ -0,0 +1,50 @@ + + + + + + + ANIMATION METEO _DATE_ + + + + + + + + + + _PSEUDO_ ENREGISTREMENT METEO - Astroport One + + + + + + +
+
+ Astroport "ONE" _PSEUDO_ +
+
+ +
+ +
+ ANIMATION METEO + + +

+ Enregistrement du _DATE_ +

+
+ + +
+ + +