Log In  

Hello! I've made a cart on my console and it runs there. But when I upload it onto BBS, it gives a syntax error.

syntax error line 5 (tab 1)
-return fget(mget(x/8,y/8),f)
<eof> expected near 'end'


function gfap(x,y,f)
-return fget(mget(x/8,y/8),f)

i've marked indent spaces as '-'

Cart #nogafekone-0 | 2023-03-19 | Code ▽ | Embed ▽ | No License

Pico-8 version i made the game at: 0.2.5c

P#127317 2023-03-19 11:27 ( Edited 2023-03-19 11:39)


I downloaded this cart and it doesn't run on my local PICO-8 either. It looks like your comments got messed up somehow as you have a bunch of free-floating END statements in the code. Here's a screenshot of tab 1, you can see what I mean:

P#127319 2023-03-19 12:35

@2bitchuck Thanks. Those free-floating end statements are shown as comments on my machine, maybe because of the outdated version.

P#127320 2023-03-19 13:00 ( Edited 2023-03-19 13:02)

v0.2.5f Changed: Nested long comments and strings no longer allowed

which is kind of sad

P#127321 2023-03-19 13:02

[Please log in to post a comment]