From 245d92fb76ab290dc3acd72d80af942a151d66c0 Mon Sep 17 00:00:00 2001 From: kaweepatinn1 <37656629+kaweepatinn1@users.noreply.github.com> Date: Wed, 12 Jul 2023 03:10:45 +0800 Subject: [PATCH 1/5] Add files via upload --- run-dynmap-assemble.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 run-dynmap-assemble.bat diff --git a/run-dynmap-assemble.bat b/run-dynmap-assemble.bat new file mode 100644 index 0000000..fc83f98 --- /dev/null +++ b/run-dynmap-assemble.bat @@ -0,0 +1,15 @@ +@echo off +setlocal enabledelayedexpansion +for /F "tokens=2 delims==" %%a in ('wmic os get localdatetime /value') do set "datetime=%%a" +set "dateandtime=!datetime:~0,4!-!datetime:~4,2!-!datetime:~6,2!_!datetime:~8,2!-!datetime:~10,2!" +echo !dateandtime! +set "theyear=!datetime:~0,4!" +set "themonth=!datetime:~4,2!" +set "thedate=!datetime:~6,2!" +@echo on +mkdir DynmapRenders +mkdir DynmapRenders\Year-%theyear% +mkdir DynmapRenders\Year-%theyear%\Month-%themonth% +mkdir DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate% +python3 dynmap-assemble.py --world world --map t --bgcolor transparent --resize 16 --output DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate%\%dateandtime%.png +endlocal \ No newline at end of file From 3987c6c647338fb9243287b2eafe881858226fec Mon Sep 17 00:00:00 2001 From: kaweepatinn1 <37656629+kaweepatinn1@users.noreply.github.com> Date: Wed, 12 Jul 2023 03:11:39 +0800 Subject: [PATCH 2/5] Delete run-dynmap-assemble.bat --- run-dynmap-assemble.bat | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 run-dynmap-assemble.bat diff --git a/run-dynmap-assemble.bat b/run-dynmap-assemble.bat deleted file mode 100644 index fc83f98..0000000 --- a/run-dynmap-assemble.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off -setlocal enabledelayedexpansion -for /F "tokens=2 delims==" %%a in ('wmic os get localdatetime /value') do set "datetime=%%a" -set "dateandtime=!datetime:~0,4!-!datetime:~4,2!-!datetime:~6,2!_!datetime:~8,2!-!datetime:~10,2!" -echo !dateandtime! -set "theyear=!datetime:~0,4!" -set "themonth=!datetime:~4,2!" -set "thedate=!datetime:~6,2!" -@echo on -mkdir DynmapRenders -mkdir DynmapRenders\Year-%theyear% -mkdir DynmapRenders\Year-%theyear%\Month-%themonth% -mkdir DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate% -python3 dynmap-assemble.py --world world --map t --bgcolor transparent --resize 16 --output DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate%\%dateandtime%.png -endlocal \ No newline at end of file From 58c323b871a4ff23e41527e1e3be8819c545d7d5 Mon Sep 17 00:00:00 2001 From: kaweepatinn1 <37656629+kaweepatinn1@users.noreply.github.com> Date: Wed, 12 Jul 2023 03:13:13 +0800 Subject: [PATCH 3/5] Script to run dynmap-assemble Script can be scheduled to continue running on windows using the windows scheduler at certain times. This can be used to take snapshots at certain time periods to make a montage of a map over time. --- run-dynmap-assemble.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 run-dynmap-assemble.bat diff --git a/run-dynmap-assemble.bat b/run-dynmap-assemble.bat new file mode 100644 index 0000000..fc83f98 --- /dev/null +++ b/run-dynmap-assemble.bat @@ -0,0 +1,15 @@ +@echo off +setlocal enabledelayedexpansion +for /F "tokens=2 delims==" %%a in ('wmic os get localdatetime /value') do set "datetime=%%a" +set "dateandtime=!datetime:~0,4!-!datetime:~4,2!-!datetime:~6,2!_!datetime:~8,2!-!datetime:~10,2!" +echo !dateandtime! +set "theyear=!datetime:~0,4!" +set "themonth=!datetime:~4,2!" +set "thedate=!datetime:~6,2!" +@echo on +mkdir DynmapRenders +mkdir DynmapRenders\Year-%theyear% +mkdir DynmapRenders\Year-%theyear%\Month-%themonth% +mkdir DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate% +python3 dynmap-assemble.py --world world --map t --bgcolor transparent --resize 16 --output DynmapRenders\Year-%theyear%\Month-%themonth%\Date-%thedate%\%dateandtime%.png +endlocal \ No newline at end of file From 663a112c32436d84c61413698b8bddc256a04b32 Mon Sep 17 00:00:00 2001 From: kaweepatinn1 <37656629+kaweepatinn1@users.noreply.github.com> Date: Wed, 12 Jul 2023 03:23:25 +0800 Subject: [PATCH 4/5] Updated README.md to include run-dynmap-assemble.bat --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index fc42492..909918d 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,28 @@ optional arguments: 'the_end', 'black', 'white'] or use hex form (#6495ed) -r RESIZE, --resize RESIZE Size in px to which each tile will be resized + -o OUTPUT, --output OUTPUT + Output file. Default is WORLD-NAME_MAP-TYPE.png ``` +#### run-dynmap-assemble #### + +When run on windows, will run dynmap-assemble with the parameters specified on the second last line (can be changed). +Creates a directory with the Year, Month, and Date of render, with the filename being the full time of render. + +Use this with [https://towardsdatascience.com/automate-your-python-scripts-with-task-scheduler-661d0a40b279](url) +to automate renders of your favorite minecraft world at set times! This can be used to create a montage of your +world over longer periods of time where manually rendering everyday would be a pain. + #### BG Colors cheatsheet #### +- `transparent` - `overworld` - `nether` - `the_end` (this one isn't black, just very dark violet) +- `black` +- `white` + or any other hex (#6495ed) ![palette](https://user-images.githubusercontent.com/5108025/118475069-78de5e00-b714-11eb-9870-21e939c971e3.png) From 64b77982b7cdd1d9e0a40ac1dae9575c09a4054a Mon Sep 17 00:00:00 2001 From: kaweepatinn1 <37656629+kaweepatinn1@users.noreply.github.com> Date: Wed, 12 Jul 2023 03:24:34 +0800 Subject: [PATCH 5/5] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 909918d..9c5b244 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ world over longer periods of time where manually rendering everyday would be a p #### BG Colors cheatsheet #### - `transparent` -- `overworld` -- `nether` -- `the_end` (this one isn't black, just very dark violet) +- `overworld` (left) +- `nether` (center) +- `the_end` (right: this one isn't black, just very dark violet) - `black` - `white` or any other hex (#6495ed)