Can you use custom CSS files with games uploaded to textadvenures.co.uk?

+1 vote
122 views
asked Jun 12 in Publishing by bg (692 points)

I released an Inform 7 game along with the Quixe interpreter and set up a custom CSS file for it in the Interpreter folder. On my computer the stylesheet works, but when I zip the release folder and upload it to textadventures.co.uk, playing it online brings up the default stylesheet.

1 Answer

+1 vote
answered Jun 12 by Alex (486 points)
selected Jun 12 by bg
 
Best answer

It should work, as long as everything's in the ZIP file you uploaded.

Make sure your CSS is using relative and not absolute paths - because uploaded games have URLs of the form media.textadventures.co.uk/gameid/..., so if you're linking to something like /mystyle.css then that won't work.

If you add a link to your game here I can look into it further.

commented Jun 12 by bg (692 points)
Ok, I don't know what I did differently, but after uploading a more recent version of the game, it now seems to work correctly.
commented Jun 12 by Alex (486 points)
Could have been a caching issue. Files are served using a CDN and sometimes it can be a while before it checks for a newer version of the file.
This site is now closed.
As of 1st November 2015, this site is a read-only archive. For more information see the intfiction forum post

Welcome to IF Answers, a site for questions and answers about Interactive Fiction.

Technical questions about interactive fiction development tools such as Inform, Twine, Quest, QuestKit, Squiffy, Adrift, TADS etc. are all on-topic here.

Non-technical questions about interactive fiction are also on-topic. These questions could be about general IF design, specific games, entering the IF Comp etc.
...