Page 1 of 1
Can “Try It Now” programs read supporting files?
Posted: Thu Dec 31, 2020 5:22 am
by rje
I doubt they can, but I have to ask.
If my uploaded program reads in, say, “foo.bin”, and said file is also in the manifest for that uploaded program... well, will it find the file, or not?
Can “Try It Now” programs read supporting files?
Posted: Thu Dec 31, 2020 7:14 am
by kliepatsch
Yes they can. But there may be issues with the naming of files.
@Johan Kårlin had issues sorting this out for his game, but eventually succeeded. So he will know more about it.
You can read this thread, there will be some hints about that question. You're using CC65, right? So you might try naming all files in capital letters, but if you mention them in the source code in all lowercase.
Can “Try It Now” programs read supporting files?
Posted: Thu Dec 31, 2020 7:24 am
by Johan Kårlin
It works but you must make sure all filenames are in capital letters. The file suffixes must also be whitelisted by the server. [mention]desertfish [/mention] ran into that problem when he tried to load image files with the suffix “KOA”. When he changed to “BIN” it worked.
Can “Try It Now” programs read supporting files?
Posted: Thu Dec 31, 2020 8:54 pm
by rje
Thank you! This is good news indeed.
Can “Try It Now” programs read supporting files?
Posted: Thu Dec 31, 2020 10:25 pm
by DusanStrakl
I can confirm that. Even BASIC programs like my Crazy Boulder can come in multiple files and it runs fine.