Page 1 of 1

Two Displays - Solved!

PostPosted: Sun Jul 19, 2020 3:35 am
by kalinium
I've been reconstructing two Sega Rally 2 cabs, I bought from an arcade machines graveyard. Everything was rotten inside so I had to lose all of the old boards.

I've discovered this project and I was so happy, it works great, and feels great to play.

I had success linking two instances of supermodel 3 together, which is great. I would like to know if there's a way of launching a game from one computer, in two different displays?

Master car in display 1, and Slave car in display 2.

Thank you for your amazing work!

Re: Two Displays

PostPosted: Fri Jul 24, 2020 11:38 am
by Bart
You could write a script to launch two instances of Supermodel but I don't know how you would specify the display. Supermodel currently does not have this ability. I think SDL2 may support this feature but someone would have to dig into it and propose how it would work (e.g., it must work for launching in both windowed and full screen mode and be consistent with all the other video options).

I would look to see whether Windows has the capability to force a program to appear on a given display. There might be a way to script this.

Re: Two Displays

PostPosted: Fri Jul 24, 2020 1:08 pm
by kalinium
Thanks, I appreciate it very much.

Re: Two Displays

PostPosted: Fri Jul 24, 2020 5:50 pm
by Bart
See here for a PowerShell script.

Re: Two Displays

PostPosted: Sat Jul 25, 2020 8:13 am
by Toshiko
What a coincidence! I was just popping in here to see if there was a way to use full screen on something other than the primary display, and the answer was right here waiting for me. Thanks, Bart!

Re: Two Displays

PostPosted: Sat Jul 25, 2020 9:06 am
by kalinium
Bart wrote:See here for a PowerShell script.


Thanks,
I'll try learning it, because I have no clue right now what it says... :)

Re: Two Displays

PostPosted: Mon Aug 03, 2020 9:28 am
by kalinium
OK,
After hours of trying I finally had success using this little tool called cmdow.exe https://ritchielawrence.github.io/cmdow/!

The batch file I made, loads the two instances of Supermodel, and than moves one window to the second screen. I've tested many variations of it, and this one just works... I think cmdow catches the first launched window of supermodel before the other one fully loads because If I try moving cmdow to right after the first instance launches, it doesn't work. Even though I'm sure it can be done more elegantly, it works for me, so I'm happy!
I have two 1920*1080 screens, so the position written in the batch file (1910.-31) is for not showing the window frame, if I try running -fullscreen, cmdow can't move the window.

Here's a demo of the dual screen launch: https://youtu.be/Oq8TBdZn6MU
As you can hear, the audio is doubled, even though one is launched with "-sound-volume=0 -music-volume=0", so if you have any ideas with that...

Code: Select all
cd supermodel3-car2
start cmd.exe /k call Supermodel-car2.bat
timeout 4
cd..

cd supermodel3
start cmd.exe /k call supermodel.bat


cd..
cmdow.exe supermodel /mov 1910 -31

Re: Two Displays - Solved!

PostPosted: Tue Mar 23, 2021 7:03 am
by sahel
Is there any solution for the doubled sound?

Re: Two Displays - Solved!

PostPosted: Tue Mar 23, 2021 1:36 pm
by Bart
Supermodel has config options to control music and sound volume.

Re: Two Displays - Solved!

PostPosted: Fri Mar 26, 2021 8:48 am
by sahel
Bart wrote:Supermodel has config options to control music and sound volume.

All right, thanks!
I'll try muting one of the two