Hi,
I would like to create a screenshot of the entire map (8x4 screens of 16x16 tiles) instead of just the "viewport" (1 screen of 16x16 tiles). I've looked for ways to take screenshots from the command line but this doesn't seem to be possible.
My current idea is to use an automation (probably AppleScript since I'm on Mac) to press two keys every second: "X" on which I advance the camera to the next screen using some code attached to btnp(), and "F6" to take the screenshot. Once I have all 32 screenshots I would stitch them together with another script into a single image.
All in all not super complicated, nor a lot of work, but before I write any code I wanted to check if there isn't some easier/ready-made way to do this to avoid facepalming myself later for missing something obvious :)
Cheers, 32bitsago



There is an inbuilt command to take screenshots. You'd still need to stitch together but this should help.
from the manual.
extcmd x
Special system command, where x is a string:
"pause" request the pause menu be opened
"reset" request a cart reset
"go_back" follow the current breadcrumb (if there is one)
"label" set cart label
"screen" save a screenshot
"rec" set video start point
"video" save a .gif to desktop
"audio_rec" start recording audio
"audio_end" save recorded audio to desktop
"shutdown" quit cartridge (from exported binary)
Also you may want to look at the scale of the screenshot. By default its set to -screenshot_scale n scale of screenshots. default: 3 (368x368 pixels)



We got map export in 0.2.2! 'export name.map.png` if I recall correctly (see manual/changelog).
[Please log in to post a comment]