Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: rhd on February 28, 2003, 02:11:06 pm

Title: command line ZSNESW
Post by: rhd on February 28, 2003, 02:11:06 pm
Does the Windows version of ZSNES (zsnesw.exe) support running games from the command line? I'm trying to hook it up to MameWah and run it in a cabinet so I want to specify the game from the command line and then exit with the escape key. I tried using the command line by starting a DOS-box, but when I add any command parameters the program doesn't run.

Thanks,
Rob
Title: Re:command line ZSNESW
Post by: Howard_Casto on February 28, 2003, 02:30:55 pm
it works, but you have to use short filenames in the old 8.3 file format....

Remember zsnes is a uber old program and started in dos.  
Title: Re:command line ZSNESW
Post by: Minwah on February 28, 2003, 02:51:11 pm
I have ZSNES working with MAMEWAH...

Try sending the ROM path as well as filename and also make sure you put the correct file extension on the end.  And as Howard says, you must use short filenames.  MAMEWAH should do this by default anyway - give it a go ;)
Title: Re:command line ZSNESW
Post by: Cave on February 28, 2003, 04:05:19 pm
Once you've set up zsnesw how you want it in the gui, you
can turn it off.

Add this to the config "GUIDisable = 1" and from now on the escape key will quit.



Title: Re:command line ZSNESW
Post by: jaquer on February 28, 2003, 04:50:22 pm
That's odd, it works OK for me from the command line. I'm using version 1.337 on an XP Pro machine. Did you try adding quotes around the filename? (BTW, this is with long filenames).

Once you've set up zsnesw how you want it in the gui, you
can turn it off.

Great news! I don't know if anyone here remembers my saga trying to get the zsnes to do something like this. I think Howard will. :)
Title: Re:command line ZSNESW
Post by: rhd on February 28, 2003, 07:01:57 pm
I'll be darned...I hooked it up to MameWah and it just worked. I also took a binary editor to the cgf file and got exit on escape-key working.

Its coming up in grayscale instead of color, but I'll fool around with it a bit more and get that working.

Thanks for the help,
Rob
Title: Re:command line ZSNESW
Post by: Howard_Casto on February 28, 2003, 10:25:07 pm
sweet! that's the option i've been waiting for... now maybe I'll run zsnes on my machine again.  
Title: Re:command line ZSNESW
Post by: Jakobud on March 02, 2003, 03:25:47 am
Hmmm thats wierd, I remember with the DOS version of ZSNES in the cfg file there was that option not to use the GUI but in the Windows version that option was not in the cfg file (or was it an ini file...). Anyways, I didn't know you could just add that yourself and expect it to work... :)
Title: Re:command line ZSNESW
Post by: Odonadon on March 06, 2003, 12:07:48 am
K, I started a new topic, but haven't had any responses yet.  It can't be just me:

zsnesw causes illegal operations in Win98 SE when launched from Game Launcher.  Runs fine when in debug mode, and when launched from command prompt.  Must be a conflict when gl32 puts itself in the background and launches zsnesw at the same time.  Anyone else with this problemo?

Thanks,
Odonadon
Title: Re:command line ZSNESW
Post by: Howard_Casto on March 06, 2003, 02:39:36 pm
just for kicks start it within gl through my wrapper......

as gamelauncher only has to launch the wrapper and my wrapper is the thing that actually launches the game, it should help.....

I know of many people using zsnesw with gl and my wrappers in 98, so I know it possible.  I doubt that's the issue your running into honestly though. Gl should load zsnesw just fine.  I would suggest re-installing the emulator.    
Title: Re:command line ZSNESW
Post by: Odonadon on March 06, 2003, 03:18:21 pm
just for kicks start it within gl through my wrapper......

as gamelauncher only has to launch the wrapper and my wrapper is the thing that actually launches the game, it should help.....

I know of many people using zsnesw with gl and my wrappers in 98, so I know it possible.  I doubt that's the issue your running into honestly though. Gl should load zsnesw just fine.  I would suggest re-installing the emulator.    

Awesome, thanks Howard.  I bet that'll work.  It seems if there's a bit of a delay between GL minimizing and zsnesw launching it works no problem (hence my success in debug mode).  I'll give that a try tonight and let you know.

Odonadon
Title: Re:command line ZSNESW
Post by: Jakobud on March 10, 2003, 11:26:58 pm
You guys know this GUIDisable thing....well it works, but everytime I exit ZSnes, the CFG file is re-written or something by Zsnes and it always takes out that GUIDisable flag...anyone else experience this?  Will I run into problems by just making it read-only?
Title: Re:command line ZSNESW
Post by: Odonadon on March 10, 2003, 11:29:09 pm
You guys know this GUIDisable thing....well it works, but everytime I exit ZSnes, the CFG file is re-written or something by Zsnes and it always takes out that GUIDisable flag...anyone else experience this?  Will I run into problems by just making it read-only?

Yup, I've experienced this as well.  Let's try making the file read-only.  I didn't think of that.  Good call.

Odonadon
Title: Re:command line ZSNESW
Post by: Cave on March 11, 2003, 01:49:24 pm
I've had it read only for a while and there doesn't seem to be any drawbacks to this, apart from forgetting to turn it off when making changes  :P
Title: Re:command line ZSNESW
Post by: Odonadon on March 11, 2003, 03:06:53 pm
Yup.  Made mine read-only - works fine.  ZSNESW won't write to it unless you're making changes via the GUI, but you'll have to take the read-only off to enable GUI to get in there to mke changes anyway.

Odonadon