Dadido3 / noita-mapcap

A tool to capture a Noita world as a huge image
MIT License
66 stars 8 forks source link
capture-screenshots cartography image-stitching map mapping noita noita-mod noitagame screenshot stitching

Noita map capture addon

A mod for Noita that can capture images of the world and stitch them into one large image. It works with the regular Noita build and the dev build.

Title image

Map captures created with this mod can be viewed on map.runfast.stream (may contain spoilers).

If you are interested in creating similar captures, or if you want to contribute your own captures to map.runfast.stream, you can take a look at github.com/acidflow-noita/noitamap. There you'll find detailed step-by-step instructions on how to quickly capture large parts of the Noita world with as little visual glitches and other issues as possible.

System requirements

Installation

  1. Have Noita installed.
  2. Download the latest release of the mod from this link (The noita-mapcap-windows-amd64.zip, not the source code)
  3. Unpack it into your mods folder, so that you get the following file structure .../Noita/mods/noita-mapcap/mod.xml. You can open the mods folder by clicking Open mod folder from within the Noita mod menu.
  4. Refresh the mod list.
  5. Enable the MapCapture mod.

Usage

You can use the mod with either the regular Noita version, or the dev build noita_dev.exe that is located in the game installation directory. Using noita_dev.exe has the advantage that you can freeze pixel and rigid body simulations. Also, it uses a different location for its savegames, which means you don't have to worry about any save you may have left unfinished on the regular build.

Every setting you want or need to change can be found inside the mod settings tab of the game options. By default the mod settings will be set to useful values. An explanation for every setting can be found in the Mod settings section.

Once you have changed the mod settings to your liking you can start or resume a game with the mod enabled. You may see message boxes that suggest actions. This can happen if the mod detects game settings that do not align with what you have set in the mod settings. All you need to do is follow the given instructions, like:

Auto setup requester example

Hint Most of the changes this mod does to Noita are non permanent and will be gone after a restart or a new game, except:

  • Window, internal and virtual resolutions, if requested.
  • Screen shake intensity, which will always be disabled.

You can always right click Record button to reset the above mentioned settings back to Noita's default.

After all issues have been resolved you are free to start capturing.

To the top left of the window are 3 buttons:

To stitch the final result, click Stitch button to open the directory of the stitching tool. Start stitch.exe and proceed with the default values. After a few minutes the file output.png will be created.

Hint See stitcher/README.md for more information about all stitcher parameters.

Mod settings

Hint Use right mouse button to reset any mod setting to their default.

Advanced mod settings

Example settings

Use these settings if you want to capture your in-game action. The sliders are at their default values:

Live capture example settings

Use these settings to capture the base layout with the least amount of glitches and artifacts. The sliders are at their default values:

Area capture example settings

Troubleshooting

Noita crashes a lot

There is not a lot you can do about it:

More information/details about this can be found here.

I get "ASSERT FAILED!" messages

These can't really be prevented. All you can do is to click Ignore always.

Alternatively you can run the same capture in the regular Noita (non dev build), which has these messages disabled. With the exception that you can't disable the pixel and rigid body simulations, the mod works just as well as in the dev build.

The mod messed up my game

Custom resolution settings are retained even if you restart Noita or start a new game. In the worst case they will cause the game world to not render correctly, or they will make your game only use a fraction of the window.

To reset any permanent settings that may have been set by the mod:

  1. Enable the mod.
  2. Start a new game.
  3. Right click Record button and follow instructions.

Hint If you have changed any resolutions in your game's config.xml, you may have to re-apply these changes. This also applies if you use any mods that makes Noita work on ultra-wide screens. For these mods to work again after a reset, you need to go through their installation steps again.

Alternatively, you can reset all game settings by deleting:

The objects in the stitched image are blurry

The stitcher uses median blending to remove any single frame artifacts and to correct for not rendered chunks. This will cause fast moving objects to completely disappear, and slow moving objects to get blurry.

To disable median blending, use the stitcher with Blend tile limit set to 1. This will cause the stitcher to only use the newest image tile for every resulting pixel.

Viewing and hosting captures

The resulting stitched images are quite big. You can read this comment that addresses how you can view, convert or even self-host your images.

You can use github.com/Dadido3/noita-mapcap-openseadragon if you want to host a browser based viewer on your own web space.

If you want to make your captures available to a wider audience, you should check out the github.com/acidflow-noita/noitamap project, which aims to make maps of all game modes (including mods) available to the public.

Acknowledgements

This mod uses the LuaNXML library by Zatherz.

Thanks to Daniel Niccoli for figuring out how to change some in-game options by manipulating process memory.

License

MIT