Jump to content
LaunchBox Community Forums

Recommended Posts

Posted

Good Morning all,

I posted this here as the troubleshooting section states Launchbox and this is not a Launchbox issue.

I have a script which should launch a game (which it does) and Demulshooter (which it doesn't) and I can't figure for the life of me why it's not working

I don't suppose any of the experts can provide me a pointer as to why it doesn't start

 

; AutoHotkey Script for Sega Chihiro (Ghostquad) with DemulShooter

; executable paths
demulshooterPath := "D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe"
cxbxPath := "D:\All-in-One\Emulators\Sega Chihiro\cxbx.exe"
xbeFile := "D:\All-in-One\LaunchBox\Games\Sega Chihiro\GS\vsg.xbe"

; Launch DemulShooter
Run, %demulshooterPath% DemulShooter.exe -target=chihiro -rom=vgs, , Hide

; Wait for DemulShooter to initialize
Sleep, 2000

; Launch CXBX-Reloaded with the game
Run, %cxbxPath% "%xbeFile%", , Hide

Esc:: 
    Process, Close, DemulShooter.exe
    Process, Close, cxbx.exe
    ExitApp
return
 

 

 

Posted
3 hours ago, Paddy1888 said:

provide me a pointer as to why it doesn't start

You're doubling up the exe.  The Run line essentially says:

Run, "D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe" DemulShooter.exe -target=chihiro -rom=vgs, , Hide

Posted

I seen what you meant and changed it, but it hasn't made a difference 

; AutoHotkey Script for Sega Chihiro (Ghostquad) with DemulShooter

; Executable path
demulshooterPath := "D:\DemulShooter\"
cxbxPath := "D:\All-in-One\Emulators\Sega Chihiro\cxbx.exe"
xbeFile := "D:\All-in-One\LaunchBox\Games\Sega Chihiro\GS\vsg.xbe"

; Launch DemulShooter
Run, %demulshooterPath%DemulShooter.exe -target=chihiro -rom=vgs, 

; Wait for DemulShooter to initialize
Sleep, 2000

; Launch CXBX-Reloaded with the game
Run, %cxbxPath% "%xbeFile%", , Hide

Esc:: 
    Process, Close, DemulShooter.exe
    Process, Close, cxbx.exe
    ExitApp
return
 

 

Posted
33 minutes ago, Paddy1888 said:

I seen what you meant and changed it, but it hasn't made a difference 

Check your full DemulShooter path.  First post it was in "D:\All-in-One\Emulators\".   The 2nd post shows just in the root D drive. Then go ahead and put the executable filename in with the variable (a little cleaner to see and work with).  (see below)

Oh.... and check your -rom= argument.  "vgs" vs. the games .xbe rom, "vsg".

demulshooterPath := "D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe"
cxbxPath := "D:\All-in-One\Emulators\Sega Chihiro\cxbx.exe"
xbeFile := "D:\All-in-One\LaunchBox\Games\Sega Chihiro\GS\vsg.xbe"

Run, %demulshooterPath% -target=chihiro -rom=vgs,,Hide
Sleep, 2000

Run, "%cxbxPath%" "%xbeFile%",,Hide

$Esc::
    Process, Close, DemulShooter.exe
    WinClose, ahk_exe cxbx.exe
    ExitApp
return

(I don't run either of these, so forgive my ignorance), you said the game launches, but you have the ,,Hide parameter on that particular Run line.  Seems odd, but if it works, it works. ;) 

I added quotes around the %cxbxPath% variable because of the space between "Sega Chihiro".  I'm kind of surprised it launched that way.

For the Escape sequence, if you ever have issues with it, add a $ in front of it (as shown above).  Which is not a bad thing to do anyway.

 

Lastly, Process, Close is a pretty drastic way to close down an app.  It's sort of like unplugging the computer to "shut it down".  NOT recommended.

DemulShooter may require this more forceful approach.  But [at least] for cxbx, I suggest using WinClose, ahk_exe cxbx.exe instead. (reflected above)

 

Posted

Sorry, i should have mentioned. I changed the path, just in case this was the issue and amended the script to follow the new path. Weirdly, again the script doesn't launch demulshooter. I ran the following via the run command in windows D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe and again this didn't launch. so I'm at a complete loss, strangely I have a pre-built build that launches demelshooter and that works fine 
 

 

Posted
3 minutes ago, Paddy1888 said:

I ran the following via the run command in windows D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe and again this didn't launch

As in, you pressed Win+R and then entered D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe and it did NOT launch?  If so, good. Then it's not the script. ;) 

Assuming that's absolutely the correct path, if it doesn't work from there, it won't work anywhere.

 

What happens when you run D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe from the Window command prompt?

image.thumb.png.98201b7d34f540c57d0224603acb7c1a.png

Or better yet, the whole command you're trying to get working.

image.thumb.png.354fb5667e7cbc49af578168253a7b24.png

Doing this (or these) will at least (or 'should') output something in the window. Good, bad or indifferent. 

Posted (edited)

I fixed it, 

Rather than try to pass paths across the script, i used absolute paths, I also updated my version of demulshooter and changed the rom name (as per the demulshooter wiki) 

run, D:\All-in-One\Emulators\DemulShooter\DemulShooter.exe -target=chihiro -rom=gsquad
Sleep, 2000

run, "D:\All-in-One\Emulators\Sega Chihiro\cxbx.exe" "D:\All-in-One\LaunchBox\Games\Sega Chihiro\GS\vsg.xbe", , Hide.  

Thanks for your help Joe

Edited by Paddy1888
  • Game On 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...