Show Plugins Usage
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
https://rpgmaker.net/media/content/users/67753/locker/usage.png
Plugin preview-
Spoiler Code:
/*---------------------------------------------------------------------------*
* 2018/09/23 @kido0617
* https://kido0617.github.io/
* Public Domain
* Please use freely, credit not necessary
* Ver.1.0
*---------------------------------------------------------------------------*/
/*:
* @plugindesc Plugin for showing plugins usage in console
* @author @kido0617
* @help
* Details:
* https://kido0617.github.io/rpgmaker/2018-09-24-plugin-usage
* 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') == 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
本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/show-plugins-usage.101092/
页:
[1]