RPG Maker Forums

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


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

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,473
Members
137,823
Latest member
yossiii
Top