Create and Fuck your AI Cum Slut –70% OFF
x

RPGM Completed The bell tolls for Sister Ellis [Final] [Hurricane Dot Com]

3.60 star(s) 17 Votes

sazuree

Newbie
Jul 25, 2017
18
11
201
I got the same error. There seemed to be an issue with some width/height values not being applicable. I edited the rpg_core.js file in www/js and it seems to work now

EDIT: For some reason the .js file was marked as a virus, so I'll just paste the edits to make.

Change wherever it says:

var imageData = context.getImageData(0, 0, this.width, this.height);

to

var w = Math.max(1, Math.floor(this.width) || 1);
var h = Math.max(1, Math.floor(this.height) || 1);
var imageData = context.getImageData(0, 0, w, h);

and imageDataX = context.getImageData(0, 0, 1, 1);

to

var xSafe = Math.floor(x) || 0;
var ySafe = Math.floor(y ) || 0;
var data = this._context.getImageData(xSafe, ySafe, 1, 1).data;
Thanks now its working fine
 

Noxedia

Well-Known Member
Game Developer
Jun 10, 2025
1,053
1,994
172
"Nothing says ‘faith-based fundraising’ like turning your own body into the church’s biggest donation box :D
 

3xac7

Newbie
Dec 10, 2018
70
64
60
I got the same error. There seemed to be an issue with some width/height values not being applicable. I edited the rpg_core.js file in www/js and it seems to work now

EDIT: For some reason the .js file was marked as a virus, so I'll just paste the edits to make.

Change wherever it says:

var imageData = context.getImageData(0, 0, this.width, this.height);

to

var w = Math.max(1, Math.floor(this.width) || 1);
var h = Math.max(1, Math.floor(this.height) || 1);
var imageData = context.getImageData(0, 0, w, h);

and imageDataX = context.getImageData(0, 0, 1, 1);

to

var xSafe = Math.floor(x) || 0;
var ySafe = Math.floor(y ) || 0;
var data = this._context.getImageData(xSafe, ySafe, 1, 1).data;
I think I have the same error but this fix does not work for me.
So I am running this on PC.
And I get the black screen after finishing serving the first man the second time.

If I apply the changes that you propose above, then I get a black screen on start.
Here are some details on how I understood your edits.
1. Replacing "var imageData = context.getImageData(0, 0, this.width, this.height);" to 3 other lines. This one is straight forward, just copypasted it 2 times in the file where I found complete match the initial line.
2. Replacing "imageDataX = context.getImageData(0, 0, 1, 1);":
- there are 2 variables imageData1 and imageData2.
- I have pasted once the xSafe and ySafe at the start of the function.
- instead of
var data = this._context.getImageData(xSafe, ySafe, 1, 1).data;
I added:
imageData1 = this._context.getImageData(xSafe, ySafe, 1, 1).data;
imageData2 = this._context.getImageData(xSafe, ySafe, 1, 1).data;
 

CRRonaldoFTW

Newbie
Jun 27, 2023
34
71
96
I think I have the same error but this fix does not work for me.
So I am running this on PC.
And I get the black screen after finishing serving the first man the second time.

If I apply the changes that you propose above, then I get a black screen on start.
Here are some details on how I understood your edits.
1. Replacing "var imageData = context.getImageData(0, 0, this.width, this.height);" to 3 other lines. This one is straight forward, just copypasted it 2 times in the file where I found complete match the initial line.
2. Replacing "imageDataX = context.getImageData(0, 0, 1, 1);":
- there are 2 variables imageData1 and imageData2.
- I have pasted once the xSafe and ySafe at the start of the function.
- instead of
var data = this._context.getImageData(xSafe, ySafe, 1, 1).data;
I added:
imageData1 = this._context.getImageData(xSafe, ySafe, 1, 1).data;
imageData2 = this._context.getImageData(xSafe, ySafe, 1, 1).data;
Step 1:

You need to open rpg_core.js and exactly look for:
JavaScript:
    var data = this._context.getImageData(x, y, 1, 1).data;
Then you have to replace that line of code with:
JavaScript:
    var xSafe = Math.floor(x) || 0;
    var ySafe = Math.floor(y) || 0;
    var data = this._context.getImageData(xSafe, ySafe, 1, 1).data;
You will have to replace both lines with the code above.

Step 2:

Next, you need to exactly look for:
JavaScript:
        var imageData = context.getImageData(0, 0, this.width, this.height);
Then you will have to replace that line of code with:
JavaScript:
        var w = Math.max(1, Math.floor(this.width) || 1);
        var h = Math.max(1, Math.floor(this.height) || 1);
        var imageData = context.getImageData(0, 0, w, h);
You will have to replace both lines with the code above.

This should work with latest version of NW.js and fix the TypeError issue.
 

Mitsuna

Active Member
Jun 21, 2019
549
729
278
Which one is better?
Well, this one is an unedited machine translation, the other one is touched by human. There is no reason to use the one in the OP. The description has changed several times and is quite misleading, now they changed it to "Fan Translation". Maybe just die, idiots. Not to mention the files that are uploaded do not work without weird manual fixes to the code, but this one is on the dev. Fucked up menus are on translator being retarded.
 
Last edited:
  • Like
Reactions: KoroG90

MaydayM'dick

Member
Aug 13, 2017
194
160
190
Japanese has gender-neutral pronouns.
English does not.
MTL-kun is very confused o_O

How the Hell is this still news srsly...
Oh that explains a lot of things with mtl. I feel kinda stupid for not making the connection lol.
Clarification. Japanese has gender neutral pronouns but most of them are rude. Pronouns in Japanese outside of Proper Nouns like names are usually rude in general. That's why Japanese often omits pronouns entirely and that is what usually messes with translators and translation software, since they often have to guess the subject based on context. MTL can't be consistent with subjects because it doesn't have the ability to keep relevant information in it's memory. That's why AI TL is so popular now, AI TL can remember and infer context on it's own, and if the person putting it through the AI has any knowledge of Japanese the translation becomes better because the person can give context to the AI when it needs it. Like saying Alice is a boy instead of a girl, because the AI will assume Alice is female every time unless you specify it beforehand.
 
3.60 star(s) 17 Votes