When I tried to use the flag for exporting when calling pico8 from the command line :
pico8 usas.p8 -export usas.p8.html
I get ths error message
"please capture a label first"
Is it possible to export an image from the command line, it works if I press f7 in pico8, make a capture and manually export. But I would like to script this and export the html headless.
Second question, is it possible to use another HTML template or alter the default one, so I could add initial javascript ?
I could be wrong about this, but I don't think headless label capture is possible because it wouldn't know what to capture.
You can definitely edit the HTML & JS files though, they're just like any other HTML/JS. You could probably create your own, but honestly there's so much generated code in the HTML, you're better off just modifying the generated one.
you can capture a label with F7 or code (extcmd("label")
)
the proper way is to have the label saved in your P8 cart, so that all versions have it
(there are also other techniques to import a label from an existing png – search this forum!)
to customize html exports: https://www.lexaloffle.com/dl/docs/pico-8_manual.html#Web_Applications_
people use this to add networking (with the gpio memory that’s accessible from javascript code), add a CRT effect…
ah okay: this..
https://pico-8.fandom.com/wiki/Extcmd
Also trying this, same similar, but different
https://www.lexaloffle.com/bbs/?pid=81260#p
headless , I have this thing in my mind where I want to export the js file on run, and use the gpio pens to get debug information and print them in the console of the window ( instead of using printh )..
Second try would be an overlay on the canvas with debug info.. just because
[Please log in to post a comment]