Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted
I did update the LaunchBefore line a bit not sure if it will make a difference or not.

As for the batch method it should work as I posted it. Did you try it?

Here is my current launch before that is working other than the timing issue.

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]"

How will it look using your line?

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]";Sleep 5

I want to make sure the above is correct, I will be doing a direct cut and paste from this thread.

If it is suppose to be like I have it above (your version) that I posted and edited here, it does not work, command line error.

I will try the batch file again when I get home from work today and as far as the batch file goes, the only thing I did was cut and paste what was poasted here in notepad, saving it as "MountImage.bat".

I did try the batch the first time around and it did not work.

Question, how does any of this know to look in system32 for sleep.exe?

Thanks for all the help so far guys.

  • Replies 143
  • Created
  • Last Reply

Top Posters In This Topic

Posted
Can you post the contents of the BATS perhaps I can write an SHK script to wait then run the comands.

How long does it need to wait?

I am just cutting and pasting what head posted above, renaming it to "MountImage.bat". :unsure:

Again, I have not tried the latest version, I will do so this evening.

Posted

system32 is (should be) automatically searched when an executable is not implicitly stated with full path.

Posted

Ok... I have tested all of the above an none of it works for me by that, I mean none of it seems to anything at all but not work. LOL!

Either I am doing something wrong or it just does not work.

I tried...

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]";Sleep 5

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]";Sleep 5

...and the batch file.

Nothing.

BTW... Sleep.exe is in the Game Ex root folder already but I did install your's to System32.

HELP!!!! What am I doing wrong here????

Posted

Visitor Q: Check your Daemon Tools path to the exe is correct. Only 64 bit OS's have the "(x86)" at the end. So check the path you may need to remove that.

Posted

I am 100% this is correct because it works all but the delay problem.

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]"

ps. I am running Vista 64.

Posted
I am 100% this is correct because it works all but the delay problem.

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]"

ps. I am running Vista 64.

I too have had no luck without using daemon tools lite Here is my config that works like a charm - no delays for me.

[Emulator_12]

Enabled=True

STARTPAGENAME=NEC TurboGrafx CD

TITLETEXT=NEC TurboGrafx CD

StartPageLogo=

ROMFilter=*.cue

RomPath=C:\Emulators\Magic Engine\cd roms

SnapPath=C:\Emulators\Magic Engine\cd vids

TitlePath=

BoxPath=

CartPath=

ManualPath=

ControlPanelPath=

InstructionsPath=

WorkingPath=C:\Emulators\Magic Engine

MapKeys=False

WaitBeforeKeys=

SendKeys=

ReplaceDash=True

ReplaceUnder=True

Capitals=False

RemoveBrackets=True

ShowDesktop=False

Debug=False

MAPFile=

AlsoLaunch=

Command=Pce.exe -cd:O

OLDatZip=

LaunchBefore=""C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]""

LaunchAfter="C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0

configFile=[Mapping Off] Exit (Process Close)

ExcludedFiles=

CustomBackground=

PlayMusic=False

DontShowInfo=

PlaySelectionMusic=False

SelectionMusicFolder=

PCGame=False

DATABASE=[Console] NEC TurboGrafx CD

UseDbName=

GamesIn7Zips=False

PlayInScreenSaver=False

ShowMostPlayed=True

RandomMostPlayed=False

CDCheck=False

CDCheckFile=

CustomArtName1=

CustomArtPath1=

CustomArtName2=

CustomArtPath2=

CustomArtName3=

CustomArtPath3=

[GENERAL]

DumbyValue=

I am running vista 64 also

I notice in your line "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"E:\Emulation\Roms\NEC TurboGrafx CD\[RomFile]" - you have the exact path to the roms.

I suggest you copy and paste this line exactly:

"C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]"

configure gamex to point the rom folder not the lauch before line.

Let me know if this helps

working_turbografx_CD.txt

Posted

I looked over what you posted here...

I changed my before to "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]" and that works just as well as the other path I posted.

I also noticed your command line and I changed that too:

Command=Pce.exe -cd:H (my Daemon Drive is H: as sat in my Magic Engine ini as well)

