Log In  

Hey!

I want to find a way to run my code from other editors such as vim or atom. I havent found a solution to this yet.

I know I can run a cartridge from terminal by typing "pico8 -run mycart.p8" for example. The problem with this is that it boots up the whole console before booting the game.

Do anyone know a way to just boot the game in an already running pico-session? That would be awesome.

EDIT: I just got the idea. If you run load("mycart.p8") in your code the cart gets reloaded and run with the new code. Is it possible to use the gpio to send a command that triggers load("mycart.p8") within the code? For a computer that does not have real a gpio-header I guessing you would have to simulate gpio?

P#40170 2017-05-04 05:52 ( Edited 2017-05-04 14:04)

Not exactly what you're looking for but when you have PICO-8 selected you can hit Ctrl+R to reload changes from disc and reload the file. So you can save in your editor and then just go to PICO-8 and Ctrl+R.

P#40171 2017-05-04 07:59 ( Edited 2017-05-04 11:59)

Thanks. I already knew this though. I should have mention that :)

I wanted a better way, but I am realizing that it is much easier just doing the way you mentioning or use the internal editor. Trying to hack something together is not really worth it.

Hopefully the pico creator will add some external api one day :)

P#40172 2017-05-04 08:14 ( Edited 2017-05-04 12:14)

maybe have a look there if you're on windows: p8run thread

P#40182 2017-05-04 10:04 ( Edited 2017-05-04 14:04)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 12:11:21 | 0.006s | Q:14