Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: wrapper 5.0 and Daphne  (Read 3397 times)

0 Members and 1 Guest are viewing this topic.

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
wrapper 5.0 and Daphne
« on: July 24, 2003, 04:12:10 am »
I have Daphne configured to run with DK and all is working great.  I am attempted to use the new wrapper 5.0 to customize how each game launches in Daphne.  I found an lconfig.ini file for Daphne posted by Howard_Casto which I copied and pasted for my use.

So far, I have the cmd-launch5.exe and the lconfig.ini file in my daphne directory.  I changed the daphne.cfg from exe=daphne.exe to exe=cmd-launch5.exe.  The daphne.cfg and daphne.dat files are still located in the DK directory. I wasn't sure if they were suppose to be moved to the daphne directory or not I tried both places and neither worked for me.

My daphne roms show up just fine in DK when I do a rescan for roms, but when I try to launch a game it immediately gives me an error:

Command Line Launch
Run-time error '13':
Type mismatch

What I stated above is all I changed from when it was working before I attempted to use the wrapper program.  I know I am probably missing somthing, but I have no idea what it is!  Been through the lazarus documentation a few times, and re-read the older posts that I could find but still I am having no luck.  Any ideas?

Thanks.


PacManFan

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 858
  • Last login:December 06, 2005, 12:18:56 pm
    • Kymaera Home Page
Re:wrapper 5.0 and Daphne
« Reply #1 on: July 24, 2003, 11:55:09 am »
In visual basic, a "Type mismatch" means that you are passing the wrong type to a parameter. For example, if the function is expecting a string , and you pass a number, that's a type mismatch. Or you can be passing a number when it's expecting a string.
Go back and check the parameters in the config file, and make sure you are using them correctly.
-PMF
All Hail Smezznar! The Giant purple centipede of Omnicron 5. Regail him with your odiferous offerings of onion powder!

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:wrapper 5.0 and Daphne
« Reply #2 on: July 24, 2003, 01:20:51 pm »
Um... maybe I'm missing something here but why do you need to use a wrapper to run Daphne?  Daphne supports all the commandline options you need...

BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re:wrapper 5.0 and Daphne
« Reply #3 on: July 24, 2003, 02:48:54 pm »
Because the command line is more complicated than what most good frontends are able to handle and the Daphneloader is pretty weak as far as interfaces go.

I use a one-line BAT file myself to construct the command line

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:wrapper 5.0 and Daphne
« Reply #4 on: July 24, 2003, 03:19:07 pm »
Hmmm... what do your daphne commandline options look like? Here is an example of one:

daphne lair vldp -framefile "lair.txt" -bank 0 00110000

You are saying that THAT is too complicated for a frontend to handle?  I'm curious which frontend are you using?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #5 on: July 24, 2003, 04:16:05 pm »
You can't copy and paste the daphne config file I have posted because that is for a very old version of the wrapper.  More options have been added since then.  You can however, copy one entry at a time, making sure that all the new options are left in tact.  


Jakobud, the reason he is using the wrapper is because many fes don't support sending specific info for each individual game.  So if you want to tweak the dips for daph then you are screwed.  :)

And as pmf said...... type mismatch is a syntax error.  So check your settings.

Daphne.cfg should be in your cfgs folder in dk.  Daphne.dat should be in your list generator/dats folder.  The dat file has nothing to do with launching btw.  

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:June 30, 2025, 02:20:39 pm
Re:wrapper 5.0 and Daphne
« Reply #6 on: July 24, 2003, 05:05:06 pm »
Jakobud, the reason he is using the wrapper is because many fes don't support sending specific info for each individual game.  

Ah that makes sense.  Got it.

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #7 on: July 24, 2003, 05:15:09 pm »
Thanks!

Customizing how each game launches is exactly what I am trying to accomplish with the wrapper.

