Jump to content
  • Announcement

    The HyperSpin 2 early access beta is here!

    We’re starting the first public testing phase with Platinum Members to keep the scope manageable while we test the current feature set and begin to add more. In the future, we’ll provide a version for basic members as well.  On behalf of the entire HyperSpin team, we look forward to another exciting adventure with our community.

How to call a program to switch resolutions before and after the emulator is loaded?


alex2005

Recommended Posts

Posted

Hello guys,

Hope you can help me on that; the situation is, I normally start Windows and Hyperspin at 640x480.

But then I would like to switch to lower resolution to play certain emulators without interlacing (ie zsnes, kfusion).

I think this should be pretty easy to achieve, however I am running on issues:

> I call to 640x288.exe before running the emulator, and after exiting, I call 640x480.exe

The emulator starts perfectly, switches to resolution as expected, however when I exit the emulator in Hyperspin, it does not gracefully exit back to 640x480. Instead, I get a sort of split screen (see screenshot), HS does not go back to full screen at 640x480.

Could someone please give me a hand on this? I would like to exit the emulator normally and return back to HS at 640x480.

Screenshot:

post-136664-142870677589_thumb.jpg

My current code is something like this:

;----------------------------------------------------------------------------
; Super Nintendo
; Znesw 1.51
; by Shateredsoul
; 1.1
;
;Info:
;
;Make sure you set quickexit to your escape key while in ZSNES.
;If you want to use Esc as your quick exit key, open zsnesw.cfg 
;with a text editor and find the lines below. Set KeyQuickExit 
;to 1, as shown below. You can't set the quick exit key to 
;escape while in the emulator, because that's the exit key to 
;configuring keys. 
;
;Quit ZSNES / Load Menu / Reset Game / Panic Key
;KeyQuickExit=1
;KeyQuickLoad=0
;KeyQuickRst=0
;KeyResetAll=42
;
;----------------------------------------------------------------------------
Run, D:\utilidades emuladores\Switchres\640x288.exe
Run, %Executable% "%romPath%%romName%%romExtension%", %EmuPath%,
Process, WaitClose, %executable%

sleep, 3000

Process, Close, Hypersplash.exe


ExitApp

CloseProcess:
Process,Close,%executable%
Run, D:\utilidades emuladores\Switchres\640x480.exe

return

I would really appreciate any hints on this. Btw, I use an ArcadeVGA 5000, and Windows 7 64 bits, in case that helps. All other emus (GroovyMAME, Model 2, etc) do work well switching resolutions. Its just this exit behavoir that makes me crazy at the moment :D

Thanks a lot!

Posted

There is an app called qres that can switch resolutions via command line.

I'm away from my PC so not sure how to set this up after an emulator exits.

Should be possible though...1

Posted
There is an app called qres that can switch resolutions via command line.

I'm away from my PC so not sure how to set this up after an emulator exits.

Should be possible though...1

Thanks for the hints!

So far I tried calling 640x480 at different points on the ahk after exiting the emulator, but none of them worked.

Depending on where I set the exit call, it will either exit with a split screen, or exit using the 640x288 resolution... which is very strange.

Anyone else has gone through this before? I believe I am not the only one trying to switch resolutions on exiting emulators :)

Any code example will be greatly welcome :)

PS I do use the modified zsnesw.exe, which allows to add custom resolutions for arcade games (and set zsnes resolution to 320x240)

Cheers!

Posted

What happens if you switch the resolution to 640x480 then to 640x288 and then to 640x480 again when you exit. Can you switch between the resolutions if you don't run ZSNES?

Posted

Yes, i can switch resolutions in windows with no problem.

I tried with your suggestions a while ago with the same result.

What I see is:

1- when launching the snes game, I can see HS frontend switching to 640x288, and then the emulator starts at 320x240 with the game loaded.

2- when I exit, the desktop is set at 640x480, however the hyperspin frontend remains by some reason at 640x288 with the screen halved.

So actually the resolution is changed, just wondering why the HS frontend does not resize correctly, when it actually should.

I will give it a try with qres, but from what i see it is an old tool, not sure if it will work on W7 :)

Posted

hmmm.... I can't see the option on the specific emulator, also it doesnt show in the main settings of HyperHQ...

post-136664-142870677633_thumb.jpg

