Info

From Pico-8 Wiki
Jump to navigation Jump to search
info
Prints information about the cartridge currently loaded in memory.

You execute this system command from the PICO-8 command prompt.

The command prints the current size of the source code relative to the code size limits, including the character count, the Lua token count, and the compressed byte count. If the code exceeds any of these limits, you will not be able to run the cart or save it in the .p8.png file format.

This command also prints the last known filename for the current cartridge, if any. This is the filename used when running the save command without arguments, and used for detecting changes automatically when using an external editor.

Examples

> info
file: gta6.p8.png
tokens:       604 /  8192
chars:       5322 / 65535
compressed:  2657 / 15616

See also