From 8e2141b35f27d3ae6c997d743a29514668720157 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 9 Apr 2023 01:31:33 +0200 Subject: [PATCH] MAP FRIENDS --- API/SALT.sh | 8 ++++---- ASTROBOT/MAP.refresh.sh | 9 ++++++++- tools/Connect_PLAYER_To_Gchange.sh | 6 +++--- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/API/SALT.sh b/API/SALT.sh index a8f1bb9b..b9bfe7ce 100755 --- a/API/SALT.sh +++ b/API/SALT.sh @@ -404,11 +404,11 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh g1friend=${WHAT} stars=${VAL:-1} // Default 1 ★ - MESTAR=$($MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key stars -p $g1friend -n $stars) + $MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/tmp/coucou/${MOATS}.secret.key stars -p $g1friend -n $stars - echo "$HTTPCORS ${MESTAR}"| nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & - end=`date +%s` - echo $APPNAME "(☉_☉ ) ${MESTAR} Execution time was "`expr $end - $start` seconds. + #~ echo "$HTTPCORS ${MESTAR}"| nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & + #~ end=`date +%s` + #~ echo $APPNAME "(☉_☉ ) ${MESTAR} Execution time was "`expr $end - $start` seconds. exit 0 fi diff --git a/ASTROBOT/MAP.refresh.sh b/ASTROBOT/MAP.refresh.sh index 72eb46b3..7662cecc 100755 --- a/ASTROBOT/MAP.refresh.sh +++ b/ASTROBOT/MAP.refresh.sh @@ -27,8 +27,15 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then ## COPY COINS VALUE OF THE DAY cp ~/.zen/tmp/coucou/*.COINS ~/.zen/tmp/${IPFSNODEID}/ - ## COPY FRIENDS BY LEVEL + ## COPY FRIENDS + PLAYERONE=($(ls -t ~/.zen/game/players/ | grep "@" 2>/dev/null)) + echo "FOUND : ${PLAYERONE[@]}" + ## RUNING FOR ALL LOCAL PLAYERS + for PLAYER in ${PLAYERONE[@]}; do + mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ + cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ + done ############################################ NSIZE=$(du -b ~/.zen/tmp/${IPFSNODEID} | tail -n 1 | cut -f 1) diff --git a/tools/Connect_PLAYER_To_Gchange.sh b/tools/Connect_PLAYER_To_Gchange.sh index 572253fe..c2b84d39 100755 --- a/tools/Connect_PLAYER_To_Gchange.sh +++ b/tools/Connect_PLAYER_To_Gchange.sh @@ -330,9 +330,9 @@ do done - ## CLONE IN MAP CACHE - mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ - cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ + #~ ## CLONE IN MAP CACHE + #~ mkdir -p ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ + #~ cp -Rf ~/.zen/game/players/${PLAYER}/FRIENDS/* ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/FRIENDS/ else #########################################