i wonder if it's possible to make a corruptor for pico-8 cartridges
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
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
`'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
@typhlosion I don't see why it wouldn't be!