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: Maximus Arcade - Running Batch files  (Read 4249 times)

0 Members and 1 Guest are viewing this topic.

Moose13

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 135
  • Last login:December 16, 2020, 10:07:11 pm
Maximus Arcade - Running Batch files
« on: April 07, 2007, 07:38:39 pm »
Anyone here using Maximus Arcade? I know, I know, the whole $$ thing, but I think it's a great piece of software.

BUT, I'm having trouble running batch files in MA. The batch files work perfectly through Windows, but when they are run in MA, they always have errors. Most of them can't find specified files. Seems to me that although it finds the main exacutable file in the correct location, it can't find any subsequent files. Maybe somehow it's retaining the file folder from where the bat file is?  ???
Anyone havbe this probelm and get past it?

Gamester

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 483
  • Last login:March 01, 2019, 03:00:10 pm
Re: Maximus Arcade - Running Batch files
« Reply #1 on: April 09, 2007, 04:44:47 pm »
Sounds like a working directory path issue.  Within your script you need to change your "working" directory to the directory that contains the files you are calling.  For intance, if your batch file and all of the files it references are in D:\Emulation\Batch, you need to add something like this your batch:
  D:
  CD \Emulation\Batch

Another method is using pushd/popd commands:

  pushd D:\Emulation\Batch

Then if you want to return to the previous folder you simply use "popd"

Hope that helps.
Current Project:                                                       First Project:
  

Moose13

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 135
  • Last login:December 16, 2020, 10:07:11 pm
Re: Maximus Arcade - Running Batch files
« Reply #2 on: April 09, 2007, 10:30:38 pm »
Thanks for the advice. I was looking for something to retain the directory.
So, it works again in windows, but not through Maximus Arcade.
I just don't know why.
Here's the code I wrote:

:: Hamsterball
::
@ECHO OFF

pushd I:\Emulators\Hamsterball310\
hamsterball.exe

Before I had:
:: Hamsterball
::
@ECHO OFF
I:
CD Emulators\Hamsterball310\
hamsterball.exe

Both worked in windows, but not in MA. I do however get a different result.
In your case I gate a Windows explorer window, like it's looking for the file or something.
It the second case (actually my original code) I got an error that hamsterball couldn't find an associated file.

BTW, great game for the trackball, a bit easy though. The kids love it.

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4419
  • Last login:Today at 12:13:19 am
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: Maximus Arcade - Running Batch files
« Reply #3 on: April 10, 2007, 09:07:15 am »
try


i:
cd\PROGRAM PATH\PROGRAM PATH
PROGRAM EXE
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Moose13

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 135
  • Last login:December 16, 2020, 10:07:11 pm
Re: Maximus Arcade - Running Batch files
« Reply #4 on: April 10, 2007, 07:33:58 pm »
Same thing. Works in indows, but not through MA.
I know it's not only me. Others are having the same problem.

It starts to load the game, but then has an error that it can't load a texture file. My guess is that once it launces the program it doesn't hold the directory structure and diverts back to the directory where the batch file exists, so it can't find and subsequent files. :dizzy:

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Maximus Arcade - Running Batch files
« Reply #5 on: April 11, 2007, 07:11:17 pm »
I saw that issue in Windows Media Center as well with same path issue. Got only one test game to work (Crasy Frog). One of them that didden't work was Airstrike 2 Demo (patch issue as destripted here).

Would the same path issues with these 2 games in MA as well? I wich they did, and why?

Why do the bat file not cd path correct?
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.