Log In  


Cart #test_102-8 | 2025-08-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

A very simple multicart to test:

  • stat(102)
  • load("#bbs_id")
  • load("localfile_or_multicartexport")

I made this test cart because I wanted to know if stat(102) is useful to determine whether I should load another cart from the BBS or as a local / exported file. Spoiler: it's not...

stat(102)

Value returned by stat(102), depending on how the cart is run:

  • number 0 when running .p8 file in PICO-8.
  • number 0 when running cart from SPLORE.
  • number 0 when running Windows .exe standalone.
  • empty string when running .html standalone export directly from filesystem.
  • "www.lexaloffle.com" string when running from BBS forum post.

I suppose running the .html standalone from some server will return the domain name as a string.

BBS ID

When load("#bbs_id") does work:

  • when ruuning .p8 file in PICO-8.
  • when running from BBS forum post.
  • when running from SPLORE.

load("#bbs_id") doesn't work when running .html and binary exports, as stated in the PICO-8 User Manual (section 6.1).

Local .p8 file or multicart export

I exported test_102 as .html and .bin including test_102_unlisted.p8 to test multicart behaviour.

export test_102.html test_102_unlisted.p8
export test_102.bin test_102_unlisted.p8

It works just as expected.

Notifications

No notifications are displayed when trying to load invalid local/exported carts.

When trying to load an invalid BBS cart, this is what happens...

  • In PICO-8, SPLORE or the BBS, the "cart loading" animation at the top will start, but it will quickly dissapear from the screen before the cart starts spinning.
  • The .html standalone shows a DOWNLOAD FAILED notification on the bottom of the screen when trying to load any BBS ID (valid or invalid).
  • Finally, the standalone Windows executable never shows any notifications.

Note: I only tested the Windows binary.

Conclusions

stat(102) is only useful if you wnat to know from which domain the cart is running. It's not useful to decide if you should load another cart from the BBS or as a local / exported file, which is what I'm interested in.

Calling load("localfile_or_multicartexport") first, then load("#bbs_id"), will always work without showing the DOWNLOAD FAILED notification (as long as you don't try to load invalid carts).

You can test this pressing ⬇️ in this test cart.

If both load calls fail, code execution will continue normally (if you want, display any error messages immediately afterwards).

1



[Please log in to post a comment]