[DEV]Skill_Usage Plugin

Some of you may be familiar with a script I made in RPGMAKER VX ACE that could track the usage of skills for actors. It was nice an all but was frustrating as it had no automatic way of sending the data to you. i.e you had to ask your tester(s) to send you the data file.


Well development has begun on the RPGMAKER MV version. Here's what it can do right now:

  • Track the usage of actor skills i.e how many times it was used and it's percentage of it's use compared to that actors other skills.
  • Track the usage of enemy skills <- Major feature that the ace version lacked.
  • Send all this data to a neat SQL database via jquery.AJAX and PHP. <- This is a totally awesome feature as you now don't have to look at all that data at once and handles data being sent to you automatically.
  • Track the skill id and name so you can easily go back to RPGMAKER and edit it if need be.
  • (the following two points still need some work as I have to get the damage from the client side still but it works in theory)
  • Displays the lowest damage the skill has done.
  • Displays the highest damage the skill has done.
  • shows the average targets the skill hits.



Here's some additional plans for it:

  • Track the average damage a skill does. This one would have been hard to do with the way SQL works.
  • I have a few other thoughts that I may try that I am not currently sold on.
  • Rewrite it using Node.js, Websockets and MongoDB.
  • If you have ideas on additional data/features it could have now is the time to tell me.



Screenshots:

Spoiler
Screenieofskill_usage2_zpswnsc9iqe.png
Screenieofskill_usage_zpsvlqr5aam.png



Enough talk where can I try this?!?!


Answer it is currently in beta testing.


Authors note: Why does SQL errors have to be so painful....
An update on my progress.


Enemy data is now stored in a separate database apart from the Actor data. Making it over all a lot cleaner and easier to find the data.


Skills will now show the lowest damage and highest damage they hit. <- More work is needed on this one as I haven't wrote the client side part for gathering skill damage yet but it should work in theory.


To do:


Test rigorously for security flaws and fix them. <- I've done some testing already and it has passed so far.


Remove/change errors sent to client on server failure.
Update:


Can now show the average targets the skill has hit.


Should be more secure now. <- so far only one flaw was found and that has been fixed 🙂


Names of actors, enemies and skills will now have spaces replaced with underscores vs removing them completely.


column names also have underscores now to improve readability.


I'm now opening it up to closed beta testing see edited first post.
Would not it be easier to write everything in Javascript using NodeJS + websockets + mongodb?
As I have no current experience with NodeJs, websockets and mongodb I believe it would actually take longer to do (as I would have to learn how these things function first).


Since all the functionality is already in place I would have to do a complete rewrite as well. However since you brought it up I will definitely look into it for this project (and an extension of this project which is still in it's infancy) to see if it is something that would be better.


Thanks for bringing it up by the way.
So it has been awhile since I have updated this thread reason being I just now got the books I need to fully learn Node.js, Websockets and MongoDB. However progress is going to be rather slow for the next couple of months as I am back in school. That being said I think it is only fair to show some mock ups of how I am imagining the admin utility's for this new system.


Some information:


1. You will need to login when using this system (as it will be part of a much larger project now)


2. Login will take place at the start of the game.


3. When logged in as an administrator you will have access to some extra utility's shown in the spoiler below.

Spoiler
Skill%20Stats%201_zpsxjfemx2r.png



Skill%20Stats%202_zpszfjbej2e.png



The first image is is a window that will showcase actors or enemies depending on which option is selected. The box on the bottom will accept text or Regexp to help find certain entries. The above example shows all enemies starting with the letter 'S'.


The second image showcases more information about the entry you selected.


Does this look better than than the SQL version, do you think it will be easier to use, or have any additional thoughts?
Progress update:


Sockets + nodeJS + mongoDB is now functional


To do:


Write the utility scene for admins to view skill data. - Made it so Scene_Debug can't be loaded if you are not an admin; Still need to write utility scene. However I will need to make some server side changes for some more validation.


Few other adjustments to the code.


Write a manual for proper usage. - Think I might do video tutorials on usage instead.


Get the login scene to work with all the other code.


Close the connection when user refreshes page.


Write additional extensions to be included with this script. - Cloud Save will be included (will be super easy to write)


Write some code to add new user when a new user logs in for first time.
So its been awhile since I've been able to work on this here is an update on my current progress:


Utility scene is getting closer and closer to completion it can so far do the following:


1. Currently display all actors (enemies are still being worked on) in the database.


2. A working search bar that accepts RegExp input as well as normal strings.


3. Scene looks almost exactly like it does in the images I posted above.


4. Utility scene only gets loaded if the user is an admin and they press the debug key.


New input:


Allows for typing like normal when on certain scenes.

Original thread: https://forums.rpgmakerweb.com/threads/dev-skill_usage-plugin.61507/