Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: sTo0z on February 18, 2020, 06:15:14 PM

Title: nb_mode_wait and windows_games trouble
Post by: sTo0z on February 18, 2020, 06:15:14 PM
Hello all!

I've almost got my windows_games working nicely but it seems when I fix one, I break another.

At first, I was not using the "nb_mode_wait" option and most of my games would launch correctly. But then I ran into Street Fighter V, and it seemed to launch a quick window, then would launch the game, and AM would resume focus after the first quick window disappeared.

After setting "nb_mode_wait" to "10", all of my games were loading correctly again with the delay. All except for one. Soul Calibur VI was working without "nb_mode_wait", but now that I've set it to 10 to fix Street Fighter V, now SCVI is acting bizarre.

SCVI will load a little window for quite awhile but AM will always instantly re-grab focus and therefore the game will not control properly (controlling in-game is actually simultaneously controlling AM).

I think when I was searching on much older solutions for windows_games like this, someone mentioned setting up a .bat file to launch the game or something... maybe that is an option?

Anyone run into this? Thank you!
Title: Re: nb_mode_wait and windows_games trouble
Post by: hermine.potter on February 21, 2020, 10:24:01 AM
try batch. there are two options to start a game.

>starting executable + keep a cmd-window open, till executable ends :
Code: [Select]
@echo off
"C:\GAMES\UT2004\System\UT2004.exe"

>starting executable + close cmd-window:
Code: [Select]
@echo off
start "" "C:\GAMES\UT2004\System\UT2004.exe"


And some games need to change directory first & then start the executable:

>change directory + starting executable + keep a cmd-windows open, till executable ends:
Code: [Select]
@echo off
cd "C:\GAMES\Battlefield 1942"
"BF1942.exe"

>change directory + starting executable + close cmd-window
Code: [Select]
@echo off
cd "C:\GAMES\Battlefield 1942"
start "" "BF1942.exe"
Title: Re: nb_mode_wait and windows_games trouble
Post by: sTo0z on February 24, 2020, 12:51:48 PM
Thank you very much, I'll give it a try.