Commit Graph

226 Commits

Author SHA1 Message Date
f58b005155 Several fixes and improvements
- Change vscode Lua runtime to LuaJIT
- Remove worm entity overrides
- Remove preparePlayer() that sets HP and other stuff
- Change how entites are captured
- Increase entity capture radius
- Capture entities as soon as possible
- Modify entites immediately after they are captured
- Make stringArgs in print local
- Fix JSON marshaling of Noita vectors
- Fix NoitaEntity:GetComponents() and NoitaEntity:GetFirstComponent()
- Add varArg support to NoitaComponent:SetValue() and NoitaComponent:ObjectSetValue()
- Update some EmmyLua annotations
- Fix custom GamePrint
- Add table.pack function that is missing in LuaJIT
2022-07-18 22:07:53 +02:00
40f31011e8 Get component values with correct type
#9
2022-07-18 12:55:51 +02:00
e8c6c8bb8f Rename entities file suffix to json 2022-07-18 11:48:49 +02:00
cfe4193974 Move Noita specific stuff out of JSON library
- Add JSON marshal "interface" that objects can implement
- Fix EmmyLua annotation
- Move JSON marshaler into noita-api.lua

#9
2022-07-18 11:47:59 +02:00
833ab41eeb Serialize entities to JSON
- Add JSON library that can marshal Noita entities and components
- Add Noita API wrapper that exposes entities and components as objects
- Change how the entities file is written, to support lightweight and crash proof appending of JSON data

#9
2022-07-18 01:32:44 +02:00
861272187a Change from entityID to tag for deduplication
The entityID is not unique per entity. Entites may get a new ID on reload. Or the same ID will be reused by another entity.

Attach "MapCaptured" tag to visited entities.
2022-07-17 17:26:08 +02:00
303f1a9c90 Capture entities and write into CSV file
Related issue: #9
2022-07-17 16:54:59 +02:00
79608d0518 Change build architecture to amd64
The precompiled capture DLL will still be x86
2022-07-17 14:40:32 +02:00
4551948460 Fix coordinate systems & Prepare for entity output
- More clearly describe which coordinate system is used
- Fix screen coordinates for CAPTURE_PIXEL_SIZE != 1
- Prepare entity output file
- Fix format of comments
2022-07-17 14:39:18 +02:00
48a152a219 Fix github actions (Try 2) 2022-07-16 23:28:45 +02:00
af890f4df1 Redo how the distribution artifact is created
- Add version information to the stitching tool
2022-07-16 23:22:18 +02:00
729cc50539 Remove distribution script 2022-07-16 17:36:14 +02:00
f238aeb66f Fix github actions (Try 1) 2022-07-16 17:34:01 +02:00
405ea876a4 Update tooling & Fix small things
- Fix some linter warnings
- Update copyright year
- Switch from travis to github actions
- Update libraries
- Switch to go 1.18
2022-07-16 17:29:26 +02:00
30d5bb3aae Merge branch 'master' of https://github.com/Dadido3/noita-mapcap 2022-07-16 17:00:36 +02:00
f27a954bd1 Don't panic on invalid image data
- If there is any image data error, just output an error message
- Also print out the filepath, so the user can delete the invalid image

fixes #11
2022-07-16 16:59:32 +02:00
David Vogel
cc0c501d7c
Update README.md 2022-05-24 17:06:50 +02:00
David Vogel
f1dd89ad86
Update README.md 2022-05-24 17:01:15 +02:00
51dabd544a Update README.md
#7
2020-11-08 18:43:34 +01:00
6a9c32cd99 Add different capture areas
- "Full" map capture is now "extended" map capture
- Made coordinates align with in-game chunks
- Add images for different capture modes
- Update README.md
- Add AREAS.md
2020-10-20 15:29:28 +02:00
0aa2a0f724 Fix missing compatibility.xml in artifacts 2020-10-18 21:29:09 +02:00
47f58553cf Fix some stuff
- Mark mod as compatible
- Change mod description
- Update go version
- Speed up image stitching 2x
- Fix stitching progress bar
2020-10-18 21:18:43 +02:00
c78a8b56ae Update capture method
- Capture hWnd HDC directly (Window can be behind other windows)
- Update README.md
2020-10-18 00:39:58 +02:00
478a6262e8 Fix chunk/pixel alignment
- Adjust coordinates, so that chunks are always in the center of the window
- Modify VIRTUAL_RESOLUTION_OFFSET_X/Y to match window output with expected coordinates
- Fix black line at the bottom of window
- Remove tile bleed/inset while stitching, as it is not needed anymore
2020-10-17 17:27:26 +02:00
151d1d88bd Use DoesWorldExistAt() to speed up capturing
- Remove any delays
- Move UI rendering into capture coroutine, so wait(...) can be reduced
- Use wait(0) instead of wait(1) in coroutines
- Use default value of STREAMING_CHUNK_TARGET
- Don't suggest to change framerate to 600 Hz
- Don't suggest to disable mTrailerMode
- Add "Done!" screen
- Update README.md

