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.



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.


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.


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 :(



[Please log in to post a comment]