Debugger plugin



The alpha version of my second "big" plugin is ready.

The Debugger is a plugin that helps you to visually track event actions during game testing. It was very complicated and difficult until I finally got to the point where I could say : yes, it might be useful.

The plugin provides some useful windows that are updated in realtime. For example, Pedometer, game time, and gold window.

The most important is the Log window, where certain event actions will be posted. Each action has a timestamp associated with it, so you can take these into account.
Note that windows and information require space. The best setting is 1366*768 resolution.
It is not optimised for lower resolution and will not be in the future, as the aim is to maximise the visibility area.
In addition to the log window, there are two other groups of windows. Only one of these can be active. The window groups contain 3-3 small windows, these are located directly above the log window. ) You will be able to toggle them ingame with a button later).

You can set useful things to them, all of which are updated in realtime.

You can monitor items (max 3), or the player's (leader's) stats e.g.: HP, MANA, TP, Name, Class, Level, and Map Name

The log system can currently print these actions:

* Switcher state (both single and range supported)
* Self Switch State
* Variables changes (both range and single + current val calc)
* Level up / Down (both manual, and automatically)
* Item gain / Remove
* Money gain / remove
* Teleport from / to
* Waiting
* Common event (manually)
* Erase event
* Party changed (add / remove)
* Movement Route
* Repeatable and configurable steps log
* Conditional branch (false / true)
* Change tilesets
* Selected Choices
* Change XP (by event)
* Items used in the menu (multiple support)
* Tint Screen
* Region Movement (entered / left)
* Play BGM
* Control timer (stopped / expired / rem time)

Other plugins Compatibility:
  • Yanfly Region Events
  • Yanfly Quest Journal (partial)


The Log is also able to take into account the Sides within the event, and in the case of self switch, it will indicate this.

Since Logging can make the ablock chaotic, I developed a manual monitoring system. To do this you need to place two scripts. This way, you will see more transparently what actions have run within your event named X, and then a separator will indicate the end of the event.