Both of these paths work fine but my problem remains. =[

I did however further verify my issue. I am now 100% of the pause needed issue. What I did was set my command line to just Command=Pce.exe which just boots me into Magic Engine emulator from Game Ex. Once I was in Magic Engine I used the drop down to "Boot CD" and I actually saw it load the name of the game into the H: drive after I saw the drive letter so for me, there is some sort of delay there for whatever reason, I am not sure why this is happening.

I just somehow need to figure out how to set a delay between the time Daemon Tools mounts the image and the time Magic Engine tries to boot the CD or loads, I think after that everything should work perfect.

I am going to look over your config more today when I get home from work but right now I need to get to work. :P

I think we are closing in on getting this worked out as I can see the issue now and verify it, so I do appericate everyone's help.

Posted

Ok... I did some more testing and figure out a few things as to why this was not working. The "sleep.exe" command is not able to run in Vista 64 so I cannot use it and that is why none of the above was working. =[

However I did do some reading and found another way of going about this but I need help getting it sat up for Game Ex.

I need to write a bat file that mounts the image and then issues the ping command to ping an ip prior to launching Magic Engine. I can then adjust the ping command as much as I want to vary the time. I think this may work...???

Currently my working command line is: pce.exe -cd:H

Launch before is: "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]"

These both work all but my needed delay situation.

Thanks to anyone who can help me.

Posted
Ok... I did some more testing and figure out a few things as to why this was not working. The "sleep.exe" command is not able to run in Vista 64 so I cannot use it and that is why none of the above was working. =[

However I did do some reading and found another way of going about this but I need help getting it sat up for Game Ex.

I need to write a bat file that mounts the image and then issues the ping command to ping an ip prior to launching Magic Engine. I can then adjust the ping command as much as I want to vary the time. I think this may work...???

Currently my working command line is: pce.exe -cd:H

Launch before is:

Msgbox, "%1%" -mount 0,"[RomPath]\[RomFile]"

These both work all but my needed delay situation.

Thanks to anyone who can help me.

This quick app I wrote will (should) solve your sleep issues.

This will load your CD then wait a specified amount of time in miliseconds

Usage

TurboCD_loader.exe "[rompath]\[romfile]" 5000

Since this is taylored to you it assumes your using deamontools at the above mentioned location.

Update: Ive made a x86 version as well

TurboCD_Loader__X64_bit_.zip

TurboCD_Loader__X86_.zip

Posted
Now I couldn't test this on your setup I did create a test app called sleepy (included) that shares the same code but allows me to see it working via msg boxes.

Usage: sleepy Hello 5000

This will pop up a msgbox saying hello then wait 5 seconds and say DONE.

Could you make me one that says "Hello, Sleepy" when I first start using my computer in the morning? I am running Vista as well....

:lol:

BTW: I know I'm annoying, but seriously, I laugh outloud when I think this stuff up, so even if no one else gets a laugh out of it, I do!

Thanks Brian!

Posted
This quick app I wrote will (should) solve your sleep issues.

This will load your CD then wait a specified amount of time in miliseconds

Usage

Sleep.exe "[rompath]\[romfile]" 5000

Since this is taylored to you it assumes your using deamontools at the above mentioned location.

Now I couldn't test this on your setup I did create a test app called sleepy (included) that shares the same code but allows me to see it working via msg boxes.

Usage: sleepy Hello 5000

This will pop up a msgbox saying hello then wait 5 seconds and say DONE.

I few questions about this Brain.

Sleep.exe "[rompath]\[romfile]" 5000 < is that my launch before command?

Sleep.exe is to be placed in the system32 dir?

If I want to put sleep.exe in my Game Ex Loaders dir can I use a command like this?

"[APP]\LOADERS\sleep.exe" "[ROMPATH]\[ROMFILE]" 5000 < launch before?

Do I still need to use the launch after command? "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0

Thanks!

Posted
I few questions about this Brain.

Sleep.exe "[rompath]\[romfile]" 5000 < is that my launch before command?

Sleep.exe is to be placed in the system32 dir?

If I want to put sleep.exe in my Game Ex Loaders dir can I use a command like this?

"[APP]\LOADERS\sleep.exe" "[ROMPATH]\[ROMFILE]" 5000 < launch before?

Do I still need to use the launch after command? "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0

Thanks!

This takes the place of your batch file. You bat file consists of loading the iso in deamontools then waiting for a specified amount of time. The PING is a not a very clean way of delaying your system so I wrote the app to have the delay time user definable.

Sleep.exe "[rompath]/[romfile]" 5000

will effectivly do

Run, "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"c:\myisos\mygame.iso"

Sleep 5000

You can put it anywhere. If you put it in your system32 folder you can run it from any location as the system32 directory is in your PATH by default. You can put it in the [app]\loaders directory because you are telling the system where to find it. [app]\loaders tells gameex to look in the subdirectory loaders from the where the gameex.exe resides.

Let me know if this works for you.

regarding Do I still need to use the launch after command? "C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0

I never unmount my isos.. I can mount an iso over a diffrent ISO. There is a setting in dtools that allows you to do this without prompting.

Posted

So is this my exact launch before code if I want to place sleep.exe in my loaders folder under Game Ex?

"[APP]\LOADERS\sleep.exe" "[ROMPATH]\[ROMFILE]" 5000

If so, I tried it before I went to work this morning and got an error with Daemon Tools.

Let me know if the above is correct and I will post the error here in about 1.5 hrs when I get in from work.

Thanks.

ps. If I recall right I don't think Daemon could find the .iso to load and BTW, can you please have it load the .cue file and not the .iso?

Maybe this is the reason it did not work, my filter is sat to .cue. With Turbo CD games you want to load the .cue file and not the .iso file this is the whole reason I am not using virtual cd.

Thanks Again!

Posted
So is this my exact launch before code if I want to place sleep.exe in my loaders folder under Game Ex?

"[APP]\LOADERS\sleep.exe" "[ROMPATH]\[ROMFILE]" 5000

If so, I tried it before I went to work this morning and got an error with Daemon Tools.

Let me know if the above is correct and I will post the error here in about 1.5 hrs when I get in from work.

Thanks.

ps. If I recall right I don't think Daemon could find the .iso to load and BTW, can you please have it load the .cue file and not the .iso?

Maybe this is the reason it did not work, my filter is sat to .cue. With Turbo CD games you want to load the .cue file and not the .iso file this is the whole reason I am not using virtual cd.

Thanks Again!

The above should be correct. Also It doesnt matter what the file extension is. nrg,iso,bin,cue,md5 as long as dtools supports it. The problem may lie in the command im using to mount the image.. Like I said I couldn't test it. I did cut the coomand from this thread. A diffrent user suggested a space may be needed. If thats the case my app wont work and will give you the error about not being able to mount the disc image.

I will send you a PM call me when your at your pc and ill re-write the app.

Posted

Thank you very much to Brian for helping me with this, it is not working 100%!!!!

The attached wrapper is designed to work with the current build of deamontools lite.

The wrapper can be used for any system. The wrapper assumes Deamontools is installed to its default location.

X86 and X64 bit versions are included as they install to diffrent locations by default.

example usage of the wrapper is TurboCd_Leader.exe "[rompath]\[romfile]" 5000

This will mount the chosen cd image and mount it into deamon tools and then wait 5000 miliseconds before launching the next command.

This is designed to be run from the launch before section of gameex to mount a cd and wait a specified amount of time prior to launching the emulator.

This should fix any emulator that is having issues loading properly because the disc hasnt finished mounting.

Below is a working Turbo CD config using magic engine.

[Emulator_6]
Enabled=True
STARTPAGENAME=[Console] NEC TurboGrafx CD
TITLETEXT=[Console] NEC TurboGrafx CD
StartPageLogo=[Console] NEC TurboGrafx CD
ROMFilter=*.cue
RomPath=E:\Emulation\Roms\NEC TurboGrafx CD
SnapPath=
TitlePath=
BoxPath=
CartPath=
ManualPath=
ControlPanelPath=c:\emulators\NEC TurboGrafx CD\Controls\
InstructionsPath=
WorkingPath=C:\Emulation\Emulators\Magic Engine
MapKeys=True
WaitBeforeKeys=
SendKeys=
ReplaceDash=False
ReplaceUnder=True
Capitals=False
RemoveBrackets=False
ShowDesktop=True
Debug=False
MAPFile=
AlsoLaunch=
Command=pce.exe -cd:H
OLDatZip=
LaunchBefore="[APP]\LOADERS\TurboCD_Loader.exe" "[ROMPath]\[RomFile]" 5000
LaunchAfter="C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0
configFile=
ExcludedFiles=
CustomBackground=
PlayMusic=False
DontShowInfo=
PlaySelectionMusic=False
SelectionMusicFolder=
PCGame=False
DATABASE=[Console] NEC TurboGrafx CD
UseDbName=
GamesIn7Zips=False
PlayInScreenSaver=False
ShowMostPlayed=True
RandomMostPlayed=True
CDCheck=False
CDCheckFile=
CustomArtName1=
CustomArtPath1=
CustomArtName2=
CustomArtPath2=
CustomArtName3=
CustomArtPath3=
[GENERAL]
DumbyValue=

TurboCD_Loader__X64_bit_.zip

TurboCD_Loader__X86_.zip

  • 2 months later...
Posted
Need help with Trubographx CD please

I cant seem to get this to work with turbographx cd. Anyone have any luck? - This is how I used to do it with daemon tools lite:

Command=Pce.exe -cd:M

LaunchBefore="C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -mount 0,"[RomPath]\[RomFile]"

LaunchAfter="C:\Program Files (x86)\DAEMON Tools Lite\daemon.exe" -unmount 0

With the new CD feature the default config for turbographx cd is

pce.exe "syscard3.pce"[-VIRTUALDRIVE-]

and the filter is *.iso

Now with my experience with the magic engine emulator I cannot get it to work with "syscard3.pce" in the command line and the filter has to be *.cue

So assuming my virtual drive is M

should I use:

pce.exe [-M-] with a filter of *.cue - It doenst work for me. I had to reinstall daemon tools lite because I had no luck. Please can someone who has actually got it to work with this emulator please let me know the proper way to do this.

And yes I have the vitrual clone drive installed. Much THanks

have you updated your magic engine software, they are using a new command line

Guest
This topic is now closed to further replies.

×
×
  • Create New...