Log In  

Hi Community,

I'm brand new to PICO-8 (like, started using it today). I have an issue. A typo in my filename when i saved it, so I re-saved my game and now I have two :(

testgame.p8
testgame#.p8

I've tried DEL/DELETE [filename] but i get the message:

SYNTAX ERROR
SYNTAX ERROR NEAR 'TESTGAME'

I want to remove testgame#.p8

This may be trivial, but i like a clean environment.

Thanks,
roberto

P#48478 2018-01-23 11:05 ( Edited 2018-01-23 22:57)

created a testdir and tried to delete this: FAILED!

tried:
DELETEDIR(foldername)
RM -R(foldername)

help!

P#48479 2018-01-23 11:18 ( Edited 2018-01-23 16:18)

I think PICO-8 limits you to only constructive commands from within itself. Nothing destructive like "del" or "rmdir".
I think this is to keep anyone from managing to harm your computer with a malware game.

On the bright side, zep makes it easy to do the work using your desktop UI. Just type "folder" inside PICO-8 and it should spawn, e.g. in Windows, a File Explorer window already in the right location for you to manipulate the actual .p8 files.

P#48480 2018-01-23 11:34 ( Edited 2018-01-23 16:36)

Thanks Felice, that makes sense ;)

P#48493 2018-01-23 16:27 ( Edited 2018-01-23 21:27)

Yeah, makes sense. Especially now that PICO-8 does binary exports. If you want to modify your files and directories, you'll need to do it through your OS (and rightfully so!)

P#48495 2018-01-23 17:57 ( Edited 2018-01-23 22:57)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 20:17:00 | 0.006s | Q:13