Check HDD specs?

Mark91

Veteran
Veteran
Joined
May 19, 2017
Messages
112
Reaction score
10
First Language
Italian
Primarily Uses
RMMV
Hi!
I'm using this call script to check the PC RAM value and then store it in a variable (for requirements purposes):

var os = require('os');
var divValue = Math.pow(1024, 3);
var totalMem = os.totalmem() / divValue;
$gameVariables.setValue(150, totalMem.toFixed(1));

Is there a way to check for HDD/SSD total and free space and then store those values in variables?
Is it also possible to check for CPU/HDD temperatures?
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,118
Reaction score
1,526
First Language
EN
Primarily Uses
RMMZ
For future reference: RPG Maker MV games deployed as a standalone executable run on NW.js, which is an extension of Node.js. So for anything relating to system access like this, you can search online for, e.g. "Node js check system temperature". Note that this sort of thing is not available to web deployments, since browsers are sandboxed for security reasons. :kaoswt:

Node documentation can be found here~
That said, I can't seem to find any methods for checking temperatures or disk/drive capacity there. I did find this, though:
I'm guessing you can download the linked npm module, stick it in your plugins folder (?), import as a plugin, then use the JS in a Script command as usual. Same idea with the temperatures:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top