Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: NS_ERROR_NOT_AVAILABLE in HTML5-version
- Original author: Deklaration
- Original date: November 11, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/ns_error_not_available-in-html5-version.50158/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support
Summary
Hi! Finished my game and I can get it to work on iPhone, Android and regular Mac/Windows, but I haven't been so lucky with browser. I've uploaded the files, but when I try to play the game I get an error. On Chrome, I get:
Archived First Post
Hi!
Finished my game and I can get it to work on iPhone, Android and regular Mac/Windows, but I haven't been so lucky with browser.
I've uploaded the files, but when I try to play the game I get an error.
On Chrome, I get:
InvalidStateError
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
And on Firefox, I get:
UnknownError
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: https://dl.dropboxusercontent.com/u/31246357/js/rpg_core.js :: Graphics._paintUpperCanvas :: line 1833" data: no]
The Firefox error window points me to line 1833 in the rpg_core file. That line says "context.drawImage(this._loadingImage, dx, dy);"
I've tried reading about the Chrome error and it pointed me to these lines in pixi:
// new Image() breaks tex loading in some versions of Chrome.
// See https://code.google.com/p/chromium/issues/detail?id=238071
var image = new Image();//document.createElement('img');
if (crossorigin)
{
image.crossOrigin = '';
}
The problem is that I have no idea what the actual problem is. I guess the "document" line is wrong, or that the images isn't loaded when the game boots up. But I really have no idea.
This could be an easy fix, I don't know, but I would really appreciate all the help I can get.
Thank you so much!
Also, this problem might not be related to "javascript/plugin support", but I figured the thread was best fitted here.
Finished my game and I can get it to work on iPhone, Android and regular Mac/Windows, but I haven't been so lucky with browser.
I've uploaded the files, but when I try to play the game I get an error.
On Chrome, I get:
InvalidStateError
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
And on Firefox, I get:
UnknownError
[Exception... "Component is not available" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: https://dl.dropboxusercontent.com/u/31246357/js/rpg_core.js :: Graphics._paintUpperCanvas :: line 1833" data: no]
The Firefox error window points me to line 1833 in the rpg_core file. That line says "context.drawImage(this._loadingImage, dx, dy);"
I've tried reading about the Chrome error and it pointed me to these lines in pixi:
// new Image() breaks tex loading in some versions of Chrome.
// See https://code.google.com/p/chromium/issues/detail?id=238071
var image = new Image();//document.createElement('img');
if (crossorigin)
{
image.crossOrigin = '';
}
The problem is that I have no idea what the actual problem is. I guess the "document" line is wrong, or that the images isn't loaded when the game boots up. But I really have no idea.
This could be an easy fix, I don't know, but I would really appreciate all the help I can get.
Thank you so much!
Also, this problem might not be related to "javascript/plugin support", but I figured the thread was best fitted here.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...