Problem running my game on HTML via Newgrounds.

● ARCHIVED · READ-ONLY
Started by alberca 8 posts View original ↗
  1. Hi,

    So I have a working copy of my game running on HTML, tested it on my browser in developer mode and it works perfectly.
    Then I try to upload my html game project (folder /www) to Newgrounds and now suddenly it's not working anymore.

    bigrc.png

    I can have this error, sometimes it's a different error, it seems like it can't load some plugins/files whatever.

    Any ideas what might cause this? Thanks.
  2. You may have checked the "exclude unused files" option when deploying. This means only the images you've used on events or set up in the database will be included, and those used purely by plugins and nothing else will not be. There is a way for plugin authors to specify that the files they use should be included when that option is checked, but it's a bit messy and to my knowledge, most don't do it.

    So you can either deploy without checking that option, which will give you a very large file because the entire RTP will be included whether you use it or not, or you can deploy with that option, then go through all your plugins and see what resources they use, and copy them over into your deploy folder. The other option is to go through and remove all RTP resources that you're not using, then deploy without checking that option. That's usually easier when you do it right at the start of a project though, and add in the files you need, as you need them.
  3. Sadly it's not that, as I said it's running fine on my browser, I already did what you said. All the files are in it. If only it could be that simple... :oswt2:
  4. It's possible that they are sandboxing the game in an iFrame on their site which might cause issues in loading resources. Can you post a screenshot of the browser console?

    Second, can you please post a link to the plugin that is trying to load that image? So that someone could read through the plugin and check that the author is using the proper method to load resources for HTML.

    Last, please ensure that the file name you uploaded matches exactly to what it is trying to load (including uppercase vs lowercase).
  5. This is what I thought as well, but I saw some Rpgmaker games up and running on Newgrounds so I don't know for sure.

    The sumrndmdde related error doesn't happen often. I reuploaded a project and I don't have it any more right now, now it's the plugins.

    I made sure they were all named as usual, in any case, I test the game on my own browser before uploading and it always works before reaching Newgrounds.
    Here the console log from google chrome when I try to boot up the game from Newgrounds:
    https://textuploader.com/dylfv

    Thanks for helping me.
  6. Actually, I think the true error lies with the plugin image!! Because I reuploaded the project by starting from scratch, and the only error I got now in the console is this:
    https://textuploader.com/dylp0

    Here the plugin:
  7. UP
  8. It looks like the SRD plugin is using the proper method to load images, so that shouldn't be the issue.

    I don't have much more advice besides:
    • Double-check and triple-check the file names, etc.
      • SRD requires your image to be in a separate sub-folder, make sure that's in your upload to Newgrounds
      • Ensure that it's a png file and it's actually the correct picture (i.e. Not a text file accidentally renamed as a picture)
    • Open the developer tools in the browser and go to the Network tab.
      • You probably have to refresh the page with this open.
      • This shows all the resources that the page is trying to fetch.
      • You should be able to see the failed fetch for that picture, and it may have more information on why it failed
    Edit:
    And if I understand the plugin correctly, it allows you to set multiple backgrounds for different parts of the menu.

    Is the first picture failing? If so, turn that part off (have no background) and then see if the next picture fails. This would tell you whether it's an issue with that specific file or with the whole folder.