Dimouniat Posted September 7, 2012 Share Posted September 7, 2012 Hello,I have a little problem with one thing.I did exactly what is said here for launch a pc game:http://www.gameex.in...mes/#entry89514The iso mount fine, but after the 9 seconds it return to gameex whitout launch the game.I put the command line from the bat here:@echo offclsecho.SET INPUT1=%1SET ROMFile=%INPUT1:~1,-1%set str=%ROMFile%set str=%str:.lnk=%If EXIST "%programfiles%\DAEMON Tools Lite\DTLite.exe" (SET mounter="%programfiles%\DAEMON Tools Lite\DTLite.exe")If EXIST "%programfiles(x86)%\DAEMON Tools Lite\DTLite.exe" (SET mounter="%programfiles(x86)%\DAEMON Tools Lite\DTLite.exe")SET isopath=E:\GameEx\GameEx\Emulateur Games\JeuxPc\Iso des jeuxIf EXIST "%isopath%\%str%.ccd" (goto isCCD)If EXIST "%isopath%\%str%.cue" (goto isCUE)If EXIST "%isopath%\%str%.mds" (goto isMDS)If EXIST "%isopath%\%str%.iso" (%mounter% -mount dt,0,"%isopath%\%str%.iso")If EXIST "%isopath%\%str%.bin" (%mounter% -mount dt,0,"%isopath%\%str%.bin")If EXIST "%isopath%\%str%.img" (%mounter% -mount dt,0,"%isopath%\%str%.img")goto Exit:isCCD%mounter% -mount dt,0,"%isopath%\%str%.ccd"goto Exit:isCUE%mounter% -mount dt,0,"%isopath%\%str%.cue"goto Exit:isMDS%mounter% -mount dt,0,"%isopath%\%str%.mds"goto Exit:Exitping -n 9 127.0.0.1 >NULAll path is correct.Is it an error in the commande line ?Tanks, and sorry for my poor english. Link to comment Share on other sites More sharing options...
nullPointer Posted September 7, 2012 Share Posted September 7, 2012 We can make it quite a bit more simple than all of that, but first let's back up before we attempt to troubleshoot.What Emulator are you using?Are you using DaemonTools Lite?You may also want to get proactive and post your emulator config, and your GameEx Log. See here if you are unsure of how to do that:[GUIDE] How to ask for HelpEdit: Sorry, I realized that we may be talking about a PC game here. If that's the case, it would be especially worthwhile to post how you've got this configured in GameEx (the 'emulator' config) Link to comment Share on other sites More sharing options...
Dimouniat Posted September 7, 2012 Author Share Posted September 7, 2012 Thank you for responding.1.It's [PC] Microsoft Windows2.Yes i'm using Daemon tools Lite.[Emulator]Enabled=TrueSystem=Microsoft WindowsCategory=PCEmulator=WindowsVersion=Rating=DownloadUrl=RequiredFiles=Website=Info=TitleText=Microsoft WindowsStartPageName=[PC] Microsoft WindowsStartPageLogo=Microsoft WindowsCommand=""[ROMPATH]\[ROMFILE]""RomFilter=*.lnkDatabase=ConfigFile=[Mapping Off] Exit (Process Close)MapFile=RomPath=E:\GameEx\GameEx\Emulateur Games\JeuxPcSnapPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\SnapsTitlePath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\TitlesBoxPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\BoxesCartPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\CartridgesManualPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\ManualsControlPanelPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\ControlsWorkingPath=E:\GameEx\GameEx\Emulateur\Microsoft WindowsMapKeys=TrueWaitBeforeKeys=SendKeys=ReplaceDash=FalseReplaceUnder=TrueCapitals=FalseRemoveBrackets=TrueShowDesktop=TrueDebug=FalseAlsoLaunch=OLDatZip=LaunchBefore="E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMFILE]"LaunchAfter=ExcludedFiles=CustomBackground=PlayMusic=FalseDontShowInfo=PlaySelectionMusic=FalseSelectionMusicFolder=PCGame=FalseGamesIn7Zips=FalsePlayInScreenSaver=FalseShowMostPlayed=TrueRandomMostPlayed=TrueCDCheck=FalseCDCheckFile=VideoSnapPath=E:\GameEx\GameEx\EmulateurAllCov\Microsoft Windows\Videoslastgame=I don't have error message, and Gameex doesn't crash.any idea? Link to comment Share on other sites More sharing options...
Dimouniat Posted September 7, 2012 Author Share Posted September 7, 2012 nullPointerIf there is another possibility for doing the same thing, please could you tell me how to do ? Link to comment Share on other sites More sharing options...
Draco1962 Posted September 7, 2012 Share Posted September 7, 2012 Please run the program again within GameEx and then provide us with a copy of your log.txt file. Thanks! Link to comment Share on other sites More sharing options...
nullPointer Posted September 7, 2012 Share Posted September 7, 2012 nullPointerIf there is another possibility for doing the same thing, please could you tell me how to do ?I think it's possible, but it may depend on some additional information. Providing a copy of your log file after attempting to run your game will help towards that end.Beyond that, tell us a bit about what you're trying to do. Mostly I'm curious about what your shortcuts are pointed at. Is this game installed on your hard drive (i.e. it requires a verification disc to be present while running)? Or does the disc itself contain the game you're running in its entirety? Link to comment Share on other sites More sharing options...
fRequEnCy Posted September 8, 2012 Share Posted September 8, 2012 This line is what sticks out!LaunchBefore="E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMFILE]"This would work if the rom was in the same directory as your bat file which I'm not sure it is since you're using other directories for the rom path. So shouldn't it it be this instead?LaunchBefore="E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMPATH]\[ROMFILE]"Even that may need some tweaking depending on the rom itself. Link to comment Share on other sites More sharing options...
nullPointer Posted September 8, 2012 Share Posted September 8, 2012 This line is what sticks out!LaunchBefore="E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMFILE]"This would work if the rom was in the same directory as your bat file which I'm not sure it is since you're using other directories for the rom path. So shouldn't it it be this instead?LaunchBefore="E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMPATH]\[ROMFILE]"Even that may need some tweaking depending on the rom itself.That part really tripped me up to, and it took me a couple of minutes to wrap my head around it. He's passing the full rom file name into the batch file, and then dropping the extension (.lnk) using substring removal:SET INPUT1=%1SET ROMFile=%INPUT1:~1,-1%set str=%ROMFile%set str=%str:.lnk=%...SET isopath=E:\GameEx\GameEx\Emulateur Games\JeuxPc\Iso des jeuxSo the path for the disc images is hard coded into the batch script. So long as the disc image is named the same as the shortcut, the disc mounting component should theoretically work (sounds like it even is working in his test case). The strange part is why you wouldn't just pass the [ROM] parameter into the batch file and forego the string replacement step all together.Even better I'm hoping that all of his disc images are in the same format. The only way I could see a strong argument for using this batch script would be if you had several disc images in different formats (which it seems capable of handling). If all of the disc images are in the same format, I don't see a reason not to use a (much) simpler launch before command to mount the image.Even after all of that, I suspect of that this guys problem may be with whatever he's doing with those shortcuts (are they pointed at the proper executable, do they point at a simple launcher, etc.) Link to comment Share on other sites More sharing options...
fRequEnCy Posted September 8, 2012 Share Posted September 8, 2012 Ah ok. Don't really see the point of this batch file but according to the directions then it should be:LaunchBefore=call "E:\GameEx\GameEx\Emulateur\Microsoft Windows\Startup Windows Games.bat" "[ROMFILE]" 1 Link to comment Share on other sites More sharing options...
Dimouniat Posted September 8, 2012 Author Share Posted September 8, 2012 And the winner is ...... fRequEnCy !!I just add the call to the commande line, and now works perfectly.Thank you all, you're cool and patient. Link to comment Share on other sites More sharing options...
nullPointer Posted September 8, 2012 Share Posted September 8, 2012 (edited) Glad to hear you got everything working to your satisfaction Dimouniat! Well spotted fReq (as usual)! Marking as resolved. Edited September 8, 2012 by nullPointer This thread is now closed. If the problem re-occurs, please start a new thread. Link to comment Share on other sites More sharing options...
Recommended Posts