Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
hey guy is possible to get the machine id in nodeJS
especialy with this command

PHP:
os = require('os');
The closest to the single machine id would be either the mac or router address.
But i would like the id machine in Windows(the OS)
PHP:
info = os.networkInterfaces().Ethernet();
info[0].address;  //give "fe10::24a1:65b1:8ada:d3b"
info[0].mac; //give "6d:f0:31:e0:47:6c"


Tell me if this is not possible!!?
I would actually like to check a key based on the machine id.
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
562
Reaction score
805
First Language
English
Primarily Uses
RMMV
That's about as deep as you can get I think; also, what is this ID?
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
That's about as deep as you can get I think; also, what is this ID?

Sony-Vegas-Pro-13-Serial-Number-Free-for-You.jpg

you will find it in the Windows proprety or sometime with sofware.
Is usfull to make a custom key work only with the machine
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
562
Reaction score
805
First Language
English
Primarily Uses
RMMV
Oh okay; well this is just an idea but it may be possible using a child process in NodeJS to accesd the command line and look up the machine id.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
In fact without command line, the information is in all the windows pc at the same directory.
is in the file machine.inf
in C:\Windows\INF

PHP:
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}

I did some research, but I found nothing in JS or Node JS to get this information easily.:(
 

Kino

EIS Game Dev
Veteran
Joined
Nov 27, 2015
Messages
562
Reaction score
805
First Language
English
Primarily Uses
RMMV
You'd have to either use nodejs and change directories. To do that. You'd have to use the Path module. That module lets you join directories and move around.

Or you can do childprocess and use the command line, but it's not as flexible.

If you know Unix:
https://www.npmjs.com/package/shelljs

Can be used on any platform
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,452
First Language
French
Primarily Uses
RMMV
You'd have to either use nodejs and change directories. To do that. You'd have to use the Path module. That module lets you join directories and move around.

Or you can do childprocess and use the command line, but it's not as flexible.

If you know Unix:
https://www.npmjs.com/package/shelljs

Can be used on any platform
HEHE youpi i find i way

PHP:
var fs = require('fs');
var path = process.cwd();
var buffer = fs.readFileSync('C:\\Windows\\INF\\machine.inf');
console.log(buffer.toString());
SFSFGG.png
symply need use regex after to catch(match) the line i need
 

Latest Threads

Latest Profile Posts

image_2021-06-16_153010.png

Why are barrels to difficult? xD I feel like i Barrel...y made it....eh EHHH!? :p
Bluh... glad this present heatwave is coming to a close...
Look what I found, it was my first ABS.

This project was never completed because I had lost the computer where it was stored.
Character Creator for RPGM 2000, VX, XP, & LPC Style Sprites | RPG Maker News #72

Is there any way to get more than 8 enemies in a troop in RMMV or is that limit pretty much hardcoded into the engine?

Forum statistics

Threads
112,277
Messages
1,067,029
Members
145,899
Latest member
noor123
Top