Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
This error happens because you try to play a game in the web browser directly when running INDEX.HTML.

Modern browsers have a security system that prevents local files from trying to capture information from other sites via AJAX, but you can disable this security (CROSS-ORIGIN).

The tutorial is for the following browsers:
  • Google Chrome
  • Opera (Chromium)
  • Mozilla Firefox

Google Chrome/Opera:
To disable use the following command line:
--allow-file-access-from-files

  • Create a browser shortcut on the Desktop.
  • Right-click on it and select Properties.
  • In the "Destination" box enter the parameter after the second quotation mark with a space and save.

Mozilla Firefox:
In the browser address bar enter the following command:
about:config

Press [I'll be careful, I promise!] button.Do not change anything on this screen, just what was shown in the tutorial.

In the search field type:
security.fileuri.strict_origin_policy

Double click this item, it will change from "true" to "false".This is done, but you may need to restart the browser.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
I'm using version 87 of Chrome, and it's working.
You must have written the command line without a space.
 

zzmmorgan

I've used punchcards
Veteran
Joined
Jul 10, 2020
Messages
120
Reaction score
197
First Language
English
Primarily Uses
RMMV
I just installed IIS and tested from there. For more serious testing I have access to a friend's VPS :)

I honestly don't recall which method I used but most of them should be fairly easy to follow and then it's running off an actual website ( even if it's just your computer) so the browsers won't care.

I wouldn't recommend opening up your computer to be a full-blown webserver to the internet though unless you want to deal with additional security issues. Just keep it local. But overall it's a fairly good way to be able to test your HTML5 games without trying fake out your browser.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
In the Rpg Maker manual there is a tutorial teaching how to enable the local server in Windows.
(RPG Maker MV> Documentation> Local server configuration)
  1. MacOS
  2. Linux

But in this case, I showed you how to open index.html directly from Explorer, as a faster alternative.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

just when I thought one of the greatest game of all time couldn't get any better, they announce a new dlc for it.
For anyone interested: there's another huge humble bundle with JRPG assets + a game jam starting next month - it's for a good cause, so check it out <3
Turning a specific vibe into reality is incredibly difficult. For instance, this song is one of the ones I listen to when working on my post apocalyptic project, and getting it's "feeling" into the game has been a real challenge.

I don't just wanna regurgitate the numbers I see, I wanna actually understand the calculations I'm making so I'm probably gonna make a post later with some calculations and what I THINK they mean to get some advice and corrections.

Edit: All (Most) of these will be tested in game prior. I just wanna make sure I understand what's going on under the hood if you will.
my girlfriend calls all my little chibi art cute lol... funny considering that wasn't the original art style of the game.

Forum statistics

Threads
113,778
Messages
1,077,371
Members
147,808
Latest member
traviscot
Top