.bat File Problem

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Post Reply
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

.bat File Problem

Post by Darth_Z13 »

I received Guitar Hero 3 for Christmas, and, quickly attempted to hook up the guitar controller to my computer to use with Frets on Fire. After some searching, I found a program (JoyToKey) that would map the guitar keys to keyboard keys, and that worked. :)

However, I found it annoying to navigate to the JoyToKey folder everytime I wanted to play Frets on Fire. So I sought a way to opening both programs from one icon. It came to me at that point to use a batch file.

I surfed a few tutorials, and I've got my bat. file working up until FoF opens... it then starts, then crashes. :P

However, JoyToKey opens no problem whatsoever. Here's my file:

Code: Select all

@ECHO OFF
COLOR 42
ECHO.
ECHO Do you have the Guitar Hero controller plugged in?
ECHO.
PAUSE
CLS
START C:\Games\jtk374en\JoyToKey.exe
ECHO.
ECHO Has JoyToKey started?
ECHO.
PAUSE
CLS
START C:\Games\fretsonfire\FretsOnFire.exe
EXIT
And the error log FoF generates:

Code: Select all

Traceback (most recent call last):
  File "GameEngine.pyo", line 345, in run
  File "GameEngine.pyo", line 335, in main
  File "Engine.pyo", line 139, in run
  File "Engine.pyo", line 130, in _runTask
  File "Resource.pyo", line 166, in run
  File "Resource.pyo", line 81, in finish
  File "Resource.pyo", line 68, in load
  File "Editor.pyo", line 167, in <lambda>
  File "Song.pyo", line 748, in loadSong
  File "Resource.pyo", line 110, in fileName
  File "ntpath.pyo", line 67, in join
  File "ntpath.pyo", line 53, in isabs
  File "ntpath.pyo", line 119, in splitdrive
TypeError: unsubscriptable object
Traceback (most recent call last):
  File "Session.pyo", line 66, in signalMessage
  File "Session.pyo", line 87, in handleMessage
  File "World.pyo", line 66, in handlePlayerLeft
ValueError: list.remove(x): x not in list
Traceback (most recent call last):
  File "GameEngine.pyo", line 345, in run
  File "GameEngine.pyo", line 335, in main
  File "Engine.pyo", line 139, in run
  File "Engine.pyo", line 130, in _runTask
  File "Resource.pyo", line 166, in run
  File "Resource.pyo", line 81, in finish
  File "Resource.pyo", line 68, in load
  File "Editor.pyo", line 167, in <lambda>
  File "Song.pyo", line 748, in loadSong
  File "Resource.pyo", line 110, in fileName
  File "ntpath.pyo", line 67, in join
  File "ntpath.pyo", line 53, in isabs
  File "ntpath.pyo", line 119, in splitdrive
TypeError: unsubscriptable object
Traceback (most recent call last):
  File "GameEngine.pyo", line 345, in run
  File "GameEngine.pyo", line 335, in main
  File "Engine.pyo", line 139, in run
  File "Engine.pyo", line 130, in _runTask
  File "Input.pyo", line 213, in run
  File "Input.pyo", line 141, in broadcastEvent
  File "Editor.pyo", line 248, in keyReleased
  File "Editor.pyo", line 206, in controlReleased
KeyError: 3
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Traceback (most recent call last):
  File "FretsOnFire.py", line 64, in ?
  File "GameEngine.pyo", line 179, in __init__
  File "Mod.pyo", line 32, in init
  File "Mod.pyo", line 41, in getAvailableMods
WindowsError: [Errno 3] The system cannot find the path specified: 'data\\mods/*.*'
Any ideas? :)
User avatar
swbf_lase
Major General
Major General
Posts: 647
Joined: Fri Jul 08, 2005 7:07 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: 127.0.0.1:465
Contact:

Re: .bat File Problem

Post by swbf_lase »

Try starting them both yourself and see whats the problem, I could easily fix it as its in python but since I don't have the source code. Anyways just try running them both on your own. If that doesn't work then shoot me the program?
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: .bat File Problem

Post by RepSharpshooter »

Ok we got this solved. He need the "start in" part of it. So I suggested running two shortcuts to the exe's with the bat and it worked.
Post Reply