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 set up ScummVM in HS ?


ChazMan

Recommended Posts

Posted

Hey loppydog,

Thanks for getting back to me. I managed to get it to work last night with a little code tweaking. I had that in my script but for some reason it wasn't behaving.

Does anyone know how to hide windows from popping up as scummVM loads? Its a minor thing but its ruins the illusion that my cab isn't a windows computer.

Basically when I choose a game a dos like shell pops up for a second before scumm appears. I have tried using some code I found to create a black screen which works but when I quit the game it doesn't close!

  • Replies 136
  • Created
  • Last Reply
Posted

If you are creating the black screen via gui commands, you need to issue "gui destroy" right after the game opens and before it closes.

Posted

Hmm... I tried that but perhaps I didn't put the gui destroy part in the right place lol.

Ok will give it another try! Thanks!

Posted

it kinda sounds to me like he NEEDS the black screen to come up to hide the window...but either way, its all about the script. You can do very creative things with AHK.

  • 3 weeks later...
Posted

I am going absolutely insane here.

I've been trying to get Scumm working for about a month and I just can't seem to get it right.

I keep getting the "ScummVM is not a supported system" error whenever I try to launch. I've tried everything, from changing it to a normal launch type in HyperHQ. I feel like I've given every permutation of the options a shot. I'm at my wits end.

Here's the relevant part of my Hyperlaunch script.


;***********************************ScummVM************************************

else if (systemName = "ScummVM" && executable = "scummvm.exe")
{
   hideDesktop()
   Hotkey, %exitEmulatorKey%, CloseProcess
   Hotkey, $1, ScummvmSave
   Hotkey, $2, ScummvmLoad
   Gui +AlwaysOnTop -Caption +ToolWindow 
   Gui, color, 0
   Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
   Run, "%emupath%%executable%" %romname%
   WinWaitActive, Scummvm.exe
   sleep, 2000
   Gui Destroy 
   lalt::1
   x::2
   1 & 2::
   send, {esc}  
   Process, waitClose, %executable%
   Process, Close, HyperLaunch.exe
   return
   WinActivate, HyperSpin
}

Posted

Download and install "Autohotkey"

Compile Hyperlaunch with Autohotkey.

(right click on Hyperlaunch.ahk and select compile if AutoHotkey is installed correctly)

[edit] added help thread

http://www.hyperspin-fe.com/index.php?option=com_content&view=article&id=97&Itemid=108

Always Compile after adding new systems or making any changes to Hyperlaunch.

Also if you find you have problems remapping some keys (lalt and x or 1 and 2) in other systems, remove these lines for now:

lalt::1

x::2

1 & 2::

send, {esc}

Posted
Download and install "Autohotkey"

Compile Hyperlaunch with Autohotkey.

(right click on Hyperlaunch.ahk and select compile if AutoHotkey is installed correctly)

[edit] added help thread

Always Compile after adding new systems or making any changes to Hyperlaunch.

Also if you find you have problems remapping some keys (lalt and x or 1 and 2) in other systems, remove these lines for now:

lalt::1

x::2

1 & 2::

send, {esc}

Lord in heaven is that all I was doing wrong?

I was editing the damn AHK file with Notepad and then not compiling. I feel so stupid.

Thanks for making my month long headache go away.

Posted

Well, I've manged to get ScummVM to be recognized in HyperLaunch and I'm pretty sure it even is trying to launch the roms!

However, I encountered a new problem....

I'm now getting an error that says "Make sure you have a backslash on the end of your paths"

This HAS to be an error generated by ScummVM. Any ideas about how to fix it?

Here's my updated AHK file for reference.

 ;***********************************ScummVM***********************************

else if (systemName = "ScummVM" && executable = "ScummVM.exe")
{
   hideDesktop()
   Hotkey, %exitEmulatorKey%, CloseProcess
   Gui +AlwaysOnTop -Caption +ToolWindow 
   Gui, color, 0
   Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
   Run, "%emupath%%executable%" %romname%\
   WinWaitActive, Scummvm.exe
   sleep, 2000
   Gui Destroy
   lalt & x::
   send, {esc}  
   Process, waitClose, %executable%
   Process, Close, HyperLaunch.exe
   return
   WinActivate, HyperSpin
}

Posted

hehe solving one prob seems to always lead to another which makes it so gratifying when it finally all works.

