Follow

i wonder if it's possible to make a corruptor for pico-8 cartridges

@typhlosion

if it invaded code, then the absolute majority of changes will lead to a death by coding error

but if it invaded art

😀
👉

@zyabin101 i'd have to investigate how the code is stored in the cart. i'm sure you could write something kinda sophisticated that doesn't break anything too hard

@typhlosion

the code is stored as raw Lua

basically, if you modify *one* token it will lead to a syntax error

there are exceptions, i.e. changing an integer or a string, or calling a function by a name that *does* happen to exist

#z5note I need to investigate

@typhlosion i.e. original, let's say

text('Hello, World!', 12, 34, 5)
-- ^ == v
text ( 'Hello, World!' , 12 , 34 , 5 )

changing the token `text` will lead to a function addressing error unless the change makes a valid ident and a function exists by that name
if the ident is made invalid, syntax error

changing `(` or `)` errors out, next

@typhlosion

`'Hello, World!'` can be changed in any way, except the two quotes - they must be either ' or " and both equal, else error

`12` etc can be changed too, but the result must be an integer too, or a valid expression, else error

`,` can't be changed

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!