From 8cf480dc374e38ad9997968b4d5ba2aaa01be916 Mon Sep 17 00:00:00 2001 From: David Vogel Date: Sun, 31 May 2020 18:00:24 +0200 Subject: [PATCH] Optimized parameters - Reduce CAPTURE_DELAY - Increase STREAMING_CHUNK_TARGET --- README.md | 9 ++++++++- files/capture.lua | 2 +- files/magic_numbers.xml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a87799f..4425c45 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,14 @@ Here is a step by step explanation how to do so: ``` + `STREAMING_CHUNK_TARGET` seems to have some influence on missing chunks while grabbing screenshots. + If you have problems with not generated (only background) areas, modify this value. + 3. Change the following values inside of `.../Noita/save_shared/config.xml` (Not the one in AppData!) to ``` xml @@ -92,6 +95,10 @@ Here is a step by step explanation how to do so: ## Advanced stuff +You can increase the "countdown" time in `.../Noita/mods/noita-mapcap/files/capture.lua`. +`CAPTURE_DELAY` is the time in frames the script has to wait until it can take a screenshot. +Also, when a chunk is captured, which is not a neighbor of the previous chunk, `CAPTURE_BIGJUMP_DELAY` gets added to the countdown. + If you use `noita_dev.exe`, you can enable the debug mode by pressing `F5`. Once in debug mode, you can use `F8` to toggle shaders (Includes fog of war), and you can use `F12` to disable the UI. There are some more options in the `F7` and `Shift + F7` menu. You can capture in a different resolution if you want or need to. If you do so, you have to adjust some values inside of the mod. diff --git a/files/capture.lua b/files/capture.lua index 2466c68..62c1430 100644 --- a/files/capture.lua +++ b/files/capture.lua @@ -5,7 +5,7 @@ CAPTURE_PIXEL_SIZE = 1 -- Screen to virtual pixel ratio CAPTURE_GRID_SIZE = 420 -- in ingame pixels. There will always be 3 to 6 images overlapping -CAPTURE_DELAY = 15 -- in frames +CAPTURE_DELAY = 8 -- in frames CAPTURE_BIGJUMP_DELAY = 20 -- in frames. Additional delay after doing a "larger than grid jump" CAPTURE_FORCE_HP = 4 -- * 25HP diff --git a/files/magic_numbers.xml b/files/magic_numbers.xml index 87c7908..e6c149b 100644 --- a/files/magic_numbers.xml +++ b/files/magic_numbers.xml @@ -1,6 +1,6 @@