Log In  

The p8 file has unix end of line characters.
I created a lua file that I wanted to include and I was getting very weird syntax errors.
Then I remembered that Windows uses different end of line characters. When changing it to unix format it worked fine.

Trying to find the minimum code that triggered the error I found that it only fails when the { and } characters are on different lines.

Actually it also happens for parenthesis. If the parenthesis are more and two end of line chars apart they fail:

file that works:
print("hi!")

file that works:
print("hi!"
)

file that fails:
print("hi!"

)

converting the last file to Unix format works just fine.

P#68261 2019-09-29 21:41

:: dw817

Now remember, ximo, currently normal text files like written in NOTEPAD save 2-characters per line #13 and #10.

You need to use something like NOTEPAD++ to remove the #13 and save it back as it is currently not recognized in INCLUDE files in PICO.

I am understanding this error will be corrected in the next upcoming release.

P#68264 2019-09-29 23:20
:: ximo

I tried files the CRLF end of lines on mac and the load just fine. Is just the windows build that has issues.

Makes no sense at all that Windows Pico8 is unable to import files created on Windows.

P#68274 2019-09-30 07:39

It's a bug. Pretty sure zep already knows about it and has it fixed for 0.1.12d, but the candidate changelog he posted on Twitter is down so I can't double check that :(

P#68275 2019-09-30 07:59

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-07-11 03:50 | 0.010s | 2097k | Q:19