poikilos
9 years ago
committed by
Jacob Gustafson
12 changed files with 52 additions and 50 deletions
@ -1 +1 @@ |
|||||
C:\Python27\python.exe chunkymap-regen.py |
C:\Python27\python.exe generator.py |
||||
|
@ -1,9 +1,9 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
echo To reconnect with this screen type: |
echo To reconnect with this screen type: |
||||
echo |
echo |
||||
echo sudo screen -r chunkymapregen |
echo sudo screen -r chunkymapgen |
||||
echo |
echo |
||||
# -S names the socket (-t only sets the title) |
# -S names the socket (-t only sets the title) |
||||
#FAILS: flock -n /var/run/chunkymap-loop.lockfile -c "screen -S chunkymapregen python /home/owner/minetest/util/chunkymap-regen.py" |
#FAILS: flock -n /var/run/chunkymap-regen.lockfile -c "screen -S chunkymapregen python /home/owner/chunkymap/unused/chunkymap-regen.py" |
||||
#FAILS: screen -S chunkymapregen flock -n /var/run/chunkymap-loop.lockfile -c python /home/owner/minetest/util/chunkymap-regen.py |
#FAILS: screen -S chunkymapregen flock -n /var/run/chunkymap-regen.lockfile -c python /home/owner/chunkymap/unused/chunkymap-regen.py |
||||
sudo screen -S chunkymapregen python /home/owner/chunkymap/generator.py |
sudo screen -S chunkymapgen python /home/owner/chunkymap/generator.py |
||||
|
@ -0,0 +1,33 @@ |
|||||
|
# Chunkymap Installation |
||||
|
### OPTIONALLY manual install |
||||
|
(install-chunkymap-on-windows.py does all of required steps in this file automatically) |
||||
|
* put these files anywhere |
||||
|
* python 2.7.x such as from python.org |
||||
|
* run get_python_architecture.py to make sure you know whether to download the following in 32-bit or 64-bit |
||||
|
Administrator Command Prompt (to find it in Win 10, right-click windows menu) |
||||
|
* update python package system: |
||||
|
``` |
||||
|
C:\python27\python -m pip install --upgrade pip wheel setuptools |
||||
|
``` |
||||
|
* numpy such as can be installed via the easy unofficial installer wheel at |
||||
|
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy |
||||
|
then: |
||||
|
``` |
||||
|
#cd to the folder where you downloaded the whl file |
||||
|
C:\python27\python -m pip install "numpy-1.10.4+mkl-cp27-cp27m-win32.whl" |
||||
|
``` |
||||
|
(but put your specific downloaded whl file instead) |
||||
|
* Pillow (instead of PIL (Python Imaging Library) which is a pain on Windows): there is a PIL installer wheel for Python such as 2.7 here: |
||||
|
http://www.lfd.uci.edu/~gohlke/pythonlibs/ |
||||
|
as suggested on http://stackoverflow.com/questions/2088304/installing-pil-python-imaging-library-in-win7-64-bits-python-2-6-4 |
||||
|
then: |
||||
|
``` |
||||
|
C:\python27\python -m pip install "Pillow-3.1.1-cp27-none-win32.whl" |
||||
|
``` |
||||
|
(but put your specific downloaded whl file instead, such as Pillow-3.1.1-cp27-none-win_amd64.whl) |
||||
|
* run (or if your python executable does not reside in C:\Python27\ then first edit the file): |
||||
|
``` |
||||
|
chunkymap-generator.bat |
||||
|
``` |
||||
|
(all the batch does is run C:\Python27\python generator.py) |
||||
|
(generator.py will ask for configuration options on first run and ask for your www root) |
@ -1,5 +1,5 @@ |
|||||
C:\Python27\python.exe chunkymap-regen.py --skip-map true --no-loop true |
C:\Python27\python.exe generator.py --skip-map true --no-loop true |
||||
REM C:\Python27\python.exe chunkymap-regen.py --skip-players=true --skip-map=true |
REM C:\Python27\python.exe generator.py --skip-players=true --skip-map=true |
||||
pause |
pause |
||||
|
|
||||
|
|
||||
|
@ -1,4 +1,4 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root |
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root |
||||
python $HOME/chunkymap/chunkymap-regen.py --skip-map true --noloop true |
python $HOME/chunkymap/generator.py --skip-map true --noloop true |
||||
|
|
||||
|
@ -1,5 +1,5 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root |
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root |
||||
python $HOME/chunkymap/chunkymap-regen.py --no-loop true |
python $HOME/chunkymap/generator.py --no-loop true |
||||
|
|
||||
|
|
||||
|
Loading…
Reference in new issue