I will go through my config file again and see what needs changing.   At least I know I have all the files in the right place.


Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #8 on: July 25, 2003, 04:16:38 am »
Well, I have been messing with this thing for a while.  I am down to the real basics now.  I am trying to get just one game to load. This time I took the example that came with the wrapper 5.0 and I just pasted the command line from DaphneLoader into the appropriate spot.  Then I tried all the different settings within the lconfig file and I am still getting the type mismatch error.  I wasn't sure if I should include the framefile path because DK already knows where that is.   I did try it this way with the same errors.  Here is my lconfig.ini file with just one game listed.

#this is a config file for the launcher wrapper program
#turn on wordwrap for best viewing results

# Leave at 0 to hide the command line while the emulator is launching.
# IMPORTANT.... The new way games are launched requires you to hide the command line if

the emulator in question gives command line output after the game has started (like zinc).

 If you do not do this strange results may occur.
LAUNCHSTYLE=0

#each command in an emu is usually followed by a delimeter (in mame it's a "-" for

example)  put this deliemter in the following line

delimeter=--


#put the mame command followed by a ";" and the command that does the same thing in the

emu your launching (like in zinc to launch a game you type it's number so sfex;1 would

launch sfex for you)
{cmdlist}
ace;ace vldp -fullscreen -bank 0 00000000 -bank 1 00000001
{/cmdlist}
#put the name of the emulator you wish to launch immediately following this comment
exe=daphne.exe


#Some emus don't like spaces in the filenames or paths....
#Turn this on to send a short filename to the emu.
#Note you MUST send the path of the rom for this to work.
Short=1

#Turn this on to place the rom path and romname in quotes.
Quotes=0

#Set this to how often you want the wrapper to check for the exit key... The bigger the

wait, the longer you will (potentially) have to hold down the exit key.  

#It's in milliseconds.... 100 = about 1 second
refreshspeed=35

#that's it! enjoy!  


I also tried the command line 'ace;ace vldp -framefile "c:\mame\daphne\framefile\ace.txt" -fullscreen -bank 0 00000000  -bank 1 00000001' with no sucsess.  I have a good grasp of how DK works now, but I don't fully understand how the wrapper is integrated.

Do I need to change the roms path in my dir.ini file in DK?  It is currently pointing to my framefiles.  Once I have changed my daphne.cfg file in DK to point to the the cmd-launch5.exe file, do I also need to add any command line options?  I beleive these are taken care of in the wrappers lconfig.ini file.

Thanks for all the help!


BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re:wrapper 5.0 and Daphne
« Reply #9 on: July 25, 2003, 10:02:32 am »
Hmmm... what do your daphne commandline options look like? Here is an example of one:

daphne lair vldp -framefile "lair.txt" -bank 0 00110000

You are saying that THAT is too complicated for a frontend to handle?  I'm curious which frontend are you using?


Well I am not aware of a frontend that lets you specify the ROm name twice in the command line it generates as you have shown above.  

I actually have 2 Bat files that I built as wrappers if anyone cares, the first is a one-liner that assumes you want the same settings for all your games.  The second looks at what game you are trying to run and goes to the appropriate command line for that game.  I use the former version now since I found I was using the same settings with every game and really only a few games are playable anyway.

Has anyone out there built a DAT file for Daphne yet?  I will give it a try eventually I guess but haven't had the time.  If anyone has done it I'd love a copy ;)

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #10 on: July 25, 2003, 12:40:52 pm »
There is a dat file for Daphne available at the clrmame pro site.  I think it is 1 or 2 revs old, so I don't know if the roms have changed.  It seems to be working just fine for me,  except for Cobra Command!  I don't know why DK doesn't recognize this particular rom / framefile.

As far as my commmand line, thats how I interpreted the comment in the config file.  I guess I am not quite sure what Daphne does to launch a game.  I'll play around with it some more.

I'd like to see your bat files.  I was able to use the one-liner approach within the Daphne.cfg file which DK uses to launch the games.  That works just fine for all the games I have.   But its your second approach that I am interested in.  I just need to figure out the proper syntax for the command line.  And you're right, I'll probably never really mess with the individual game setting, but I've spend to much time to just forget about it, so I have to get it working now!  

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #11 on: July 25, 2003, 08:56:42 pm »
Well, I have tired every combination I could think of that made sense.  I still get the exact same error.  It doesn't seem to matter what I put in the lconfig.ini file, I always get the run-time error '13' type mismatch.  I even commented out my command line and still same error.

