XaiJu
ParasiteInfection
ParasiteInfection

patreon


Chrome Android issue

I tried several modifications to the image file pathing, but nothing seems to be working so far.  Then I found this page:

 https://stackoverflow.com/questions/41430244/chrome-on-android-not-loading-local-website-javascript-and-css

I noticed that the file path on my phone when I test it is really weird
content://0@media/external/file/2958

but the actual file location (where I unzip it to) appears to be  
My Files/Internal Storage/PI/Parasite Infection

I'm not sure how to solve this yet but the solutions posted involving manually navigating through the internal storage via browser is not a real solution.  It's too tedious.  One solution is to get the game uploaded to TFGS so it's playable purely online but they are waiting for the site overhaul for that to happen.

Edit: I have confirmed that manually navigating using the browser does load the images.  God damn you chrome.  I put in "file://localhost/sdcard" to open the file list then navigated to the html parasite infection file, and the images load.

Comments

The image paths are relative paths already. They just dont load correctly when opening the html from the phone's file browser.

Anon Smith

And tell people to use file:///sdcard/storage0/folder/file.html as content:// is really bad for stuff on android at least i always had issues with it ¯\_(ツ)_/¯

Aurelio

Why not just use relative paths like ../extra/random_file.js? Wont that just eliminate all the issues?

Aurelio


More Creators