Log In  

Hey all, me and a friend have been talking about the possibilities of being able to split a pico script into multiple files and compile them as they're edited for a while, so here is a python script that'll let you do that, hopefully it works well.

https://github.com/ambocclusion/pico-8-compiler

Let me know what you think!

Also if you plan on using it, back up frequently or use version control as it might end up wiping your file more than once because it's super destructive!!!!

P#22575 2016-06-09 21:46 ( Edited 2016-06-11 16:24)

Given that warning, I'm not even going to try this. Sorry!

P#22608 2016-06-10 13:02 ( Edited 2016-06-10 17:02)

Yeah I plan on making it more stable in the future but so far out of the few hours I've worked with it, it hasn't wiped my file yet but it has while I was developing it so it's bound to happen. I plan on adding a backup feature as well so we can avoid any major issues.

Keep an eye out on development for stability updates though!

P#22616 2016-06-10 14:35 ( Edited 2016-06-10 18:36)

what are the benefit over simpler merging of all the project files together?

P#22620 2016-06-10 15:23 ( Edited 2016-06-10 19:23)

Automatic compilation after a file changes. Simply hitting save on a .lua file will cause the compiler to regenerate the .p8 file. Also going to introduce more features as time goes on, like two-way editing, image and map data (Tiled support?), and automatic running after compilation.

P#22622 2016-06-10 15:55 ( Edited 2016-06-10 19:55)

(Tireless self-promotion:) If you need help with cart parsing in Python: https://github.com/dansanderson/picotool Should be a stable basis if you're actually worried about producing a corrupt result. (Can't tell if you're just being self-deprecating. :) )

P#22624 2016-06-10 17:18 ( Edited 2016-06-10 21:18)

I was looking at this! I'll see what I can garner.

I'm not super confident in the results as I haven't been writing python long and I have experienced more than a few corrupt results while working on it. But it's loads more stable, I was using it all last night to program in p8. It seems to be no more unstable than using any other external editor with pico 8 at the moment.

P#22630 2016-06-10 18:09 ( Edited 2016-06-10 22:09)

Cool. I like projects like this :)

Also some shameless self-promotion - I did something a little similiar but it's more of just a build system (with a Makefile) with the ability to grab all graphics and sounds from a separate .p8 file - and it allows the lua-source file to include other source-files.

https://github.com/jayminer81/pico8_project_template

P#22683 2016-06-11 12:24 ( Edited 2016-06-11 16:24)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 15:25:15 | 0.008s | Q:20