Browse Source

updated naming of signals txt

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
3441bc931c
  1. 8
      README.md
  2. 2
      generator.py
  3. 2
      install-chunkymap-on-ubuntu.sh
  4. 2
      send signal - STOP.bat
  5. 2
      send signal - stop refreshing player.bat
  6. 2
      send signal - verbose_enable True.bat
  7. 2
      signals example - verbose_enable True.txt

8
README.md

@ -15,12 +15,12 @@ This program comes without any warranty, to the extent permitted by applicable l
#Then if you are using screen and want to leave the output without terminating the process press Ctrl a d
#NOTE: now that loop is default, cron job scripts, which now disable loop for compatibility with new version, are ALL optional and NOT recommended
# ( to run only once, run: python chunkymap-regen.py --no-loop true )
* Change program options (or stop it) while looping or rendering by placing chunkymap-signals.txt in the same directory as chunkymap-regen.py (see chunkymap-signals example files)
* to maintain stability of your text editor, save the file, close it, then move/copy it to the directory (or save it as something else then rename it to chunkymap-signals.txt).
* Change program options (or stop it) while looping or rendering by placing signals.txt in the same directory as chunkymap-regen.py (see signals example files)
* to maintain stability of your text editor, save the file, close it, then move/copy it to the directory (or save it as something else then rename it to signals.txt).
* alternatively, in *nix do something like:
echo "refresh_map_enable:False" > $HOME/chunkymap/chunkymap-signals.txt
echo "refresh_map_enable:False" > $HOME/chunkymap/signals.txt
sleep 15s
echo "loop_enable:False" > $HOME/chunkymap/chunkymap-signals.txt
echo "loop_enable:False" > $HOME/chunkymap/signals.txt
* list of signals:
loop_enable:True
loop_enable:False

2
generator.py

@ -430,7 +430,7 @@ class MTChunks:
return os.path.join(os.path.dirname(os.path.abspath(__file__)), self.get_chunk_image_name(chunky_x, chunky_z))
def get_signal_name(self):
return "chunkymap-signals.txt"
return "signals.txt"
def get_signal_path(self):
return os.path.join(os.path.dirname(os.path.abspath(__file__)), self.get_signal_name())

2
install-chunkymap-on-ubuntu.sh

@ -59,7 +59,7 @@ rm "$CHUNKYMAP_DEST/install-chunkymap-on-windows.py"
# mkdir "$CHUNKYMAP_DEST/chunkymap"
#fi
#cp -f "$CHUNKYMAP_INSTALLER_PATH/minetestmapper-expertmm.py" "$CHUNKYMAP_DEST/"
#cp --no-clobber $CHUNKYMAP_INSTALLER_PATH/chunkymap-signals* "$CHUNKYMAP_DEST/"
#cp --no-clobber $CHUNKYMAP_INSTALLER_PATH/signals* "$CHUNKYMAP_DEST/"
#cd "$CHUNKYMAP_INSTALLER_PATH"
cd $CHUNKYMAP_DEST
python replace-with-current-user.py # the py file only manipulates the shell scripts that must run as root but use regular user's minetest

2
send signal - STOP.bat

@ -1,3 +1,3 @@
echo loop_enable:False > tmp_signals.txt
echo refresh_map_enable:False >> tmp_signals.txt
rename tmp_signals.txt chunkymap-signals.txt
rename tmp_signals.txt signals.txt

2
send signal - stop refreshing player.bat

@ -1 +1 @@
echo refresh_players_enable:False > chunkymap-signals.txt
echo refresh_players_enable:False > signals.txt

2
send signal - verbose_enable True.bat

@ -1 +1 @@
echo verbose_enable:True > chunkymap-signals.txt
echo verbose_enable:True > signals.txt

2
signals example - verbose_enable True.txt

@ -1,3 +1,3 @@
#or echo "verbose_enable:True" > $HOME/chunkymap/chunkymap-signals.txt
#or echo "verbose_enable:True" > $HOME/chunkymap/signals.txt
verbose_enable:True

Loading…
Cancel
Save