Caaz / pico8-lib

A simple library of PICO-8 Utilities, and a compiler to throw them together.
7 stars 2 forks source link

Live compile compiles constantly (OOF?) #22

Open sourencho opened 2 years ago

sourencho commented 2 years ago

First of all, this library is fantastic, thank you so much for making this 🙏

Just wanted to ask how you're supposed to use lib/live-compile.pl I'm running perl lib/live-compile.pl test.p8 and reloading fifo.p8 using ctrl+r in pico8 version 34 but it keeps compiling over and over again without me doing anything. And when i try to run fifo.p8 it's halfway between writing and throws an error.

lib/compile.pl works as expected.

Caaz commented 2 years ago

Hey, sorry for the late reply! I don't check github too often these days.

Ever since pico-8 started having an import function I actually haven't been using live-compile.pl I'd recommend just using pico-8's native import feature. Though, I suppose the compile feature was able to show what imported features weren't use, which is fancy.

I'd say you're using the script correctly, where it goes wrong is likely in how pico-8 is reading the file now, It may be reading in parts. I think the way this works on a technical level is the fifo would see the read request, do the processing, and spit it back out, but if pico-8 is trying to read in parts this would probably cause some funk.