Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

str.replace all is not a function

A topic by King_auberon created Jun 25, 2024 Views: 128 Replies: 7
Viewing posts 1 to 4

anytime I try to boot the playtest up I get an error, str.replaceall is not a function. I'm really interested in the plugin but i'm not quite sure what i'm doing wrong. even the sample project is getting this error.

Developer

Hi there

Only error I got on the sample project was a missing plugin TinyGetInfoWndMz. Once I disabled it on the plugin manager, sample project runs fine.

I will update the sample project today or tomorrow, but about this plugin when the error happens again, press F8 or F12. A browser window will open. Go to the CONSOLE tab and send me a screenshot of what is in there.

https://prnt.sc/TNM80L_xHNIg heres a screenshot

Developer

Thanks! Will take a look!

Are you using RPG Maker MZ, right?

yes I am

Developer

I didn't manage to replicate your error on the sample project or in another project. It seems to me that the problem is on the Curve Name:


This name cannot be empty or be a number. Otherwise, it will be parsed as a number when it should be a string(text).

So, if it is a number, the method .replaceAll will not work, because this method only exists for strings. When applying to a number this method is undefined, which will cause the error you are getting. So, double check your curve names and see if you have a number or any empty spaces.

If you fix this and still get the error, I will need for you to upload a project replicating the error and send the link here to me, so I can playtest it, trigger the error and see what is happening.

Hii! Also having this error on an untouched version of the sample project.

Developer

Hi there!

It's impossible to happen this error on the most updated sample project. I just downloaded it right now, extracted the zip file, open the project, hit playtest and no error is popping up.

I suggest you to download it and try again. Or tell me exactly what you did to show this error.

https://hakuenstudio.itch.io/hakuen-studio-sample-project