There must be something else going on in the lconfig file.   I double checked that all the comments were commented out properly and the whole file seems good.  Well, I hope I can get this thing figured out.  Any more ideas?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #12 on: July 25, 2003, 09:32:18 pm »
post your entire lconfig here and i will tell you what is wrong

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #13 on: July 25, 2003, 10:46:26 pm »
Here it is. I actually posted this yesterday in this thread, but this is my latest one.

#this is a config file for the launcher wrapper program
#turn on wordwrap for best viewing results

# Leave at 0 to hide the command line while the emulator is launching.
# IMPORTANT.... The new way games are launched requires you to hide the command line if the emulator in question gives command line output after the game has started (like zinc).  If you do not do this strange results may occur.

LAUNCHSTYLE=0

#each command in an emu is usually followed by a delimeter (in mame it's a "-" for example)  put this deliemter in the following line
delimeter=-


#put the mame command followed by a ";" and the command that does the same thing in the emu your launching (like in zinc to launch a game you type it's number so sfex;1 would launch sfex for you)
{cmdlist}
ace;ace vldp -fullscreen -bank 0 00000000 -bank 1 00000001
{/cmdlist}
#put the name of the emulator you wish to launch immediately following this comment
exe=daphne.exe


#Some emus don't like spaces in the filenames or paths....
#Turn this on to send a short filename to the emu.
#Note you MUST send the path of the rom for this to work.
Short=1

#Turn this on to place the rom path and romname in quotes.
Quotes=0

#Set this to how often you want the wrapper to check for the exit key... The bigger the wait, the longer you will (potentially) have to hold down the exit key.  

#It's in milliseconds.... 100 = about 1 second
refreshspeed=35

#that's it! enjoy!  

I made sure all the comments were commented out correctly, and I tired different variants of the command line.  I even commented out the command line, but I still get the type mismatch error.   I also tried all the different settings with no luck.

Thanks for your help.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #14 on: July 25, 2003, 11:01:29 pm »
it's not the lconfig.ini so please post your daphne.cfg

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #15 on: July 25, 2003, 11:13:25 pm »
Here it is.

extension=.txt
path=c:\mame\daphne
exe=cmd-launch5.exe
send rom path=0
send exit keys=0
command line options;

When I use DK to launch Daphne without the wrapper, I change the exe to exe=daphne.exe, and I also add in the command line option;vldp -fullscreen -framefile %.txt -x 1024 -y 768 -nohwaccel, and this works just fine.  I also tried changing the extension to .ini and .zip and set rom path and exit keys bit with no sucess.

I appreciate your help.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #16 on: July 25, 2003, 11:41:51 pm »
Ok there is a bug, thanks for helping me find it.  I'll post the new wrapper tonight hopefully.  

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #17 on: July 25, 2003, 11:55:45 pm »
Wrappers fixed.  Download the kit again and all should be well.  Sorry.  

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #18 on: July 26, 2003, 12:28:33 am »
Thanks for all your help.  I downloaded the new wrapper and it works great!  Although I did have to make two changes in my lconfig file to get it working properly.  The first change was to set short=0.  With it set to 1 I got an error from daphne saying it could not find the game.

I also had to add in -framefile "c:\mame\daphne\framefile\ace.txt" after the ace;ace vldp.  Without this daphne could not find the framefile.

Well, that's one more thing I can check off on my list. I am running out of things to do on my cab.  I guess I'll have to start playing it now!

Thanks again.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:July 22, 2025, 10:27:17 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:wrapper 5.0 and Daphne
« Reply #19 on: July 26, 2003, 01:07:17 am »
in the daphne.cfg you can use the "%" symbol to add the rom name in anywhere....

so for the command line options you put....

"-framefile c:\mame\daphne\framefile\%.txt"

and you don't have to put it in the wrapper


yeah short obviously wouldn't work for daph as you don't send a rom path.  


