tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
812
Reaction score
1,404
First Language
English
Primarily Uses
N/A
ShowPluginsUsage - 2018/09/23 (Ver.1.0)

Creator name: kido0617

Overview
Plugin for showing plugins usage in console

Features
After installation, list of plugins that are unused/on/off shown in console

Version compatibility- RPG Maker MV 1.6 or higher

Preview
usage.png


Plugin preview-
Code:
/*---------------------------------------------------------------------------*
 * 2018/09/23 @kido0617
 * [URL]https://kido0617.github.io/[/URL]
 * Public Domain
 * Please use freely, credit not necessary
 * Ver.1.0
 *---------------------------------------------------------------------------*/

/*:
 * @plugindesc Plugin for showing plugins usage in console
 * @author @kido0617
 * @help
 * Details:
 * [URL]https://kido0617.github.io/rpgmaker/2018-09-24-plugin-usage[/URL]
 * After installation, list of plugins that are unused/on/off shown in console
 * Version compatibility- RPG Maker MV 1.6 or higher
 *
*/



(function(){

  var path = './js/plugins/';
  var fs = require('fs');
  var files = fs.readdirSync(path);
  var usage = {
    on: [],
    off: [],
    ununsed: []
  };

  for(var file of files){
    if(fs.statSync(path + file).isDirectory()) continue;
    var target = null;
    for(var p of $plugins){
      if(file.split('.js')[0] == p.name) {
        target = p;
        break;
      }
    }
    if(!target) usage.ununsed.push(file);
    else{
      if(p.status) usage.on.push(file);
      else usage.off.push(file);
    }
  }
  var endOfLine = require('os').EOL;
  var text = '';
  text += '・Unused--------------' + endOfLine;
  for(var f of usage.ununsed){
    text += f + endOfLine;
  }
  text += endOfLine;
  text += '・ON------------------' + endOfLine;
  for(f of usage.on){
    text += f + endOfLine;
  }
  text += endOfLine;
  text += '・OFF-----------------' + endOfLine;
  for(f of usage.off){
    text += f + endOfLine;
  }

  console.log(text);

})();

Credit and Thanks: kido0617

Terms of Use- Free for commercial and non-commercial use.

License - Public Domain

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/nmcbn8wtrn91cga/ShowPluginsUsage.js?dl=1
 

Attachments

  • ShowPluginsUsage.js
    1.6 KB · Views: 12
Last edited:

Moe_Lester13

Veteran
Veteran
Joined
Nov 22, 2015
Messages
72
Reaction score
11
First Language
English
This is actually going to be quite helpful in regards to bug fixing and deployment issues.
Thank you :)
 

Kikeluzi

Paladin
Veteran
Joined
Nov 18, 2015
Messages
51
Reaction score
26
First Language
Portuguese - Br
Primarily Uses
RMMV
Very good!!! thanks! :D
 

Latest Threads

Latest Posts

Latest Profile Posts

Made the "My Beating Mystery" board today:
3ENFLSC.png

in Grim Trigger episodes 3 & 4, the main characters play a Clue rip-off board game called "My Beating Mystery" (haha), so of course I had to draw the board for it. Can't decide if I wanna add blood or not
Jeez...
I finally decide, after several ppl asking me to, to create a gamethread about project M... And my internet craps out on me halfway through the process :(
making my first game is like trying to stuff all my experience with old games into one
so its slow and painful when i dont get it right... i bet the next game is gonna be finished earlier!
When you don't find any time to work... :kaocry:
First Ten Minutes of my Caretaker inspired game

Forum statistics

Threads
110,401
Messages
1,053,011
Members
143,460
Latest member
Totaldramawwe
Top