I can run the emulator at 640x480 interlaced, but would prefer to set up zsnes and kfusion at a low res, which looks 100 times better than interlaced :D

Posted
hmmm.... I can't see the option on the specific emulator, also it doesnt show in the main settings of HyperHQ...

[ATTACH=CONFIG]52183[/ATTACH]

I can run the emulator at 640x480 interlaced, but would prefer to set up zsnes and kfusion at a low res, which looks 100 times better than interlaced :D

That is HyperHQ. That's where you change settings for Hyperspin. Are you not using Hyperlaunch? If so, you can change settings for that with HyperlaunchHQ. I grabbed a random image of the internet and higlighted the setting in green.

post-498-142870677634_thumb.jpg

Posted

thanks for the details! I use hyperlaunch, but not hyperlaunchHQ :(

It may work actually... can I just download HyperlaunchHQ and run it, or will it modify many things from my current setup? I am afraid to screw my current setup trying, but if its something that will not touch many settings, I will give it a try :D

Posted

This same problem happened to me when I ran an older version of HyperLaunch. Try updating via GIT first, then Dime333's solution is exactly what you should do next. I suggest winzipping your settings folder so you don't accidentally override all the directory paths like I have done on three separate occassions now.

Are you using GroovyUME for switching resolutions?

Posted

Thanks! Really glad to know this has a solution :)

I tried updating via GIT in the past, and my experience was a bit frustrating. By some reason it updated to a beta version and I read later on that it was not compatible with my current setup.

Will it help if I just download HyperLaunchHQ (I think I got the install bits of version 1.0.13 somewhere)?

I do use GroovyMAME, which works great on Windows 7 with ArcadeVGA, and I no longer have the famous "directdraw" error when switching resolutions. Works like charm really :)

I will be switching to GroovyUME at some point, since I have a lot of computer systems which I want to emulate, and seems the simplest way to go :)

Posted
Thanks! Really glad to know this has a solution :)

I tried updating via GIT in the past, and my experience was a bit frustrating. By some reason it updated to a beta version and I read later on that it was not compatible with my current setup.

Will it help if I just download HyperLaunchHQ (I think I got the install bits of version 1.0.13 somewhere)?

I do use GroovyMAME, which works great on Windows 7 with ArcadeVGA, and I no longer have the famous "directdraw" error when switching resolutions. Works like charm really :)

I will be switching to GroovyUME at some point, since I have a lot of computer systems which I want to emulate, and seems the simplest way to go :)

If changing this setting is all that you need to do, you can just go to HyperLaunch\Settings\Super Nintendo Entertainment System\ and edit the file "hyperlaunch.ini"

Under the section called [exit], there should be a line that says "Restore_Front_End_On_Exit=use_global". Change that line to "Restore_Front_End_On_Exit=Restore and Click" or "Restore_Front_End_On_Exit=Restore".

It sounds like you have an outdated version of Hyperlaunch, so I can't say for sure that you have this option. But give it a try.

Posted

I do have a global hyperlaunch.ini and also a super nintendo.ini files.

Under the first, I saw the parameter was turned to false, tried turning it to true, and later on to Restore, but with the same results.

I then tried to place it on the super nintendo ini file (the parameter was not present here, but added it anyway), but didnt change anything.

I guess I need to go through HyperlaunchHQ install, and then take it from there :(

Will give it a try during the weekend, and see how it goes. For now doing a backup of whole hyperspin just in case :)

Thanks!

Posted

I tried the last parameter suggestions on zsnes only, but I remember when I made the first calls to 640x288.exe and 640x480.exe, at that time i also tried with kfusion for Megadrive/Genesis with the same results as zsnes.

Posted
I do have a global hyperlaunch.ini and also a super nintendo.ini files.

Under the first, I saw the parameter was turned to false, tried turning it to true, and later on to Restore, but with the same results.

I then tried to place it on the super nintendo ini file (the parameter was not present here, but added it anyway), but didnt change anything.

I guess I need to go through HyperlaunchHQ install, and then take it from there :(

Will give it a try during the weekend, and see how it goes. For now doing a backup of whole hyperspin just in case :)

Thanks!

HyperlaunchHQ just edits your ini files the exact same way that you did manually. So it won't make any difference.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...