Currently it doesn't handle events running through a scythe properly, so in some situations it may be inaccurate because another event's action may slip in (we'll look into this later)
Currently two extension is partially supported, and that is Yanfly Quest Journal, and RegionEvents

You can log Quest Add and Completed plugin commands (supports single, multiple and range versions)

You can disable certain log types from the entire logging process. Later on you will be able to control the others individually.
There is a tagging system that you can use to tag events, and these texts will appear above the events (ingame effect).
Currently only Script commands are included with the plugin, you can find them on github / download the plugin.
Please note that this is an alpha version!


Now in the titlescreen you can see what plugins you are enabled.
Screenshot_2.png

Current Version 0.19.5 - Alpha

Note that windows and information require space. The best setting is 1366*768 resolution.
It is not optimised for lower resolution and will not be in the future, as the aim is to maximise the visibility area.


Known issues:
Autorun and Paralell events cannot currently be manually tracked properly. Here I am mainly working on finding an optimized solution for logging them.

It is a high priority to complete this function.
Currently, information can be printed from a parallel event. But if it is spammed, performance problems can occur, as it will keep trying to log (these are usually rare, but can happen)


Download & other
Download and instructions can be found on Github.
If you have any ideas, don't keep them to yourself, share them with me on github in the issue section, and of course if you find a bug, please report it.

Right now the focus is on improving the existing functionality, but if you have plugin compatibility ideas (logging) feel free to post them.

Terms and conditions
You can find the license on my github page.

Download:

Changelog:
Spoiler: Changelog
0.19.5
  • Plugin list window resized
  • Pluginlist header no longer count the separator plugins.
  • NEW Tint Screen log (Support predefined versions too)
  • NEW Play BGM log
  • NEW Full Control timer logs
  • Reposition the countdown timer
  • New Range switcher now can log also
  • New Range Variable now can log also
  • Single variable log now will calculates the current value and will print also


0.19.0
  • NEW Title screen scrollable window show the activated plugins. (+ version support)
  • Complete refactored the Log system storage (Many future problems have been solved)
  • Resized the log window (+30 width)
  • Repositioned the Modal window Groups
  • Fixed the issue if the player opened the shop, the same event action logs deleted.
  • Option to delete the logs.(you can define a keyups)
  • Option to enable or disable, if player teleport, log every prev logs from the window deleting
  • Title screen show the Debugger is enabled text
  • New Goal system (pre-alpha) think no big deal

0.18.0
  • New Plugin Compatibility: Yanfly RegionEvents
  • NEW Region Logs
  • Region logs enable / disable param
  • NEW Item used log (Only if item used on the menu screen support multiple items in a same time)
  • Param to enable / disable item used logs
  • New Common event manual tracker (just like the event) -
  • New script call : this.finishCommonEvent(n)


0.17.5
  • NEW you can define a key to toggle the log window visibility
  • Enable / Disable Switcher log param
  • Enable / Disable the Waiting Logs param
  • NEW Player logs - Change Xp
0.17.1

Removed the event id form the logs when using the manual scripts (page changes)

0.17

  • Better Logs Commenting separators
  • We tried to fix the line break
  • Removed the mapID from the log, when player teleporting.
  • Fixed the teleport log bug,
  • now there is no problem with keys not working in the Show Choices
  • Fixed the Questlog param
  • NEW Mapname displaying in the first(#1) Playerinfo modal window
  • NEW Show Choice - selected Choice log
  • NEW Starter log include Activated plugins number
  • NEW Change tilesets logs
0.16

  • Fixed the Conditional Branch log Bug. (cant freeze anymore the game)
  • Removed the Battle logs (It is being redesigned.)
  • Fixed the three player info window position, and fixed the third window battle visibility bug
  • From now on, when the fight is over and the player has won, the battle does not delete the previous log entries.

  • Starter log : Added a new Party player names log, and map tilesets name log
  • NEW configurable Steps log (repeat)
  • NEW ItemEnable log param
0.15

  • Refactored the Switcher log. Now better handling, when come the log from paralell or autorun events.
  • Refactored the Self Switcher log. Now better handling, when come the log from paralell or autorun events. (Bonus Disable logging)
  • Refactored better gold gain / remove handling
  • NEW Conditional Branch False log.
  • NEW Movement Route log
0.1 - initial release
0.15 & 0.16 changelogs:
* Refactored the Switcher log system (now better handling /
* performance and bypass the autorun and paralell spam)
* Refactored the Self Switcher log system (now better handling
* / performance and bypass the autorun and paralell spam) + Can log if disabled
* New Conditinal Branch Logs (true / false)
* New Movement Route Logs. (start / end)

0.16

* Fixed the Conditional Branch log Bug. (cant freeze anymore the game)
* Removed the Battle logs (It is being redesigned.)
* Fixed the three player info window position, and fixed the
* third window battle visibility bug
* From now on, when the fight is over and the player has won,
* the battle does not delete the previous log entries.
* Starter log : Added a new, Party player names log, and map tilesets name log
* NEW configurable Steps log (repeat)
* NEW ItemEnable log param
0.17 & 0.17.1 changelogs:

* Removed the event id form the logs when using the manual scripts (page changes)


* Better Logs Commenting separators
* We tried to fix the line break
* Removed the mapID from the log, when player teleporting.
* NEW Show Choice - selected Choice log
* NEW Starter log include Activated plugins number
* NEW Change tilesets logs
* Fixed the teleport log bug,
* now there is no problem with keys not working in the Show Choices
* Fixed the Questlog param
* NEW Mapname displaying in the first(#1) Playerinfo modal window
*
I do know there are some debugger plugins, 1 really nice, but this one has a feature
I didn't saw before, which are the windows on screen for real time tracking.

but another thing I see from you "Fixed" and "NEW" is that, is the questlog from
all plugins or only a specific plugin to track?

as some like Galv, others from YEP and other for KageDesu, but I might test it
and see if it works with the other debugger plugin as it could be usefull to set,
change, and see result also in real time.

Keep up the good work, this can be really usefull for ingame debugging if it
can also work on a "test deployment" to see if everything is functional before
deploying it to the public to turn it off afterwards.
Basically it's very difficult to keep track of things, I'm not used to such logical systems. You have to find a connection point, point it in, click on it, then take the info out of it and restore the original function. This is the sort of thing that is very steep, because I forgot in the case of conditional branch, and in the case of true it shot the game, since I didn't give it back , to continue functioning as it should. This is dangerous stuff.

So, the fact that others have not really done this, after X hours of development I can see why.

It's NEW and FIX, it's for improvements and new features.

It's very difficult and tedious to do the logging, as I wrote above, so, compatibility is going to be a very very difficult thing. That's why I've started to make other plugins compatible. The YANFLY QJ is only because I use it in a project and needed the visual feedback (it makes my job quite easy).

Of course, it's not out of the question that I will do compatibility with other plugins in the future, but the priority is to improve the current ones. I'd like to make a bigger Player log focus, but it's damn hard. For example, I've tried to catch Skill learn logging with 10 different methods, to no avail.

I've already written the level up/down once, but I'm still struggling with the range display, so I've taken out the whole level up/down for now (you can set a small window for that, after all, so it's not that much of a problem for now)
I do know there are some debugger plugins, 1 really nice, but this one has a feature
I didn't saw before, which are the windows on screen for real time tracking.

but another thing I see from you "Fixed" and "NEW" is that, is the questlog from
all plugins or only a specific plugin to track?

as some like Galv, others from YEP and other for KageDesu, but I might test it
and see if it works with the other debugger plugin as it could be usefull to set,
change, and see result also in real time.

Keep up the good work, this can be really usefull for ingame debugging if it
can also work on a "test deployment" to see if everything is functional before
deploying it to the public to turn it off afterwards.
you done already a very good job, and people that like o debug a bit deeper on
errors can this one be very helpfull.

I didn't see that real time window before, so it's really helpfull tool on that part.
but take all the time you need, and prioritize where needed for stable/compability
where needed on your own project, maybe make it open source or help that can
add compability for other quest logs or plugins for tiny addons to work with it.

it is at least already helpfull, specially to follow the events track that can execute
correctly and to see if you dont make a mistake 🙂

keep it up though 🙂
Thanks, it's good to read stuff like this, it always gives me the strength to keep doing it, so I've released version 1.18.0 😀
you done already a very good job, and people that like o debug a bit deeper on
errors can this one be very helpfull.

I didn't see that real time window before, so it's really helpfull tool on that part.
but take all the time you need, and prioritize where needed for stable/compability
where needed on your own project, maybe make it open source or help that can
add compability for other quest logs or plugins for tiny addons to work with it.

it is at least already helpfull, specially to follow the events track that can execute
correctly and to see if you dont make a mistake 🙂

keep it up though 🙂
0.18 & 0.19 changelogs:

0.19.0
  • NEW Title screen scrollable window show the activated plugins. (+ version support)
  • Complete refactored the Log system storage (Many future problems have been solved)
  • Resized the log window (+30 width)
  • Repositioned the Modal window Groups
  • Fixed the issue if the player opened the shop, the same event action logs deleted.
  • Option to delete the logs.(you can define a keyups)
  • Option to enable or disable, if player teleport, log every prev logs from the window deleting
  • Title screen show the Debugger is enabled text
  • New Goal system (pre-alpha) think no big deal

0.18.0
  • New Plugin Compatibility: Yanfly RegionEvents
  • NEW Region Logs
  • Region logs enable / disable param
  • NEW Item used log (Only if item used on the menu screen support multiple items in a same time)
  • Param to enable / disable item used logs
  • New Common event manual tracker (just like the event) -
  • New script call : this.finishCommonEvent(n)
And here we are, new version released.
0.19.5
  • Plugin list window resized
  • Pluginlist header no longer count the separator plugins.
  • NEW Tint Screen log (Support predefined versions too)
  • NEW Play BGM log
  • NEW Full Control timer logs
  • Reposition the countdown timer
  • New Range switcher now can log also
  • New Range Variable now can log also
  • Single variable log now will calculates the current value and will print also
We go from Alpha to Beta tomorrow, which means a lot of new features. Sneak peak:

Several refactoring, API system for developers to easily create compatibility with the debugger extension.
New "map window" system, +3 var tracker window (for the modal window system)
And a brand new txt log file system that does the logging in the background to a standalone file. This mode works even if you already deploy the project to windows. By returning the TXt file, you can easily review the events, which TXT will log in slightly more detail.

A DEMO project has also been created in the background to give developers a walkthrough of the api system.

We've tweaked the linebreaking, although it's still buggy, but I feel that slowly all the bugs are being fixed.

Some new event logs.
This is SUPER impressive!
This is SUPER impressive!
Thank you 🙂
Can this plugin be used on Android and IOS please?
@Arrose you might need to test it, but while I think the windows are fixed,
probably on default resolution, it isn't dynamic or scrollable.

making dynamic windows is one thing, but scrollable probably need to be
added in it, but I have no idea, I just did a few quick test, but it's better
to test on android/iOS to see if it works.

as far I know it's written, it should have as most works on HTML basis.

Original thread: https://forums.rpgmakerweb.com/threads/debugger-plugin.159136/