Log In  

There should be a part of RAM that can be read and written to by more than one game. This could work by a host cart having a whitelist of guest cart IDs that can use the shared RAM with the host game, and the guest carts have the ability to access the shared RAM from the get-go. This could be used by a Zelda clone where the game is split across multiple carts (like Picoware, but items have to persist between carts, so the host cart (the boot cart) puts the item data in the shared RAM, which the other guest carts can access and edit.

P#69464 2019-10-29 19:04

1

You can do this already.

Use the CARTRIDGE DATA method.

In one program have at the top of your code:

cartdata("shared_data_cis")

Then in the other cart, also at the top of your code, make sure to use the same command with the same name:

cartdata("shared_data_cis")

Then in either code you can read and write back up to 64-numbers with, DGET() and DSET() that both carts will share.

Refer to Pico-8's own included TEXT file "PICO-8.TXT" for details on using cartdata(), dget(), and dset().

. . .

On a sidenote, @chungus_is_gay, your alias may raise an eyebrow. Other users have found in the past that they cannot change their alias once they've created an account in here. If you're content with it, that's fine. If not, well ... just to let you know.

P#69469 2019-10-29 20:05 ( Edited 2019-10-29 23:51)
1

Thanks, @dw817.
Also, I'm fine with my alias.

P#69474 2019-10-29 23:55

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 21:04:37 | 0.019s | Q:12