Uploaded Game Wont load in Firefox but loads in IE and GoogleChrome?

9 posts

Flag Post

When I uploaded my game Grim Shores last night to Kongregate I quickly noticed it didn’t work in Firefox. I have had one other person test this and it didn’t work in their firefox either. I have updated my flash,browser and restarted my computer. It is very odd. Are there certain rules firefox has with flash that the other browsers don’t?

Here is the link:
http://www.kongregate.com/games/Jcupz/grim-shores-beta

Thank you :)

 
Flag Post

Just tried it in Firefox for the heck of it, and it didn’t load. Other than confirming what you already know, I can’t be of much help. Good luck!

 
Flag Post

Your game is trying to load http://chat.kongregate.com/gamez/0014/1775/live/Assets\GrimMenu.png (note the backslash), which doesn’t exist.
Chrome (and probably IE, can’t test it here) converts the backslash to a slash before loading the URL, so in those browser the asset gets properly loaded and the game starts.

So just change the URL of the image you’re trying to load to include a slash in your game. Additionally, you should make your game fail gracefully (e.g. show an error message or just show no background) when loading the image fails.

 
Flag Post

You are on to something there! But when I take the fixed link from GoogleChrome that works, and use it in Firefox I get a 404 no matter what I use.
http://chat.kongregate.com/gamez/0014/1775/live/Assets/GrimMenu.png will not load on firefox. Maybe I am missing something?

 
Flag Post

The link you posted works for me neither in FF nor in Chrome (same with the game, actually :P)…
I have no idea what you’re trying to link to, so I can’t tell you what the correct link would be, but make sure the file you’re trying to reference is actually still uploaded (you can check that on the page where you can upload a new version of your game).

 
Flag Post

The files are all there… It works for me in GoogleChrome sometimes now, it seems like the preview works but live doesnt work as of now.
All I am doing is using a flash loader to load files in the same domain for example: “Assets\\GrimMenu.png” is the path I use, but how do I find out the path to the assets folder i uploaded on kongregate? I can I see they are uploaded but where!? Are they in the same directory?

 
Flag Post

The preview files are in a different folder than the live ones. If you upload assets, they are put in the same folder as the game’s SWF. Note that Kongregate differentiates between the live version of your game and the preview version, so for your game the base paths to your uploaded files would be
http://chat.kongregate.com/gamez/0014/1775/live/ for the live version and
http://chat.kongregate.com/gamez/0014/1775/preview/ for preview.

So if you uploaded a zip file containing a folder Assets, which in turn contained a file called GrimMenu.png, then the file can be found via the URL http://chat.kongregate.com/gamez/0014/1775/live/Assets/GrimMenu.png (live) or http://chat.kongregate.com/gamez/0014/1775/preview/Assets/GrimMenu.png (preview, which actually exists!). Notice that even though the path separator for folders in Windows is a backslash (\), it’s a forward slash after uploading the files. So to properly access the file from your game, you have to use the path Assets/GrimMenu.png, not Assets\GrimMenu.png. That way you don’t have to rely on the browser converting that backslash to a forward slash, which as you noticed Firefox doesn’t do.

Additionally, you should always make sure your game runs even when it fails to loda the file, since the file might be blocked by the client or there could be server outages.

 
Flag Post

Oh ok I gotcha and the game is catching that error, I just didn’t have it do something other than that, which I should of D: thank you for your help I am going to try that :) You are awesome!

 
Flag Post

Just wanna say it worked :) thank you! http://www.kongregate.com/games/Jcupz/grim-shores-beta Give it a shot all my browsers are supporting it Thank you again