Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sledgy on Thu 12/06/2014 16:37:28

Title: AGS Game without pause (when inactive game window)
Post by: Sledgy on Thu 12/06/2014 16:37:28
It's really?

AGS Game without pause, when inactive game window. I.e. you click to Windows desktop (off game window) and the game works inspite of this

(http://cs618524.vk.me/v618524690/9bdd/WSSSIAE9JeI.jpg)

How to remove this game pausing?
Title: Re: AGS Game without pause (when inactive game window)
Post by: Ghost on Thu 12/06/2014 20:59:30
Correct me if I'm wrong or if this has changed, but AFAIK you can't. The application loses focus and is put on halt.
Title: Re: AGS Game without pause (when inactive game window)
Post by: Adeel on Fri 13/06/2014 09:44:32
It's possible to do so, Sledgy. :)

Quote from: ManualSetMultitaskingMode

SetMultitaskingMode (int mode)

Allows you to set what happens when the user switches away from your game.
If MODE is 0 (the default), then if the user Alt+Tabs out of your game, or clicks on another window, the game will pause and not continue until they switch back into the game.

If MODE is 1, then the game will continue to run in the background if the user switches away (useful if, for example, you are just making some sort of jukebox music player with AGS).

Note that mode 1 does not work with some graphics cards in full-screen mode, so you should only rely on it working when your game is run in windowed mode.

Cross-Platform Support

Windows: Yes
MS-DOS: No
Linux: Yes
MacOS: Yes

Example:

SetMultitaskingMode (1);

will mean that the game continues to run in the background.

E: If you're asking for this game in particular. Open acsetup.cfg in notepad or your favourite text editor and put this line:

Code (text) Select
[override]
multitasking=1


The game won't lose focus then. :)

Please note that this method will only work with games developed on AGS 3.3.0 and onward. If I'm not wrong, the developers would have already updated this game using 3.3.0 but I'm not too sure.
Title: Re: AGS Game without pause (when inactive game window)
Post by: monkey0506 on Sun 15/06/2014 14:22:08
I don't think Resonance used AGS 3.3.0 seeing as it (the game) was released two years ago.

You could try running the game with the 3.3.0 engine though. IIRC you can copy the 3.3.0 "acwin.exe" file into the game directory and then create a shortcut that targets "acwin.exe resonance.exe". Could be wrong about that last bit, but I know you can run the game using different engine versions.