Log In  

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

P#84423 2020-11-18 07:23

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)

see: https://www.lexaloffle.com/pico-8.php?page=manual

P#84429 2020-11-18 10:27 ( Edited 2020-11-19 08:44)

Ha, awesome! That makes it a lot easier, thanks :)

P#84431 2020-11-18 10:37

@Athas you shared an edit link that we can’t open!

P#84470 2020-11-19 02:48

@merwok I'm sorry It looks like I pasted the wrong link. I meant to link to the manual. Linked now.

P#84476 2020-11-19 08:46

We got map export in 0.2.2! 'export name.map.png` if I recall correctly (see manual/changelog).

P#88120 2021-02-24 20:36

[Please log in to post a comment]