Paddy1888 Posted Friday at 08:59 AM Posted Friday at 08:59 AM 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 Quote
JoeViking245 Posted Friday at 12:22 PM Posted Friday at 12:22 PM 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 Quote
Paddy1888 Posted Friday at 03:58 PM Author Posted Friday at 03:58 PM 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 Quote
JoeViking245 Posted Friday at 05:05 PM Posted Friday at 05:05 PM 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) Quote
Paddy1888 Posted Friday at 10:25 PM Author Posted Friday at 10:25 PM 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 Quote
Paddy1888 Posted Friday at 10:26 PM Author Posted Friday at 10:26 PM (edited) I should have said , that I made the changes above but still nothing, but thanks ever so much for giving me pointers Edited Friday at 10:27 PM by Paddy1888 Quote
JoeViking245 Posted Friday at 10:55 PM Posted Friday at 10:55 PM 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? Or better yet, the whole command you're trying to get working. Doing this (or these) will at least (or 'should') output something in the window. Good, bad or indifferent. Quote
Paddy1888 Posted Saturday at 07:25 AM Author Posted Saturday at 07:25 AM (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 Saturday at 07:26 AM by Paddy1888 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.