Mods / Map exporter (DB to PNG)
Category:
#Utility
Author: SiiMeR
Side: Client
Created: Feb 5th at 3:34 PM
Last modified: Feb 5th at 3:38 PM
Downloads: 115
Follow Unfollow 10
Author: SiiMeR
Side: Client
Created: Feb 5th at 3:34 PM
Last modified: Feb 5th at 3:38 PM
Downloads: 115
Follow Unfollow 10
Latest version:
VintageStoryDBToPNG.zip
Vintage Story Map Exporter
This is a tool to read the color values of your Vintage Story client-side map file from a .db file and export them to a .png file.
How to use
-
Fill in the values in config.json
- MapFile - The path to your map .db file (usually found in VintageStoryData/Maps). Warning: Make a backup of your map before using this program.
- The bounding box of the exported map. Note that these are absolute coordinates (you can find your position ingame by writing
.cp aposi
to the chat). From there you will have to guesstimate the bounds:- MinX - The leftmost coordinate the map will be exported from
- MaxX - The rightmost coordinate the map will be exported to
- MinY - The uppermost coordinate the map will be exported from (in VS, the Y coordinates are flipped)
- MaxY - The lowermost coordinate the map will be export to
-
Run the provided
VintageStoryDBToPNG.exe
file -
The map will be exported to the same directory
The map colors are from the Medieval Map mod
Limitations
- The max size of the exported map is limited due to the Bitmap class in C#. You can export about 10k x 10k of your explored map at a time. Or you could implement stitching of smaller map pieces yourself :)
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1 | 115 | Feb 5th at 3:38 PM | Show | VintageStoryDBToPNG.zip |
Hey
If you install the Medieval Map mod, you must re-explore every chunk to make the game repaint the chunks. I think referencing the game config to color the maps during exporting would be great, but I am not sure how easy that is. Maybe I will add it in a future version (kinda busy right now). The same goes for the default coloring of the background.
Thanks for the suggestion though!
A suggestion:
It seems that by default, the export contains only chunks that have been explored, but for the purposes of stitching together several images into larger one, or layering images from several players into a larger one, would it be possible to have an option that fills the "empty" space up to the edge of the defined position edges? That way I can predictably export the same area from multiple maps and layer them, or step over another 10k in a given direction and stick that image right by the last one I exported.
anyways, amazing mod though!
Heeeey again, so the exporting is working great for me! Awesome work! Only issue is I'm not getting the Medievil Map Mod colors, but instead the regular map colors. Is there a place to double-check the config for it? Does the program reference the game files at all for colors? I'm on 18.xx atm.
Ahhhhh, okay, I just didn't use absolute coordinates, thanks 👍
Hey,
The error indicates that the coordinates you provided didn't have any map chunks in them.
Are the coordinates correct? Keep in mind that they need to be absolute coordinates, not the ones shown in the Map view. You can get the absolute coordinates of your current position by running the .cp aposi command in your chat. From there, you have to play around with the numbers a bit.
Hope this helps!
Hey Siimer, love the idea here! I seem to be having trouble running it though. I'm getting this error when running the exe:
My config looks like:
Love seeing my city of Nova Cale in the thumbnail😊! Thank you so much for this SiiMeR! 💕
This only works for areas you have already discovered. Basically, anything you see in the in-game map view is exported
Does this reveal the map areas under the fog of war or only the areas you've discovered?