Skip to main content

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

str.replaceAll is not a function

A topic by Pixelbird14 created 41 days ago Views: 76 Replies: 10
Viewing posts 1 to 2
(2 edits)

"TypeError" "str.replaceAll is not a function"


Yeah... I literally don't know what this means. Help pls? Thx. (Happens upon character generator being opened)

Developer(+1)

Hi there!

When the error happens, press F8 or F12. A browser window will open. Go to the CONSOLE tab, and send me a screenshot of what is in there.

(1 edit)


(Sorry for the late response, got busy)

Hey, not to bother you or anything, but any results? Or did the image not send correctly? (No rush btw)

Developer(+1)

Hi there! Sorry for the delay.

It seems to me that the problem lies on the plugin command argument Subject ID, that specifies on what game character(Player, event or follower) the generator character will be applied.

Can you show to me a screenshot of the plugin command so I can see what is in there? If you are using 0, you need to make sure that the plugin command is being used by a regular event, and not a common/parallel event

I think the problem may be that the Subject you are trying to apply the generator does not exist on the map.


No problem! This is the image.

Developer

Just put the number on the subject ID. Just -4.

No need to put "ID -4"

I changed the id, but it is still the same. Here is the new error output.


(2 edits)

Update: I changed the generator name to the folder name inside "generator", but now it just completely skips the scene. (The folder is named "Playergen")

Sorry for the spam, but ANOTHER update: I learned how the generator list worked, and now it's outputting the same error as before.

Developer

If you changed the "ID -4" what you pit on it instead?

I guess this error, and the others, you can better understand them and the plugin itself taking a look at the sample project (the link is on the plugin page). 

There you will be able to get a working example and see how things are done.

If still, you get into trouble, add me on discord: hakuenstudio