A help here?

Hi,
It's been a while since I've wondered if some things are possible ... I hope this is the right section
Is there a way to allow the game to call up windows functions (for example a shortcut to turn off the PC from inside the game or open a folder)?
Or receive information from the PC (for example from a weather gadget in order to allow a NPC to respond in different ways depending on the actual weather)?
does anyone have ideas about it?
And how much lower level programming language (C, C++, Golang, Delphi, ASM) expertise do you have? Without it you're quite honestly screwed.
Ah! Sadly nothing at all, honestly... I just wanted to know if that's possible,
I think it could open interesting scenarios.
Maybe I can ask for technical help in the plugin section?
I don't think anyone will help you with that. It requires you to setup nw-gyp, then create a C++ plugin for nwjs, compile it and then implement it in game. And that's the easier stuff.
Weather widget is software, not hardware, so there's no magic command to gather the data you want from it. You need to reverse engineer it and know the exact byte addresses (which probably is variable, so you'd need to know where in the memory the program writes it through obtaining pointers). This requires experience with a debugger.
Making a program to restart the PC would be quite simple though. But you still need to compile it for nw.js using nw-gyp.
allow the game to call up windows functions
this is basically the same as programming a virus.
RMMV creates HTML5-Games that run in a browser, and a browser is intentionally programmed to prevent the website it runs from accessing the computer functions, because otherwise you would get even more malware from websites.
There are ways around that protection, but as said above they would require deep computer knowledge, and a lot of antivirus programs would try to block them.

that said, ideas like
for example a shortcut to turn off the PC from inside the game
will only get you angry users.
Just think about it:
You work on something important, decide to rest a while and play a game in your pause - and then the computer shuts off destroying your last work.

Not everything that sounds cool on first thoughts is cool in reality...
this is basically the same as programming a virus.
RMMV creates HTML5-Games that run in a browser, and a browser is intentionally programmed to prevent the website it runs from accessing the computer functions, because otherwise you would get even more malware from websites.
There are ways around that protection, but as said above they would require deep computer knowledge, and a lot of antivirus programs would try to block them.

that said, ideas like

will only get you angry users.
Just think about it:
You work on something important, decide to rest a while and play a game in your pause - and then the computer shuts off destroying your last work.

Not everything that sounds cool on first thoughts is cool in reality...

Yes, but the point is that it seems you think I want to use this function as a joke to the player.
Simply, playing with a joystick (without mouse and keyboard) I find it more convenient to be able to turn off the PC directly from an item in the pause menu for example. I never talked about sudden and random shutdowns, but a conscious possibility.
And also this is for a personal project, so I don't think I'll have any angry users ^^
However thanks for suggestion!
That said, I opened a thread in "javascript boards", so I think we can close this...
I never talked about sudden and random shutdowns
You never talked at all about what you wanted to do, other than shut down the PC. It's a general assumption here that you're going to share your game with others, so that means shutting down other people's PCs while they play your game - unless you specifically state otherwise.

Normally you'd just report your post and ask the mods to move it, rather than posting a new thread about the same thing in a different place. Now there are 2 threads, and people will have to go back and forth for the full context. To close your thread, you should also report it and let the mods know it's no longer needed 🙂

May I suggest you use more meaningful thread titles for future questions? Everyone who posts in this section is after "a little help" - it's good to know what you want without having to open the thread, so you don't spend time looking at something you have no knowledge/experience with.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/a-help-here.114465/