What IS this error?!


UnknownError
[Exception... "Illegal value" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"
​


location: "JS frame :: file:///C:/Users/Brancliff/Desktop/Deploy/A%20Magical%20Life
​


/www/js/rpg_core.js :: Bitmap.prototype._drawTextOutline :: line 1031" data: no]

 
​




Project is deployed in browser mode using MV.
What version of MV are you using? My line 1031 is a comment, not code. Did you change the core files at all? This error is seemingly caused by attempting to use a variable that never exists. You should also try using Google when you need to find information about an error.
I'm using the newest version, V1.2.


And, yeah... I could've googled it, but I didn't really know which part of the error specifically I was supposed to use. And, looking at the results now... I have no idea what any of it means. @_@ I'm not much of a coding person.
I, too, am on 1.2.0, and as far as I know my default scripts were not edited. You're getting an error on line 1031 or rpg_core.js, which for me is a commented line:

Spoiler
lxf3Bz7.png



Have you edited the file? Either way, can you please show what the Draw Text Outline function looks like for you?


In regards to googling errors, ususally things in capital letters with underscores is the name of the error, or something like that. Google is your friend.
Here's what I got. I have no idea what any of it means.


"StrokeText", huh? Strange..


If it helps any, the error appeared when I tried starting a battle.

1031.png
Well that seems fine... What plugins do you have included with your project? Does this error happen in any other web browser, or just Firefox?
It's hard to say - I have a LOT of plugins in my project, and most of them are from Yanfly (but I have some from GALV). The ONLY edit I have made to the core .js files is that I removed the guard command - but even then, the game still worked fine after I had done that.


On Internet Explorer and Google Chrome, I get the "Your Browser does not allow to read local files" error.
Read the manual for help in running the game on a local web server, Chrome and IE do that for security reasons. The local web server will allow them to work.
Is there any solution that would work that can fix the game itself before I try fixing things on my end? Although that may fix the issue, I'd like for my game to be playable for others, as well.
Running the local webserver will not fix the error - it will help us finding the cause of the error by comparing the results.


That said, your removal of the guard command explains the different lines - which is one reason why removing lines from the core files is a very bad idea. You should have written a plugin zthat overrides those functions instead of deleting lines from them.


And just to be on the save side - can you make a backup of your modified core files, then replace the project core with the original newest versions and test if the error remains the same? If yes you can replace them with the backup, but searching for an error elsewhere when it might have been in the modified core (or just that your core is from an older version and doesn't work with all updates) would be bad.


If it isn't a change in the core, then the error is most likely a plugin compatibility or configuration cause - in that case, temporarily disable them to seek which one is responsible.
So, I've gotten around to trying the local server method. None of them actually allowed me to play my game.


There's three of them mentioned in the RPGM Help, and none of them worked.


Accessing From Your Browser


  1. Open your browser.
  2. Confirm by entering the address below into the address bar.
    http://<IP Address>/Project Folder Name/
    This one just said 404 - Not Found.

    http://<Computer Name>/Project Folder Name/
    http://localhost/Project Folder Name/
    These two methods just redirected me to an error page of some sort. It said:

    HTTP Error 403.14 - Forbidden



    The Web server is configured to not list the contents of this directory.

  1. The Web server is configured to not list the contents of this directory.

That tells you the problem - somewhere in the configuration of your localserver you went wrong and either forgot to set the correct properties or set them wrong.
That tells you the problem - somewhere in the configuration of your localserver you went wrong and either forgot to set the correct properties or set them wrong.



I don't really know what that means.. How would I fix that?


Either way, that's not even the point. I just want to be able to start distributing my game. I don't want to have to give people convoluted instructions like these just to get it to run - how can I fix the game itself so it's able to be played by others?
Then don't deploy in HTML-mode but in the mode of the target system to get the exe to start it.


The local server is only needed if you want to launch the web-version locally.


If you want to deploy to mobile you'll need to process the deployment package for mobile distribution, the help file contains instruction for that.


If you deploy to windows you can either distribute the entire windows folder and launch the exe in it directly (unencrypted deployment) or use enigma virtual box for an encrypted single-file-exe that is also easier to handle - again the instructions for that are in the help file.
Alright. I've tried deploying in Windows, but it still does not seem to work. I hate to be a bother with how complicated this has been, but I just want to be able to share my progress.


When running the Windows-deployed version, it just comes up as a white screen. The game just stays there, and the name of the game doesn't appear on the top of the window or anything. It's just suck.


When I run the Windows-deployed version that is grouped with Enigma Virtualbox, it doesn't open, either. It just hangs out on my task manager (with two other copies that I didn't ask for).


magicallives.png
When running the Windows-deployed version, it just comes up as a white screen.

That is a known error - you need to update your computer's graphic driver.


MV needs a rather recent version of the OpenGL library, and if your graphic driver contains only older versions a white screen is the result.


So please update your graphic driver, the newer updates also contain the newer OGL.
So what about the issue with Enigma Virtualbox? What causes that? I'd like to be able to export my game in that way sometime, too, but I don't know what's going on with that.


I ran Driver Booster, but my game still gives a white screen. Just in case, I also tried creating a new fresh project and running that. A fresh project works fine - meaning that the problem is with my game somewhere. I turned off ALL the plugins, and it still gives a white screen. So it's probably not my drivers and definitely not my plugins. Any ideas?

Original thread: https://forums.rpgmakerweb.com/threads/what-is-this-error.63730/