Log In  

So, I am looking for a way to dynamically load code from an external cart. As a way of redistributing parts of my game as paid software or something.

There are functions like load for loading a cartridge, but this doesn't let me run just like a loaddata function, does it? Just wondering.

P#120275 2022-11-07 19:14

Hi @khhs:

You can load and save DATA from one cartridge to another, but not code. No, the source-code you have is fixed to the code you are working on.

Now you can call another program entirely through use of breadcrumbs and parameter strings, but there is no way to compile a DLL from a Pico-8 sourcecode nor make use of it later.

https://www.lexaloffle.com/dl/docs/pico-8_manual.html#System

You might also look into #INCLUDE if it's just your own code and you want to call it in more than one program.

https://www.lexaloffle.com/dl/docs/pico-8_manual.html#_Using_an_External_Text_Editor

If you need an example of this, please let me know and I can provide one.

P#120276 2022-11-07 19:31 ( Edited 2022-11-07 19:37)

damn it.

P#120278 2022-11-07 19:53

You can export your game as native binaries, that would prevent people from seeing the code (unless very determined to extract the lua bytecode and decompile it).

P#120281 2022-11-07 22:01

[Please log in to post a comment]