.bat File Problem
Posted: Sun Dec 30, 2007 1:56 am
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.
However, JoyToKey opens no problem whatsoever. Here's my file:
And the error log FoF generates:
Any ideas? 
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.
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
EXITCode: 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/*.*'