Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Shieldwolf on May 02, 2004, 01:00:22 pm

Title: Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 02, 2004, 01:00:22 pm
Runtime error 52
Bad file name or number

I was trying to add z26 roms

I setup a new config

Atari.cfg

[Config]
extension=.a26
path=E:\atari\
exe=z26.exe
send rom path=1
send exit keys=0
command line options=

added this:

[Dirs]
***Enter all your rom paths... Just like you do in a mame.ini

roms=E:\mame\roms;E:\atari\roms


***Put These in as a base folder.  I.E. If your snaps are in "e:\mame\snap\"
***then the entry should be: "e:\mame\"

Primary Artwork Dir=e:\mame\;e:Atari\;
Additional AW Dirs=e:\mamealt\;e:\mamealt2\

***The alternate elements allow you to have two more artwork elements besides the usual.
***Simply put the name of the sub folder (like "\controls\").
***Note:  Skins must have an alt-element slot defined for this to work.  

AltElement1=\cpanels\
AltElement2=\misc\

[startvd]
[path]
logo=Mame.png
caption=Mame
useclones=0
searchstrings:5=MAME
filters:6=*mature*;9=*Working No*;6=BIOS
[/path]
[/startvd]
[startvd]
[path]
logo=atari.png
caption=Atari
useclones=0
searchstrings:5=z26
filters:
[/path]
[/startvd]

used the dat creator on the dk site to make a dat file for z26 games. Took it and generated a list.

It found the games while generating the list.

When I went into Dk I rescaned roms.  

It found no roms and when I switch to mame it gives me that error.

Now everytime I start dk I start at an empty atari roms section switch to mame and about 2 seconds later the error pops up.

Any ideas




Title: Re:Bad file name or number
Post by: Shieldwolf on May 02, 2004, 01:03:54 pm
ok removing the 1.lst file i think fixed the problem, but I'm still not sure why i didn't find the roms for atari.
Title: Re:Bad file name or number
Post by: Howard_Casto on May 02, 2004, 04:22:30 pm
which dat creator?  There are 3....


You'd probably get more help if you'd actually put your problem AND the applicaiton your having the problem with in the title.  :)


Bad file name or number means just that.  You are missing a file that you need.  



Title: Re:Bad file name or number
Post by: Shieldwolf on May 02, 2004, 05:07:23 pm
I used izaram's dat maker. Like I said, DK did generate a list for it. So howard what file am I missing?
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Howard_Casto on May 03, 2004, 01:27:01 am
Well to start out, your dirs.ini is hosed (i'm hoping that second section is a dirs.ini and you didn't add all of that stuff to your cfg file)  


"[startvd]" only goes at the beginning of your first path, while "[/startvd]" goes after your last path.

Your primary artwork dir has two entries, it can only have one, thus the name.....

primary is for mame, alternate dirs are for other emulators.  

It looks like you haven't been following the documentation and are trying to "wing it".....  Don't ever do that! :P


Your missing file is probably due to the fact that you went around messing with stuff and deleting things when you couldn't get it working (you said you deleted a lst file, which is necessary for dk to work).  Don't do that either.  

Hope that helps.... next time read the docs and pay close attention to the tutorials.  

Title: Re:Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 03, 2004, 01:54:28 am
1. actually I saw that I had the "[/startvd]" I had misplaced.

2. after I had posted, but I still can't launch the emu I get the list just not the emu.

3. I don't erase things if I don't know what they are.

4. I only "wing it" because I'm not clear on some of the documentation

5. I really do like your fe and appreciate the help
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Howard_Casto on May 03, 2004, 02:26:58 am
When you made the dat file did you call the header within the dat file "Atari" ?  That is what you are calling in your config and your filters.  The name of the dat file is irrelevant, but the name in the header must match the naming conventions of your cfg file and the filters you make.  

Z26 probably needs short path names, so I doubt you can launch it without using a wrapper.  


If you are having trouble understanding the docs then it's your responsibility to contact me and express your concerns.  I can try to re-word things if they are gving people problems but I'm not a mind reader. ;)

For the record though, I think the docs are well written.. it's just they are long (and unfortunately have to be to cover everything) and people don't have the attention span to read them.  I'm by no means accusing you of that though, I'm just making a generalized statment.  
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 03, 2004, 03:43:35 am
I actually thought the wrapper might be the way to go. I'm looking at the zinc wrapper and I'm having the same problem, where I get the list, but when I try it launch a game it will pause like it is running the command line and then just stop.

Now I will say I didn't touch your iconfig, because I thought it was already set for zinc, but I did read through it. I place it and the comand launch in my zinc folder and when the zinc cfg file to besure it was right
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Teknique on May 05, 2004, 09:09:03 pm
Shieldwolf-

If your cfg. is called 'Atari.cfg'  then your searchstring needs to be 5=atari

Tek

Title: Re:Dragon King and Z26 Bad file name or number
Post by: Howard_Casto on May 06, 2004, 05:19:48 pm
Yup, emulator name (as in the header name in the dat file you are using), not exe name.  Thanks for catching that.  
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 06, 2004, 10:33:59 pm
try this on:

bad command line switch seen


???


or file not found ... (atari).a26
which is odd cons


dk dir

[Dirs]
***Enter all your rom paths... Just like you do in a mame.ini

roms=E:\mame\roms;E:\z26\roms;E:\zinc\roms


***Put These in as a base folder.  I.E. If your snaps are in "e:\mame\snap\"
***then the entry should be: "e:\mame\"

Primary Artwork Dir=e:\mame\
Additional AW Dirs=e:\z26\;e:\snes\

***The alternate elements allow you to have two more artwork elements besides the usual.
***Simply put the name of the sub folder (like "\controls\").
***Note:  Skins must have an alt-element slot defined for this to work.  

AltElement1=\cpanels\
AltElement2=\misc\

[startvd]
[path]
logo=Mame.png
caption=Mame
useclones=0
searchstrings:5=MAME
filters:6=*mature*;9=*Working No*;6=BIOS
[/path]
[path]
logo=Atari.png
caption=z26
useclones=0
searchstrings:5=Z26
filters:
[/path]
[path]
logo=zinc.png
caption=Zinc
useclones=0
searchstrings:5=Zinc
filters:
[/path]
[/startvd]


z26.cfg

[Config]
extension=.a26
path=E:\z26\
exe=z26.exe
send rom path=1
send exit keys=0
command line options=
emulator is on a cd=0
roms are on a cd=0
Emulator Volume Label=
Roms Volume Label=

Title: Re:Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 10, 2004, 12:16:38 am
did anyone figure out what I'm doing wrong?
Title: Re:Dragon King and Z26 Bad file name or number
Post by: Teknique on May 10, 2004, 10:02:22 am
Sheild,

1. Be sure when you created your dat you called it z26- look inside and be sure the first line says z26 too.

2.  If you can run the emu. outside DK, and can not run it inside DK then you need to use the command line wrapper and point the z26 cfg to the wrapper.

*edit*
When you use Iziramn's Dat maker you can call the dat whatever you want to.  Just be sure you called it what your cfg. is called and what your calling it in your 5= xxx in your dirs.ini

Title: Re:Dragon King and Z26 Bad file name or number
Post by: Shieldwolf on May 11, 2004, 07:09:01 pm
hmm starting over with the zinc wrapper