iftechfoundation / ifcomp

The software behind the Interactive Fiction Competition.
Other
23 stars 13 forks source link

Entry handling for formats which could have a website created for them #315

Open curiousdannii opened 3 years ago

curiousdannii commented 3 years ago

Currently we ask authors to say whether they're uploading a naked Z-Code/Glulx storyfile, or whether they upload with a standard Inform 7 website, or a custom one. But if we do a little bit more processing, this wouldn't be required.

  1. Check whether the entry is in the list of formats for website creation (Glulx, Z-Code, TADS after #248).
  2. Check whether there is a website in the upload.
    • Should this be simply whether there is any .html file? What if they upload a .html file as a feelie, but didn't intend it to be a website? Should it only check for index.html? Whatever is decided should be documented clearly.
  3. If there is a website, insert the transcript recording code. (Made safer in #314)
  4. If there isn't, then make one.
curiousdannii commented 3 years ago

I asked on the forum, and found out that it's fairly easy to detect whether a TADS 3 file is Web UI or not, so we can do that as part of the format detection I suggested above.

https://intfiction.org/t/detect-whether-a-tads-3-file-uses-web-ui/52007