mfexplorer

Regular
Regular
Joined
Aug 9, 2022
Messages
89
Reaction score
19
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

Regular
Regular
Joined
Aug 9, 2022
Messages
89
Reaction score
19
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

Regular
Regular
Joined
Aug 3, 2012
Messages
23,808
Reaction score
13,728
First Language
English
Primarily Uses
RMMZ
They should work in MZ. I've used them a lot.
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,297
Reaction score
11,480
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

Regular
Regular
Joined
Apr 23, 2019
Messages
992
Reaction score
1,025
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

Regular
Regular
Joined
Aug 9, 2022
Messages
89
Reaction score
19
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

Regular
Regular
Joined
Apr 23, 2019
Messages
992
Reaction score
1,025
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

Regular
Regular
Joined
Aug 9, 2022
Messages
89
Reaction score
19
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

Regular
Regular
Joined
Jun 25, 2021
Messages
1,087
Reaction score
1,569
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 Profile Posts

Obvious One.gif
Meet my new mascot. He's also a mimic! No prizes for guessing this guy's name, though, haha
BANNER2.png
I put out a new pack and I swear, I did not realize how it looks like the ones on the right are scared/nervous of the one on the left until way after o_O I just wanted to showcase some of them randomly xD
Well, if anyone has a funny, simple, easy RM game they want me to playtest/review, I would love it.
Someone close to me straight up told me they didn't think my relationship with my girlfriend would last. No lead up, very bluntly. Like it's obvious or something. Trying not to let it get to my head, but it's hard.
The distraction would be a life saver.
QuestMZPlugin.png

My first foray into a plugin that I plan to release. Working on something for those who want to set up a Dragon Quest style battle HUD with minimal fuss. Includes the ability to round the battleback corners to fit your windowskin and, of course, front-view animations.

QuestMZPLugin_CustomWindow.png
Do you ever wonder where the heck everyone is going at 9:00 at night? Like... guys, go home! Get some sleep! Me? Oh, I'm out to get pizza 'cause I decided supper time was 9:30 tonight.

Forum statistics

Threads
134,756
Messages
1,250,346
Members
177,516
Latest member
uglychristmassweaterbio
Top