Two Displays - Solved!

Having technical difficulties with Supermodel? Last-minute wardrobe malfunction? Get help here.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Two Displays - Solved!

Postby kalinium » Sun Jul 19, 2020 3:35 am

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!
Last edited by kalinium on Mon Aug 03, 2020 9:28 am, edited 1 time in total.
kalinium
 
Posts: 8
Joined: Tue Jul 14, 2020 8:15 am

Re: Two Displays

Postby Bart » Fri Jul 24, 2020 11:38 am

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.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Two Displays

Postby kalinium » Fri Jul 24, 2020 1:08 pm

Thanks, I appreciate it very much.
kalinium
 
Posts: 8
Joined: Tue Jul 14, 2020 8:15 am

Re: Two Displays

Postby Bart » Fri Jul 24, 2020 5:50 pm

See here for a PowerShell script.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Two Displays

Postby Toshiko » Sat Jul 25, 2020 8:13 am

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!
Toshiko
 
Posts: 130
Joined: Fri Mar 16, 2012 10:30 am

Re: Two Displays

Postby kalinium » Sat Jul 25, 2020 9:06 am

Bart wrote:See here for a PowerShell script.


Thanks,
I'll try learning it, because I have no clue right now what it says... :)
kalinium
 
Posts: 8
Joined: Tue Jul 14, 2020 8:15 am

Re: Two Displays

Postby kalinium » Mon Aug 03, 2020 9:28 am

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
kalinium
 
Posts: 8
Joined: Tue Jul 14, 2020 8:15 am

Re: Two Displays - Solved!

Postby sahel » Tue Mar 23, 2021 7:03 am

Is there any solution for the doubled sound?
sahel
 
Posts: 10
Joined: Wed Apr 08, 2020 2:56 am

Re: Two Displays - Solved!

Postby Bart » Tue Mar 23, 2021 1:36 pm

Supermodel has config options to control music and sound volume.
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: Two Displays - Solved!

Postby sahel » Fri Mar 26, 2021 8:48 am

Bart wrote:Supermodel has config options to control music and sound volume.

All right, thanks!
I'll try muting one of the two
sahel
 
Posts: 10
Joined: Wed Apr 08, 2020 2:56 am


Return to The Fitting Room

Who is online

Users browsing this forum: No registered users and 1 guest

cron