diff --git a/ASTROBOT/VOEUX.refresh.sh b/ASTROBOT/VOEUX.refresh.sh index c3388062..3f732ff4 100755 --- a/ASTROBOT/VOEUX.refresh.sh +++ b/ASTROBOT/VOEUX.refresh.sh @@ -112,12 +112,18 @@ do --output ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME} \ --render '.'_ ${PLAYER}'.tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[G1'${WISHNAME}']!tag[G1Voeu]]' - ### PREPARE WISHNAME index.html - cat $MY_PATH/../templates/index_gif4.html \ - | sed -e "s~_LIBRA_~$(myIpfsGw)~g" -e "s~_G1VOEU_~${WISHNAME}~g" -e "s~_PLAYER_~${PLAYER}~g" -e "s~_VOEUNS_~${VOEUNS}~g" \ - > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html - + ################################## ## MAKE EARTH MAP TILES + ################################## + cat $MY_PATH/../templates/index_gif4.html \ + | sed -e "s~_LIBRA_~$(myIpfsGw)~g" \ + -e "s~_G1VOEU_~${WISHNAME}~g" \ + -e "s~_PLAYER_~${PLAYER}~g" \ + -e "s~_VOEUNS_~${VOEUNS}~g" \ + -e "s~_ASTRONAUTENS_~${ASTRONAUTENS}~g" \ + > ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/index.html + ### PREPARE WISHNAME index.html + ################################## ### ADD TO IPFS echo "++WISH PUBLISHING++ ipfs add -qHwr ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/*" @@ -125,7 +131,7 @@ do ipfs name publish -k $VOEUKEY /ipfs/$JSONIPFS # PUBLISH $VOEUKEY ## MOVE INTO PLAYER AREA - echo "Ŋ1 FLUX $(myIpfsGw)${VOEUNS}" + echo ">>> $VOEUKEY : Ŋ1 FLUX $(myIpfsGw)${VOEUNS}" echo "~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}" mv -f ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/g1voeu/${WISHNAME}/* ~/.zen/game/players/${PLAYER}/G1${WISHNAME}/${G1PUB}/ diff --git a/templates/index_gif4.html b/templates/index_gif4.html index 4a16f5c2..8976b60d 100644 --- a/templates/index_gif4.html +++ b/templates/index_gif4.html @@ -3,19 +3,19 @@ _PLAYER_ : TW : _G1VOEU_ - - + + - + - - - + + + - - - - + + + + - + -
+ + +

G1_G1VOEU_

@@ -69,8 +91,7 @@
-
- +
- - - - -
+
-

Votre Monde

+

Monde(s)

-

♥BOX, sauvegarde, diffuse et partage vos DATA 👍 à l'abris dans "Le Claude"

+

La♥BOX, sauvegarde, diffuse et partage vos DATA 👍 à l'abris dans "Le Claude"

Powered by Astroport.ONE

@@ -206,7 +199,6 @@
-
diff --git a/tools/make_image_ipfs_index_carousel.sh b/tools/make_image_ipfs_index_carousel.sh index 6c3f05f5..b57fb338 100755 --- a/tools/make_image_ipfs_index_carousel.sh +++ b/tools/make_image_ipfs_index_carousel.sh @@ -6,11 +6,12 @@ MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized #Set Path to Images img_dir="$1" if [[ ! -d $img_dir ]]; then - echo "STATION CAROUSEL MODE" +PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null)) + [[ ! $PLAYERONE ]] && echo "NO PLAYER IN THE GAME HERE" && exit 1 + echo "ASTROPORT STATION CAROUSEL MODE" rm -Rf ~/.zen/tmp/carousel 2>/dev/null mkdir -p ~/.zen/tmp/carousel # Make it with latest PLAYERS WALLETS -PLAYERONE=($(ls -t ~/.zen/game/players/ | grep -Ev "localhost" 2>/dev/null)) ## RUNING FOR ALL LOCAL PLAYERS for PLAYER in ${PLAYERONE[@]}; do pub=$(cat ~/.zen/game/players/$PLAYER/.g1pub) @@ -26,6 +27,11 @@ for PLAYER in ${PLAYERONE[@]}; do && ( cp ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS.$MOATS 2>/dev/null; \ echo $COINS > ~/.zen/game/players/${PLAYER}/ipfs/G1SSB/COINS ) + ASTRONAUTENS=$(cat ~/.zen/game/players/${PLAYER}/.playerns) + + ASTR="" + OPORT="" + done img_dir="$HOME/.zen/tmp/carousel" fi @@ -88,11 +94,11 @@ if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then img_alt=$(echo $img_info | cut -d ' ' -f3) if [ $num -eq 1 ]; then echo "
- \"$img_alt\" + $ASTR\"$img_alt\"$OPORT
" >> $html_file else echo "
- \"$img_alt\" + $ASTR\"$img_alt\"$OPORT
" >> $html_file fi num=$((num+1))