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: command line ZSNESW  (Read 2127 times)

0 Members and 1 Guest are viewing this topic.

rhd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:December 22, 2002, 09:42:53 am
  • Nothing is idiot proof
    • rhd
command line ZSNESW
« 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

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 08:33:39 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:command line ZSNESW
« Reply #1 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.  

Minwah

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7662
  • Last login:January 18, 2019, 05:03:20 am
    • MAMEWAH
Re:command line ZSNESW
« Reply #2 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 ;)

Cave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 122
  • Last login:June 07, 2009, 10:27:58 am
Re:command line ZSNESW
« Reply #3 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.




jaquer

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:January 13, 2025, 10:20:49 pm
  • Geek of no Qualifications
Re:command line ZSNESW
« Reply #4 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. :)
« Last Edit: February 28, 2003, 04:50:56 pm by izaram »
It's pronounced hacker.

rhd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 29
  • Last login:December 22, 2002, 09:42:53 am
  • Nothing is idiot proof
    • rhd
Re:command line ZSNESW
« Reply #5 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

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 08:33:39 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:command line ZSNESW
« Reply #6 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.  

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:Today at 02:20:39 pm
Re:command line ZSNESW
« Reply #7 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... :)

Odonadon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 552
  • Last login:January 27, 2006, 12:01:12 am
  • But then again, that's just one man's opinion.
    • Turbo2k
Re:command line ZSNESW
« Reply #8 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
It's Captain Odonadon, and his magical bag of nuts.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 08:33:39 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:command line ZSNESW
« Reply #9 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.    

Odonadon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 552
  • Last login:January 27, 2006, 12:01:12 am
  • But then again, that's just one man's opinion.
    • Turbo2k
Re:command line ZSNESW
« Reply #10 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
It's Captain Odonadon, and his magical bag of nuts.

Jakobud

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1962
  • Last login:Today at 02:20:39 pm
Re:command line ZSNESW
« Reply #11 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?

Odonadon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 552
  • Last login:January 27, 2006, 12:01:12 am
  • But then again, that's just one man's opinion.
    • Turbo2k
Re:command line ZSNESW
« Reply #12 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
It's Captain Odonadon, and his magical bag of nuts.

Cave

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 122
  • Last login:June 07, 2009, 10:27:58 am
Re:command line ZSNESW
« Reply #13 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

Odonadon

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 552
  • Last login:January 27, 2006, 12:01:12 am
  • But then again, that's just one man's opinion.
    • Turbo2k
Re:command line ZSNESW
« Reply #14 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
It's Captain Odonadon, and his magical bag of nuts.