mfexplorer

Veteran
Veteran
Joined
Aug 9, 2022
Messages
63
Reaction score
16
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
63
Reaction score
16
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,072
Reaction score
12,628
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,321
Reaction score
10,183
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
776
Reaction score
743
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
63
Reaction score
16
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
776
Reaction score
743
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
63
Reaction score
16
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
681
Reaction score
714
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

I was just too curious, so I tried to solve the problem by roughly writing the specifications of the RPG Maker style system (like a programming language).

I can able to see that ChatGPT-3 understands the problem well and proposes a solution according to the specifications I defined.

Adobe Premiere just crashed so hard it broke my GPU drivers sending me on a DDU quest. Why does this company with it's awful software subscription model and bloated software still dominate the industry? :rolleyes: Can we collectively agree to not support this company any more?
Stage 1 Card.png
struture-wise, my game operates more like a beat 'em up than an rpg. so each area of the city you run around in counts as a stage when you first get there. A silhouette of the boss/bosses will be in these stage intro pics, along with the stage name.
I still do this kinda stuff and I think this came out really, really well. Solo violin really helps this piece shine.
Currently at beginner level, checking tutorials on YT and Skillshare

Forum statistics

Threads
127,034
Messages
1,183,385
Members
166,927
Latest member
gracetierney
Top