Can “Try It Now” programs read supporting files?

All aspects of programming on the Commander X16.
Post Reply
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

Can “Try It Now” programs read supporting files?

Post 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?

 

User avatar
kliepatsch
Posts: 247
Joined: Thu Oct 08, 2020 9:54 pm

Can “Try It Now” programs read supporting files?

Post 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.

Johan Kårlin
Posts: 292
Joined: Wed Jun 03, 2020 11:33 am
Location: Kalmar, Sweden

Can “Try It Now” programs read supporting files?

Post 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.
rje
Posts: 1263
Joined: Mon Apr 27, 2020 10:00 pm
Location: Dallas Area

Can “Try It Now” programs read supporting files?

Post by rje »


Thank you!  This is good news indeed.

User avatar
DusanStrakl
Posts: 129
Joined: Sun Apr 26, 2020 9:15 pm
Location: Bay Area, California
Contact:

Can “Try It Now” programs read supporting files?

Post by DusanStrakl »


I can confirm that. Even BASIC programs like my Crazy Boulder can come in multiple files and it runs fine.


 

Post Reply