BuZz880

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 201
  • Last login:November 16, 2023, 02:16:43 pm
  • I'm a llama!
Re:wrapper 5.0 and Daphne
« Reply #20 on: July 26, 2003, 02:25:00 am »
I'd like to see your bat files.  I was able to use the one-liner approach within the Daphne.cfg file which DK uses to launch the games.  That works just fine for all the games I have.   But its your second approach that I am interested in.  I just need to figure out the proper syntax for the command line.  And you're right, I'll probably never really mess with the individual game setting, but I've spend to much time to just forget about it, so I have to get it working now!  


Basically all my BAT file does is identify the game you are trying to run (in my case I just had txt files in a roms directory since the file itself is only needed to have something appear on the menu in your FE)

The BAT File replaces the emulator, mine is called Daphne.bat, the game you are trying to run becomes a parameter which is represented by the %1 below - all it is is a dummy file that looks good in a list.  Don't use long file names for any of this DOS stuff.

if "%1"=="C:\ARCADE\DAPHNE\PR\GAMES\SPACEA~1.TXT" goto ace

if "%1"=="C:\ARCADE\DAPHNE\PR\GAMES\DRAGON~1.TXT" goto lair

Then under each subroutine stick your commnad line as you see fit - mine are all the same but they dont have to be:

:ace
C:\arcade\daphne\daphne ace vldp -framefile "ace.txt" -fullscreen -nohwaccel
goto end

:lair C:\arcade\daphne\daphne lair vldp -framefile "lair.txt" -fullscreen -nohwaccel

goto end


Here is my one-liner if anyone cares (yes it is a long one liner), use your framefiles directory as your ROMS path and replace the directory structure below to match yours.  Make sure your frontend is not passing a file extension or rom path along with the rom name.

c:\ARCADE\DAPHNE\daphne.exe %1 vldp -framefile c:\ARCADE\Daphne\framefile\%1.txt -fullscreen -nohwaccel

Exit



Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #21 on: July 26, 2003, 03:11:49 am »
That sounds good.  I'll probably go ahead and do that.  I already put the full path of the framefile in my config, but I'll change it.  It will look cleaner.

BuZz880:

Thanks for posting your bat files.

Oh ya, I also figured out what cobra commander wasn't working.  I'll post my finding in my other topic.

KrawDaddy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 329
  • Last login:February 19, 2007, 06:37:04 pm
  • I am a LOSER
Re:wrapper 5.0 and Daphne
« Reply #22 on: July 30, 2003, 12:01:40 am »
thanks for the .bat files Byzz

Being a newbe, I was able to get Daphne running under MameWAH in about 10 min.  

Kind Regards\

KrawDaddy
All I ask is that my routers obey me as though they would the word of GOD!

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #23 on: July 30, 2003, 01:25:35 am »
I have one more interesting thing that is happening with the wrapper 5.0 program.  Every once in a while, (it has not been consistently repeatable) when I exit the daphne emulator back into DK, DK completely locks up.  Nothing works and I have to CTRL-ALT-DEL and force it to shut down.  When I re-start DK, everything seems to be fine again.  But it will lock up after a few more launches and exits of the daphne emulator.   This does not happen every time, but often enough to be a problem on my system.  This seems to only happen when running the wrapper (as far as I can tell).  Before I started using the wrapper, it never locked up on exit, but I immediately noticed it once the wrapper was running.  I would say it happens about 1 out of 5 times, and has happened when I first boot up DK and launch a daphne game then exit, and sometime it takes a few launches/exits of daphne.  It is very random.

Just wondering if this has happened to anyone else, or possibly I still have a setting messed up.

Terry

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 99
  • Last login:June 16, 2019, 07:43:56 pm
Re:wrapper 5.0 and Daphne
« Reply #24 on: August 01, 2003, 04:14:07 am »
No comments on Daphne locking up on exit using the wrapper 5.0?  I guess this might be a problem I'm only having.  I've had to stop using the wrapper for now until I can figure out why this is happening.  It's too bad since I spent so much time getting it all up and running.   :'(