Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Error

A topic by Treijim created Jun 13, 2023 Views: 211 Replies: 5
Viewing posts 1 to 2

I get this error when trying to use MessageSounds: TypeError

Cannot read property 'getPluginName' of undefined.

I've tried a fresh project with only this and Eli Book and it still gives the error.

Developer

Hi there!

My guess is that you are using the Eli Book version of MV or the Eli Book is below the Message sounds. So let's make sure of some things:

1 - You have the EliMZ_Book.js somewhere above the EliMZ_MessageSounds.js

2 - When the error happens, press F12 or F8, and a window will be opened, go to the CONSOLE tab and send me a screenshot of the error trace that appears there.

3 - Send me a screenshot of your plugin manager so I can take a look at the versions of the plugins.

If still the problem happens, build me a sample project replicating the error, upload it somewhere, and send me so I can download it and take a look.

Thanks for the reply. I moved EliMZ_Book above ELI_MZMessageSounds and it now looks like the above. 

The game now runs. I set up preset sound 1 and set it to the default message sound but nothing happens when I bring up a text message in-game. There are no errors showing. I think I must have set something up incorrectly. Here's an empty project with the setup: https://drive.google.com/file/d/1xiRUSuyJWLsdFUR6I8lms7zm8kYb0jGV/view?usp=shari...

Developer

Thanks for the sample project! And I was able to find the problem:

In the image below, you did not set any ID to the preset SE. That is fine because it is optional. But if you do not use an ID, you must use its index value. Index values always start at 0. And, on the "Default Message Sound," you put -1.


This means that there is no default SE to be played, and as so, will not play at all. 


The only way for it to be played, with the settings you sent to me, is to use a plugin command to assign the Preset SE of index 0 to the message window.

But, if you want a default SE to be played, you need to adjust the plugin parameters to have it. Either put an ID there or put the index value of the preset SE you made.

I got it all working. I guess I misunderstood the instructions. The preset sounds list has "1" next to it so I thought it was preset number 1. Thanks so much for your help!

Developer

Oh, nice it's working now! :D

Have fun ^^