Hey all...hooked myself up with Picotron to play with over the holidays. I'm planning on porting over some of my PICO8 games as a way to learn.
One thing I don't think I'm quite understanding is the RAM code vs the cart code.
I have a cart saved with simple printing of "Hello world" in it as MYDEMO.p64 and when I double-click it, it runs fine. Yay.
I open the cart contents and open the 'main.lua' to edit in source mode. I change the text to "Hello dog" and then do CTRL+R to reload the cart and there's no change...still shows Hello World. But if I do 'load mydemo' from the terminal and then run, it shows the change. Make another change, reload, no change...gotta do 'load' again. Tedious.
I guess I'm just used to PICO8's reload-to-see-changes instantly...but it seems that's not the case with Picotron?
Does opening cart code not make it the 'active' code that will run instantly when changes are made? Seems like a lot of extra steps just to see quick changes I make in a cart.
I sense I'm missing something simple but not sure what. Still on training wheels with the new UI and architecture.
More questions coming soon! LOL, thanks all...
When you load a cart, it copies the cart to /ram/cart
. You should make changes to the version in /ram/cart
. The save
command or Ctrl+S will save the changes from /ram/cart
into the actual cartridge.
Ctrl+R (and the run
command) runs the active cart from /ram/cart
, so if you modify the actual cartridge without modifying the copy in ram, it won't run your changes.
[Please log in to post a comment]