Skip to content

Commit 6065c26

Browse files
committed
Prevent monitor standby & Update README.md
1 parent 12ea3f8 commit 6065c26

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Addon that captures the map and saves it as image.
44

55
![missing image](images/example1.png)
66

7-
A resulting image with close to 3 gigapixels can be [seen here](https://easyzoom.com/image/158284/album/0/4) (Warning: Spoilers).
7+
A resulting image with 3.8 gigapixels can be [seen here](https://easyzoom.com/image/159431) (Warning: Spoilers).
88

99
## System requirements
1010

@@ -80,26 +80,32 @@ For the best experience and result, follow these steps:
8080
internal_size_w="840"
8181
window_h="840"
8282
window_w="840"
83+
fullscreen="0"
8384
framerate="600"
8485
...
8586
>
8687
```
8788

88-
3. Start `.../Noita/noita_dev.exe`
89-
- If it's not there, copy it from `.../Noita/tools_modding/noita_dev.exe`
90-
- If it's there, check if it is recent. If not, also copy it.
89+
If that file doesn't exist do step 3 and 5, and come back here.
90+
91+
3. Copy `.../Noita/tools_modding/noita_dev.exe` to `.../Noita/noita_dev.exe`.
92+
- Also copy it again, if there was an update.
93+
94+
4. Patch your `.../Noita/noita_dev.exe` with [Large Address Aware](https://www.techpowerup.com/forums/threads/large-address-aware.112556/) or a similar tool.
95+
96+
5. Start `.../Noita/noita_dev.exe`.
9197
- Click `Ignore always` on the `ASSERT FAILED!` requester.
9298

93-
4. When the game is loaded (When you can control your character):
99+
6. When the game is loaded (When you can control your character):
94100
- Press `F5`, `F8` and `F12` (In that order).
95101
- Press `F7`, and disable `mTrailerMode` in the menu. (This should reduce chunk loading problems)
96102
- Press `F7` again to close the menu.
97103

98-
5. Press the `>> Start capturing full map <<` button.
104+
7. Press the `>> Start capturing full map <<` button.
99105

100-
6. Wait a few hours until it's complete.
106+
8. Wait a few hours until it's complete.
101107

102-
7. Stitch the image as described above.
108+
9. Stitch the image as described above.
103109

104110
## License
105111

files/capture.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ local function captureScreenshot(x, y, rx, ry)
5454
UiCaptureProblem = "Screen capture failed. Please restart Noita."
5555
end
5656
UiHide = false
57+
58+
-- Reset monitor and PC standby each screenshot
59+
ResetStandbyTimer()
5760
end
5861

5962
function startCapturingSpiral()

files/external.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ffi.cdef [[
2020

2121
bool GetRect(RECT* rect);
2222
bool Capture(int x, int y);
23+
24+
int SetThreadExecutionState(int esFlags);
2325
]]
2426

2527
function TriggerCapture(x, y)
@@ -35,3 +37,8 @@ function GetRect()
3537

3638
return rect
3739
end
40+
41+
-- Reset computer and monitor standby timer
42+
function ResetStandbyTimer()
43+
ffi.C.SetThreadExecutionState(3) -- ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED
44+
end

0 commit comments

Comments
 (0)