Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

So, rather naively, I've just had an Octo tab open for a couple of days while I play about. However today after undoing something, the program text switched to "loading...", at which point I couldn't get anything back (I even inspected local storage through the web developer tools). I assume I'm out of luck, but just thought I'd ask if there as any magic to get my code back, before I move to a more robust editor.

(+1)

You may be out of luck, I'm afraid. Octo's local storage cache is a best-effort measure to rescue your programs from closed tabs. If you want your code to stick around for the long haul, your best bet is to save your code in a local text file or export a cartridge file.

Is there any more “developer like environment” hiding in the Octo repo somewhere? IE, I save my files on disk and the web browser auto-refreshes or at the very least I manually refresh it and my program is running the updated code from disk…

I could hack this together myself but wonder if anyone else has already done the work…

(+2)

There are syntax definitions for a few text editors here https://github.com/JohnEarnest/Octo and you can use the command line mode if that suits you better.

(+2)

No worries, was due a refactor anyway and this is a good reason to set up a proper build pipeline!

(+1)

What build pipeline did you end up with? I also lost some work to the dreaded "loading..." message the other day (although I had backed it up manually in a gist a few days before, so it wasn't so bad). I'm mostly using VSCode, and the Octo extension seems outdated and non-functional.

(+1)

Heh, possibly not for everyone, but behold (please don't judge my terrible Octo code, I'm trying, I'm trying):

Somebody has written an Emacs lisp CHIP-8 emulator so I can just work inside there where I'm most happy. Next steps would be to set up Flymake for on the fly compilation and error checking and then just hook it up to rebuild and rerun on every save, and seems like a nice productive environment. At the very least, I can't lose anything anymore.

(+1)

The Octo mode I'm aware of for emacs is here, and it hasn't been updated with language features over time. If you make any improvements, I'd greatly appreciate it if you submitted pull requests to that repo or provided a link to a more up-to-date mode!

(+2)

Yup, I have considered switching yaks to shave that one, but also really want to finish the jam so I'm trying to control my natural urges!