Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Game interacting with windows

ghinsu

Member

Can a game interact with windows through scripts? i mean like you use some item ingame and then windows shuts down xD or something like, you release 3 games at once, and another game as a launcher from where you launch a game
 
There's a couple ways to do this. The first way to do this is through Win32API, which is somewhat complex, but still useable. The second way I can think of to do this is to make a .dll file, and use that to interact with Windows. This is actually more complex, but may work better than the first method. Also, for shutting down, look at how the command prompt shuts down a computer, and use that bit of information on a .exe in the Windows folder. (I think it is Shutdown.exe or something like that)
 
ghinsu":4beihqgy said:
oooooh ^^ cool, just think of the viruses you can make with this ^^ cool, i'm gonna gather some more info on this

What a wonderful thing to say. I'd be sure to download a game from you. :wink:

I can see some good things stemming from that type of interactivity. However all in all, they only seem to be little nuances that couldn't really define a game. So the question is: is it worth the effort?
 
Passenger":3stc7mh7 said:
ghinsu":3stc7mh7 said:
oooooh ^^ cool, just think of the viruses you can make with this ^^ cool, i'm gonna gather some more info on this

What a wonderful thing to say. I'd be sure to download a game from you. :wink:

I can see some good things stemming from that type of interactivity. However all in all, they only seem to be little nuances that couldn't really define a game. So the question is: is it worth the effort?

Well, there are two scripts I can think of that benefit from this immediately. The first is a video script, which usually uses Win32API to play the video. The second is a script that resizes the screen (In RMXP), as that uses Win32API to resize the screen, instead of using a .dll (which can also be done)
 
Win32API is using DLL files to preform things.
[rgss]Win32API.new('my_lib.dll', 'AFunct', ['l'], ['l'])
[/rgss]

Your two options available for RMXP/RMVX to use to do external things are API calls, and system() calls.
 

ghinsu

Member

or an even that when you talk with somebody your hard drive is being erased and you don't even know it happens, and this normaly can't be detected by antivirus right?
 
Yeyinde":mi1v534e said:
Win32API is using DLL files to preform things.
[rgss]Win32API.new('my_lib.dll', 'AFunct', ['l'], ['l'])
[/rgss]

Your two options available for RMXP/RMVX to use to do external things are API calls, and system() calls.

I'm sorry about not being clear. I specified Win32API as seperate from .dll files simply because they are the default Windows interface for applications, while I was also specifying that you could make a .dll file to do what you need. Anyway, I agree. If anybody who has seen these posts sees you offer up a game for download, they probably won't download it. Also, from my (very limited knowledge of Win32API), I'm pretty sure that even the default system wouldn't let some random program start erasing the hard drive, and, if it did, it wouldn't let it erase critical system files.
 

ghinsu

Member

Unka Josh":64kdq5xb said:
Well, my anti-virus softwear would notify me if a resource was attempting to do this.

Also, yeah, ghinsu, watch nobody ever try a game of yours. Because you're a dick.

What did i do? i just asked a question, i'm new to this comunity, i haven't even posted or said anything about any of my games, and why am i a dick?
 
Now the innocent act, eh?

After posting gleefully about how you could use the information you'd been given to convert an RMXP game into a hard-drive-erasing Trojan Horse?

Riiiiiiiiight.
 

Zeriab

Sponsor

I do not believe that ghinsu would actually do such a thing.
If ghinsu does put malicious code into the game then there are most likely good grounds for suing since ghinsu has intentionally placed malicious code in the game. I would in fact urge all to shun ghinsu in that case and look for suing possibilities.

Since the thought have been aired I would on a precaution base either not download any software from ghinsu or run it in a sandbox.

@ghinsu: You talking about the potential of viruses. It is not appreciate and everyone will be vary of any executable contents you publish.

*hugs*
- Zeriab
 

ghinsu

Member

i just asked about the posibilities you can achieve, didn't you read my post where i said a system where you chose which game to chose from a list, and run each game separatelly? anyway i don't know bit of programming xD and if i ever make a virus i'll most likely get owned by it lol
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top