mfexplorer

Veteran
Veteran
Joined
Aug 9, 2022
Messages
72
Reaction score
17
First Language
English
Primarily Uses
RMMZ
I saw on one post a link to a Google Spreadsheet which has so many relevant script calls for MZ and how they work. But I
failed to save the reference. Can anyone point me to it?

And right now, I want to know if can store audio files in a JSON object or if I have a reference to an audio file on the local server can I play it?
 

mfexplorer

Veteran
Veteran
Joined
Aug 9, 2022
Messages
72
Reaction score
17
First Language
English
Primarily Uses
RMMZ
Strangely this didn't play although the PlaySE command worked

AudioManager.playSe({ name: "John", volume: 100, pitch: 100, pan: -50 })";
Do these script calls really work for MZ or maybe just MV?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
23,083
Reaction score
12,641
First Language
English
Primarily Uses
RMMZ
They should work in MZ. I've used them a lot.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,339
Reaction score
10,191
First Language
German
Primarily Uses
RMMV
AudioManager.playSe({ name: "John", volume: 100, pitch: 100, pan: -50 })";
Do these script calls really work for MZ or maybe just MV?
and this emphasizes why we ask for screenshots, because there are two possibilities where you could have gone wrong:

1) used the script call in the wrong place
2) made a typo somewhere, because that line contains one too many "
question is if you made the mistake in your game as well, or only here on the forum?
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
780
Reaction score
748
First Language
german
Primarily Uses
RMMZ
AudioManager.playSe({ name: "John", volume: 100, pitch: 100, pan: -50 })";
That "-symbol is wrong here. Don't know if this is the issue or if it just appeared while copy-pasting your code here into the forums.
 

mfexplorer

Veteran
Veteran
Joined
Aug 9, 2022
Messages
72
Reaction score
17
First Language
English
Primarily Uses
RMMZ
You are right. THANK YOU. It was that quote that was messing with it. Now it works.

Qn: is there a way to enhance Javascript's error reporting?
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
780
Reaction score
748
First Language
german
Primarily Uses
RMMZ
You are right. THANK YOU. It was that quote that was messing with it. Now it works.

Qn: is there a way to enhance Javascript's error reporting?
Yes of course. Once an error appears, you can press F12 to open debug window and then go to "console."

Some plugins "swallow" errors and let the game continue. I recommend disabling those settings. I know that YEP and Visustella do that. If you have any of them, somewhere in their "core" plugins, you will find this setting.
 

mfexplorer

Veteran
Veteran
Joined
Aug 9, 2022
Messages
72
Reaction score
17
First Language
English
Primarily Uses
RMMZ
I couldn't find that setting in Visustella. I assume it is in their Tier 0 plugin somewhere. Not sure what it is called.
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
687
Reaction score
720
First Language
English
Primarily Uses
RMMZ
You are right. THANK YOU. It was that quote that was messing with it. Now it works.

Qn: is there a way to enhance Javascript's error reporting?
It can be helpful to type your script calls in an actual code editor (I recommend Visual Studio Code for JavaScript), before copying and pasting them into RPG Maker. It makes it easier to spot simple syntax errors such as that one:

1664440148096.png
 

Latest Threads

Latest Posts

Latest Profile Posts

Hello! I’d like to ask where is a good place to start logging about my game dev progress as production of my game goes forth
In one of our campus classrooms was a bag full of stuff people forgot there... my bag. That I forgot there xD
You know your room is too tiny for how much stuff you have when it gives you literal insomnia. I just cleared a bunch of stuff out and man it feels good!
1670381555475.png
Meet the Kernel. You encounter him in cyberspace. He's important!
I released a test version of my game on itch.io. If anyone wants to check it out, here's the link (for now in Brazilian Portuguese only, sorry).

https://rafael-lobo.itch.io/insolita

Forum statistics

Threads
127,094
Messages
1,183,896
Members
167,009
Latest member
Spiridonn
Top