[SOLVED] Having trouble uploading my game as an HTML to Itch.io

I'm still very early in my project, but I wanted to try uploading it to Itch as a browser game to see if it'd work. For some reason, I keep getting these random issues and I have no idea why. It keeps saying that there's an issue with some random files, none of which I even use in my game. I'm uploading this game through google chrome btw.

Screenshot 2024-08-26 153301.png
Screenshot 2024-08-26 152059.png
1724707645640.png


I have a suspicion it's because of my plugins, images, and/or audio causing the issue but idk. My ZIP file is 203 MB and there are 973 files in it. When I play my game as a regular .exe program, it runs perfectly. I tried to upload an empty, bare-bones project with only two plugins (both of which were Galv's), and Itch had no issue loading the game in the browser. This tells me it's an issue with my game and not Itch 。・゚゚*(>д<)・゚゚・。.

Any way to fix this? Any help is super, duper appreciated!!

Here's a list of my plugins, images, and audio

Spoiler: Plugins
Everything after Eli_Book is turned off except CommunityBasic

Screenshot 2024-08-26 153646.png
Spoiler: Images
I only included screenshots of the folders where I added my own images. The rest of the folders are either empty or full of the default assets.

Screenshot 2024-08-26 154741.png

%Yara-Yara.png, Yara.png, and ActorBase.png are my own files. The rest are default.

Screenshot 2024-08-26 154835.png

My doodads for Yanfly's doodad plugin

Screenshot 2024-08-26 154821.png
Spoiler: Audio
I moved all the default music effect files to the background music folder. I plan to delete them all in the future. Both TempThemes are my imported files.

Screenshot 2024-08-26 154701.png

The sound effects are untouched but I use them in my game frequently.

Screenshot 2024-08-26 154630.png
Hm, I would suggest

1: Checking for hidden files in windows
2: Making sure everything is capitalized properly. I learned that stuff can be case sensitive
Just delete unused file and try again?
Why is there another www folder inside your game anyway?
I checked for hidden files and there doesn't appear to be any.

I don't think anything in my files is incorrectly capitalized? The majority of the files are just the default assets. I did go back and replace all the spaces with underscores on my images so I'll see if that makes a difference.

The only file name I think could be a concern is the one called %Yara-Yara.png but I can't change that since I need that % for the QSprite plugin.

@utunnels Should I only be zipping up the folders inside the www? When I deploy the game to browser, it automatically puts it in a www folder.
Might be all the spaces in your folder names, if I remember correctly that doesn't follow html formating rules. For example "Double Take"
Double%20Take%20 includes spaces so all filenames, folder names
should have it removed, %20 = space (forbidden networking rule)
so replace those with _ instead.

also make sure your YEP plugins are in the correct order which they aren't.
you could use the ALOE_YEP_PluginOrderChecker from my spoiler for its
correct order or his website.

as HTML to itch has more issues, there is a site how to make it work
as I believe you had to add a line to it to avoid it.
I think I found the issue! It turns out Itch can't handle files that have a % symbol in them (according to this post). Augh, this is such a shame because QSprite needs the percent symbol to identify the file. I guess I'll have to work around this with code or give up uploading it to the browser. I'll look into the Itch support forums for a solution.

Thank you all for your help! I appreciate it a lot ╰(*´︶`*)╯♡
% can work, not %20 which is stand for Space, there is also other % codes.
as long it doesn't break networking rule, you are are as % does work otherwise
if its coded to read it ^^
You should be able to change that symbol in the plugin - either in plugin parameters, if the author thought of that, or by finding and altering where it's used in the code.

But beyond that, you're going to get problems from all of the spaces in your folders (and probably filenames).

It's well-documented in many threads here that you shouldn't have characters that aren't URL-compliant in any of your MV files, including spaces.
Ahhh gotcha, gotcha. I'll definitely keep that in mind for the future. I went back and checked my files and folders for spaces and got rid of them all. Itch still gave me this error OTL

Screenshot_20240827_135341_Chrome.png
Does it still have the plugin requiring the % in some names?

There's no way the exclamation mark is forbidden on itch, no one would be able to put an RPG Maker game there.
It did! I took it out and now it's loading properly. It's so strange, I've seen other users able to upload their games to the browser with QSprite. I wonder what I'm doing differently.
It did! I took it out and now it's loading properly.
That is the solution you originally had back in post #7 😛

It's so strange, I've seen other users able to upload their games to the browser with QSprite. I wonder what I'm doing differently.
Well, frankly, that's poor design for a plugin.

Anyone writing code for MV/MZ should know they're HTML-based, which means % is a URL escape code. Even if the character isn't outright forbidden on itch, if the user puts the wrong characters after it, they've turned it into some other letter.

If you provide a link to the plugin download, it should be pretty trivial for someone to give you a fix.
That is the solution you originally had back in post #7 😛
Haha, yeah, I really didn't want to give it up so I tried really hard to find a different solution ^^'

I guess I should've clarified that earlier lol

Anyone writing code for MV/MZ should know they're HTML-based, which means % is a URL escape code. Even if the character isn't outright forbidden on itch, if the user puts the wrong characters after it, they've turned it into some other letter.

If you provide a link to the plugin download, it should be pretty trivial for someone to give you a fix.

Here's the link to download QSprite: https://quxios.github.io/plugins/QSprite

Their TOS states that anyone is allowed to edit and redistribute their plugins as a completely new plugin. It should be fine to send the edited plugin file here if anyone would be willing to edit it for me.

I'll also include the JSON file that the plugin reads in order to work.

EDIT: I almost forgot to say thank you! I appreciate you taking time out of your day to help me.
...it's right in the plugin parameters, where you were already told to look.
OH... I completely forgot that parameter was there. God, I'm facepalming right now. Well, it's working perfectly now! I could've saved myself 2 hours of troubleshooting if I looked there again haha
This thread is closed due to being reported as solved. If you need it reopened, let us know!

Original thread: https://forums.rpgmakerweb.com/threads/solved-having-trouble-uploading-my-game-as-an-html-to-itch-io.171461/