glad your a little closer!!

search "backslash error" in main forum i think

[edit]

"Make sure your paths contain a backslash on the end" Help :(

from reading thru other posts:

it may be the wrong version of autohotkey not scummvm.

If your running on windows 7 install autohotkey (basic) not the other version.

uninstall original first then when basic is installed re-compile again.

I just had this same problem on a "loaner" pc im using which is win7. my dead computer was vista and the other non basic version of autohotkey worked fine until it died.

Posted

It works! Oh happy day!

Thanks so much for helping me get rid of that headache! :D

Now the only problem is figuring out how to get it to respond to arrow key inputs. It doesn't seem to want to.

  • 5 months later...
Posted

Hmm... So I created this Thread on 7-13-09 And Today, I am installing ScummVM into my Cab... Talk about being Lazy... Wow! :sleep:

Okay. I got it working good. EXCEPT.. When I exit, I get the Black screen, and I notice that HyperLaunch.exe is still running.. It does not close on its own..

Here is the .ahk I am using...

;***********************************ScummVM*****************

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

WinWaitActive, Scummvm.exe

sleep, 2000

Gui Destroy

lalt & x::

send, {esc}

Process, waitClose, %executable%

Process, Close, HyperLaunch.exe

return

WinActivate, HyperSpin

}

Just so you know, I am Using a Button that = ESC

Maybe that's the problem.. :playingball:

Posted

LOL , it has been along time.

So long in fact I dont remember if I did some of those things to the script or not.

Parts of it look wrong.

So I made a couple of changes (I cant test atm)

Also for future reference,

If you have any problems with other emus when you hit

"lalt & x"

(Which sends escape), That is the culprit right there.

I have to look up the "exact" code to wrap those lines with somthing like:

ifwinactive, ahk_class scummvm

lalt & x::

send, {esc}

ifwinactive

In theory these commands are then only used in Scummvm and no other emu. Currently it most likely at some point will cause problems.

 
;***********************************ScummVM******* **********

else if (systemName = "ScummVM" && executable = "ScummVM.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Gui +AlwaysOnTop -Caption +ToolWindow 
Gui, color, 0
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
Run, "%emupath%%executable%" %romname%
WinWaitActive, Scummvm.exe
sleep, 2000
Gui Destroy
lalt & x::
send, {esc} 
return
Process, waitClose, %executable%
WinActivate, HyperSpin
exitapp
}

Posted

I have a Button that send the ESC command. So I tried this, but it did not close hyperlaunch.exe.

;***********************************ScummVM******* **********

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

WinWaitActive, Scummvm.exe

sleep, 2000

Gui Destroy

esc::

send, {esc}

return

Process, waitClose, %executable%

WinActivate, HyperSpin

exitapp

}

So when it exit's ScummVM, I see a black screen..

Anyone have any idea how to fix this? Thanks!

Posted
I have a Button that send the ESC command. So I tried this, but it did not close hyperlaunch.exe.

;***********************************ScummVM******* **********

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

WinWaitActive, Scummvm.exe

sleep, 2000

Gui Destroy

esc::

send, {esc}

return

Process, waitClose, %executable%

WinActivate, HyperSpin

exitapp

}

So when it exit's ScummVM, I see a black screen..

Anyone have any idea how to fix this? Thanks!

I have it working flawlessly in both HL 1.0 and 2.0 without these lines above.

I dont use "exitemulatorkey=esc" either. I use a 2 button combo.

(esc conflicts with some games like "Full Throttle" for me)

Try it from there then we'll see if we need to add anything for your system or "exitemulatorkey" configuration.

Posted

Okay, I tried this:

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

WinWaitActive, Scummvm.exe

sleep, 2000

Gui Destroy

Process, waitClose, %executable%

WinActivate, HyperSpin

exitapp

}

Game loads fine, But when I exit the game, I get the Black Screen...

And it still won't closer HyperLaunch.exe

Every other Emulator I have on my Cab, all 33 of them, Work fine.. But not this one.. Doh!

Next idea? :party:

Posted
Okay, I tried this:

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Runwait, "%emupath%%executable%" %romname%

WinWaitActive, Scummvm.exe

sleep, 2000

Gui Destroy

Process, waitClose, %executable%

WinActivate, HyperSpin

exitapp

}

Game loads fine, But when I exit the game, I get the Black Screen...