fixes #1
fixes #5
2020-06-01 22:40:47 +02:00
8cf480dc37 Optimized parameters
- Reduce CAPTURE_DELAY
- Increase STREAMING_CHUNK_TARGET
2020-05-31 18:00:24 +02:00
24fa53be27 Add countdown to UI 2020-05-31 17:59:36 +02:00
b8fb1d67cf Remove compatibility.xml
As it does not remove the "This mod has not been tested..." message
2020-05-30 20:01:55 +02:00
66de429ab8 Update to go 1.14 & Upgrade dependencies 2020-05-30 19:42:31 +02:00
c56e48b632 Mark mod as compatible with newer noita version 2020-05-30 19:30:08 +02:00
4252e8fbe6 Update README.md 2020-05-30 19:29:39 +02:00
0bc2c9122e Add profiling batch file 2020-05-30 19:26:53 +02:00
a6ff7f4bf9 Update copyright year 2020-05-30 18:16:50 +02:00
13373028cc Fix output image parameter 2019-12-21 22:25:47 +01:00
95c53b96a9 Disable worm movement 2019-12-01 12:47:51 +01:00
1d832ebad1 Add cleanup mode to stitcher 2019-11-30 18:28:17 +01:00
6703074900 Make compatible with nightmare mode
- Remove perks as they are not needed, and not all are available in nightmare mode
2019-11-28 21:05:50 +01:00
52e23df1ee Several stitcher updates
- Use different progress bar
- Add bounds parameter to MedianBlendedImage
- Add progress to MedianBlendedImage
- Replace the `-lowram` flag with `-prerender`
- Update README.md
2019-11-05 02:31:19 +01:00
d76dc20936 Add low RAM mode 2019-11-04 22:44:35 +01:00
dc42ee1eb5 Remove incomplete alignment algorithm 2019-11-04 20:52:47 +01:00
e1fbda1053 Update README.md 2019-11-04 17:56:09 +01:00
6065c26266 Prevent monitor standby & Update README.md 2019-11-03 23:13:55 +01:00
12ea3f83ae Optimizations
- Update README.md
- GameSetCameraPos(x, y) several time while waiting to get all chunks loaded
- Fix tile output coordinates (Top left corner coordinates instead of center)
- Hide some ui parts by default
2019-11-03 00:58:03 +01:00
8cf46232de Several updates
- Add full map capture mode
- Show error on screen if screencapturing failed
- Add additional frame delay for jumps larger than the grid size
- Show progress for map capture mode
- Tweak streaming chunk target
- Update README.md
2019-11-02 21:37:10 +01:00
c87a4d05d0 Several updates
- Change virtual resolution to 1280x720
- Change virtual to screen pixel ratio to 1:1
- Increase grid size to 420
- Make the mod capture only the window (and only the client area)
- Increase STREAMING_CHUNK_TARGET, so that chunks don't unload after some frames
- Add ingame warnings for wrong settings, and information how to fix these
- Update README.md
2019-11-01 02:40:21 +01:00
638f6223c3 Update README.md 2019-10-26 21:50:43 +02:00
d585468f0b Update README.md 2019-10-26 16:10:39 +02:00
704864aee4 Fix travis
The stitch app should be x86-x64, but the previous set variables got overwritten anyways.
2019-10-26 15:54:58 +02:00
acc863c4b1 Update README.md 2019-10-25 23:22:42 +02:00
37d660bb0c Now 2019-10-25 23:01:47 +02:00