Drive

Horror lover
Member
Joined
Jan 14, 2017
Messages
11
Reaction score
3
First Language
Spanish
Primarily Uses
RMMZ
It is quite tedious to check the code and not know where it goes many times. I try to use debug mode like in Google Chrome, but unfortunately RPG Maker MZ isn't a web page either. Does anyone know exactly how it debugged or is it not possible?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,707
Reaction score
2,808
First Language
English
Primarily Uses
RMMZ
If you hit F8 to open developer tools, you have the console where you can enter javascript code, and if you go to "sources" you can set breakpoints in the plugins.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,325
Reaction score
8,383
First Language
German
Primarily Uses
RMMV
why do you claim that MZ is no webpage? The project has an index.html and can be launched with any browser you want.

That said, the RPG-Makers only provide event-level debugging functions themselves, triggered by a playtest flag that is only set by launching through the editor. That enables the control-override to passability and the display pages for variables and switches.

For checking on plugins you'll need external tools or a browser-based debugger

EDIT: ninja'd
 

Drive

Horror lover
Member
Joined
Jan 14, 2017
Messages
11
Reaction score
3
First Language
Spanish
Primarily Uses
RMMZ
why do you claim that MZ is no webpage? The project has an index.html and can be launched with any browser you want.

That said, the RPG-Makers only provide event-level debugging functions themselves, triggered by a playtest flag that is only set by launching through the editor. That enables the control-override to passability and the display pages for variables and switches.

For checking on plugins you'll need external tools or a browser-based debugger

EDIT: ninja'd
Because when inspecting elements you can inspect all the elements of a website, something that with RPG Maker MZ is impossible, you only have one window, you do not have elements within it that you can select, when debugging the game it simply stops without being able to select anything.
If you hit F8 to open developer tools, you have the console where you can enter javascript code, and if you go to "sources" you can set breakpoints in the plugins.
Isn't there a way to debug in real time while playing the game by viewing the code that the player selects? I don't know if I explain myself.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,707
Reaction score
2,808
First Language
English
Primarily Uses
RMMZ
Because when inspecting elements you can inspect all the elements of a website, something that with RPG Maker MZ is impossible, you only have one window, you do not have elements within it that you can select, when debugging the game it simply stops without being able to select anything.

Isn't there a way to debug in real time while playing the game by viewing the code that the player selects? I don't know if I explain myself.
That's what breakpoints do. You set the point in the code where you want to start debugging, and when it hits that it pauses and takes you to that line in the sources tab. You can then step through the code line by line following the flow of function calls, stepping over/into functions as needed.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sometimes a mechanic that is meant to add challenge is just annoying. Even the Final Fantasy games did not completely escape this pitfall of design. (FF8 draw system I'm looking at you - grrrr)
starting working on the sprites for one of my games major antagonists finally. here's the first frame of his chanting motion in battle.
Have spent too much time hammering out with a friend just how to make a reoccurring enemy that permanently learns skills you use against her.
I know what I want in a loose sense. Maybe I should just make a post asking for opinions and suggestions.
Shoot Enemy Off-Screen, Run RPG Maker Game as a Web Server, & Thai Keyboard | RPG Maker News #109

Forum statistics

Threads
113,734
Messages
1,077,036
Members
147,762
Latest member
Bad_At_Scripting
Top