And it still won't closer HyperLaunch.exe

Every other Emulator I have on my Cab, all 33 of them, Work fine.. But not this one.. Doh!

Next idea? :party:

Have to say, Im a little stumped!! :hmmmm:

You probably dont need all three of these, just one. (I added "Runwait" just for another option) Test with any one of them one at a time.

I could test removing the lines on my end but it works no problems for me so my results wouldnt help you.

So, Im reaching waaay out here,

but with most emus when they work on one system (no blackscreen) but not another its generally a windows config problem or a screen res compatibility problem between HS and the emu (scummvm)

Why Hyperlaunch is not closing? I dont know.

try disabling,

;exitapp

??? and replace it with,

process, close, hyperlaunch.exe

?????

I have a fistful of straws but no answers.

Is this with every scummvm game you tested?

Posted

IT WORKS NOW!! YEAH!!!

Here is what I am using now.

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

sleep, 2000

Gui Destroy

Process, waitClose, %executable%

process, close, hyperlaunch.exe

WinActivate, HyperSpin

exitapp

}

I may not need one of the above commands, but it works, I tried a few games. So who cares.. :pcguru:

THANKS Chillinwater!!!!!!! :thrasher:

Posted
IT WORKS NOW!! YEAH!!!

Here is what I am using now.

else if (systemName = "ScummVM" && executable = "ScummVM.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Gui +AlwaysOnTop -Caption +ToolWindow

Gui, color, 0

Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE

Run, "%emupath%%executable%" %romname%

sleep, 2000

Gui Destroy

Process, waitClose, %executable%

process, close, hyperlaunch.exe

WinActivate, HyperSpin

exitapp

}

I may not need one of the above commands, but it works, I tried a few games. So who cares.. :pcguru:

THANKS Chillinwater!!!!!!! :thrasher:

Hooray it works!!! :D

The only thing I see now is with this line.

If the line is working then these lines do not because Hyperlaunch is already closed.

(they would'nt be needed cuz they arent executed)

But Hooray it works!!!

If it aint broke....

  • 1 month later...
Posted

I haven't converted my scummvm script to 2.0 yet, but you can use my pc games script and apply it the same. If you become a gold member, you can use my txt files from /Upload Here/djvj/ScummVM/txts/ on the ftp to save yourself from making them.

Posted

Well, I downloaded the PC launcher module that you made and used it in a seperate ScummVM section but its not working. It saysin the download area that I need a seperate settings.ini file. Do I have to be a gold member to get that or how do I get there? After I get that do I have to modify the script at all or just make the empty text files for ROM directory??? Thanks!

Posted

Try the PC Launcher module that you can find here and let me know how that works for you. I added a link to the Settings.ini. You don't have to be a gold member if you want to create the txt files yourself. You do if you want them made already. Each txt file should be the name of each game name in your database xml.

  • 2 months later...
Posted

Hello...

sorry for the intrusion...i have configured all, following instruction of chillinwater

(the game work under scummVM, creating a .txt with a rom name the same of .xml, change the .ahk from the last one)

but...

when i start a game under hyperspin the game won't start and return in the hyperspin game menu...after little black flash

this it's the log

04:30:00 PM | Running HyperLaunch.exe

04:30:00 PM | Command Line is: HyperLaunch.exe "SCUMM" "indy3-fm"

04:30:05 PM | Loading Main Menu.xml

04:30:05 PM | Main Menu.xml successfully loaded

04:30:06 PM | Main Menu wheel loaded successfully

04:30:08 PM | Exit program unavailable

04:30:08 PM | Quiting Hyperspin

04:30:08 PM | Bye!

need more info?

Posted

Make sure it launches from command line outside HS first. Just create a batch file and put in:

pathtoscumm\scummvm.exe indy3-fm

If it works, then you should have no issue running it from HS.

Posted

I've been trying to set up scummvm using the module for 1.5.0 and it has been a nightmare. Does this module not work for 1.4.0? According to the ScummVM site, 1.4.0 is the most current version. Can someone help? It's telling me I have no ScummVM.ini, when I do have one in my settings folder. Then I added these text files (unclear as to why we have to), but they don't match the names of the game folders, but they do match the names of the official XML for ScummVM. I am so lost. Everything is working great outside of Hyperspin

Archived

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

×
×
  • Create New...