Save-Point
Prevent Deactivation - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: Prevent Deactivation (/thread-9041.html)



Prevent Deactivation - DerVVulfman - 03-25-2019

Prevent Deactivation
by KK20
Version: 1.1
* and Minor F12 fix added by DerVVulfman



Introduction
When the game window is no longer the active window, it normally freezes the game from updating. This script will allow games to still run in the background.

This feature makes it so your game stays active and continues to run, even if you bring up another window or program.



Features
  • Keeps the game running, even if you're running another program
  • Has options to turn on/off the prevention feature
  • Versions for Ruby 1.8 and newer Ruby 2.0+



Script

The version for Ruby 1.9.2+
--or--
The version for RPGMaker VXAce


Required Attachment
https://www.save-point.org/attachment.php?aid=1114



Instructions
Mainly, place the .DLL attached in your project's root directory and paste the script just above main after all other custom scripts.  Other instructions are in the script.



FAQ
This was searched for by DerVVulfman, the request at RPGMakerWeb.Com posted and found right (>HERE<)



Compatibility
Designed for the RPGMaker engines, with two versions based on which version of Ruby/RGSS your engine is using.



Credits and Thanks
This script was designed by KK20, and with thanks to Jaiden for the toggle on/off feature request.


Terms and Conditions
Due credit for both KK20 and Jaiden is required.  Free for use in commercial projects.