FoFiX v3.1xx development thread
Forum rules
- Read the rule stickies, especially ***** FORUM RULES • PLEASE READ BEFORE POSTING HERE! *****, before you post.
- If you are thinking about running from git, please do the entire community a favor and read this thread first. It contains some important information that anyone thinking about running from git should be familiar with.
Re: FoFiX v3.1xx development thread
Although I agree that some posts are redundant and the answer can usually be "Don't be a tester if you don't know how/want stability", I myself before a couple days ago didn't know how to set up SVN and test this (the wiki helped a LOT, and it was actually fairly simple). But the mic issue gets repeated and then buried every day it seems. Can the OP be update with mic enabling instructions? I can write them; if not updating the OP, you can just link my post :D
1. Get the latest Fofix SVN. Start here if you don't know how.
2. Change mic_features_enabled to True in the fofix.ini settings file (under the [game] heading in the file). This file can usually be found in %appdata%/fofix, or you can simply create a blank one in the root directory where you are running fofix (ie, if your just running from the src folder FoFiX.py, create it there; if you made an executable, put the file where the exe is, etc)
3. Plug in your microphone. In the game, go to Options>Control Settings>New Controller. Name this whatever you like (Microphone might be a good choice), and set Controller Type to <Microphone>. Under Mic Device, select your mic.
4. You'll need at least another player (such as Jurgen), so set this up now.
5. Go to the main menu and enter Multiplayer>RB Co-op (this is the only mode that the mic is currently working with). From here it ought to be pretty simple.
If I missed something or didn't explain it correctly, just let me know. Hopefully people will see this; I was in their shoes just days ago and it actually was a little hard to get all of this info since it's usually handed out in bits and pieces across posts. I do understand however, that this is the dev thread for issues and not guidance, so I hope my post can alleviate some of that strain from the awesome developers that take their time to make this great game even greater.
1. Get the latest Fofix SVN. Start here if you don't know how.
2. Change mic_features_enabled to True in the fofix.ini settings file (under the [game] heading in the file). This file can usually be found in %appdata%/fofix, or you can simply create a blank one in the root directory where you are running fofix (ie, if your just running from the src folder FoFiX.py, create it there; if you made an executable, put the file where the exe is, etc)
3. Plug in your microphone. In the game, go to Options>Control Settings>New Controller. Name this whatever you like (Microphone might be a good choice), and set Controller Type to <Microphone>. Under Mic Device, select your mic.
4. You'll need at least another player (such as Jurgen), so set this up now.
5. Go to the main menu and enter Multiplayer>RB Co-op (this is the only mode that the mic is currently working with). From here it ought to be pretty simple.
If I missed something or didn't explain it correctly, just let me know. Hopefully people will see this; I was in their shoes just days ago and it actually was a little hard to get all of this info since it's usually handed out in bits and pieces across posts. I do understand however, that this is the dev thread for issues and not guidance, so I hope my post can alleviate some of that strain from the awesome developers that take their time to make this great game even greater.
Re: FoFiX v3.1xx development thread
angellinus wrote:I suggest if the career has a guitar battle, what if we make a name for your enemy in the song.ini file?
Kinda like:
battle_enemy = Tom Morello
career does have a guitar battle
just add boss_battle = True to your songs. :)
(0) <-- The Eye
- angellinus
- Member
- Posts: 911
- Joined: September 19th, 2008
- Location: cavite philippines
- Reputation: 0
Re: FoFiX v3.1xx development thread
I know but does the career know who are ya battling?
Oh its bad english. sorry.
I meant IF there is a guitar battle song in a career, we should make a name for him and replace jurgen.(Like Tom Morello and Slash)
Oh its bad english. sorry.
I meant IF there is a guitar battle song in a career, we should make a name for him and replace jurgen.(Like Tom Morello and Slash)

Amiga Rules
- Nickman
- Member
- Posts: 262
- Joined: September 11th, 2008
- Location: Sweden,Jämtland,Östersund
- Reputation: 0
- Contact:
Re: FoFiX v3.1xx development thread
angellinus wrote:I know but does the career know who are ya battling?
Oh its bad english. sorry.
I meant IF there is a guitar battle song in a career, we should make a name for him and replace jurgen.(Like Tom Morello and Slash)
And maybe a line like: battle_ai = 1,2,3,4,5
To set skill level.
(0) <-- The Eye
- angellinus
- Member
- Posts: 911
- Joined: September 19th, 2008
- Location: cavite philippines
- Reputation: 0
Re: FoFiX v3.1xx development thread
But its mostlu set the skill depending on difficulty.

- DesertDiamond
- Member
- Posts: 1436
- Joined: March 30th, 2008
- Location: South Beach :P
- Reputation: 0
Wait what
- evilbobthebob
- Member
- Posts: 1011
- Joined: August 25th, 2008
- Location: UK
- Reputation: 0
Re: FoFiX v3.1xx development thread
Akedrou, next time you (or any other dev) updates a major feature (such as vocals) it would be helpful if you told us exactly how you expect it should behave. For example, the vocals part doesn't seem to register taps in game, even though it works fine in the key tester.
Re: FoFiX v3.1xx development thread
Hi. I can't get the latest svn (r1470) to run. I have a new installation of linux ubuntu 9.04 32-bit. I have done all the modules in http://code.google.com/p/fofix/wiki/Req ... rceModules. I have ctypes. The error occurs whether I use python 2.5 / pygame 1.8.1 or python2.6 / pygame 1.8.1 or python2.6 / pygame svn. Disabling psyco doesn't make a difference. I am using PYTHONPATH to point to the pygame svn. My videocard is a mobility Radeon X700 which only supports up to DirectX 9 Shaders 2.0. Is this a problem? Also, I am using the open-source ATI drivers. GLXGears works. Using python-OpenGL 3.0.
Here is the error:
joseph@josephs-acer-laptop-ubuntunew:~/fofix-svn-r1470/src$ PYTHONPATH=/home/joseph/pygame-svn/build/lib.linux-i686-2.6/ python2.6 FoFiX.py
Traceback (most recent call last):
File "FoFiX.py", line 249, in <module>
main()
File "FoFiX.py", line 112, in main
engine = GameEngine(config)
File "/home/joseph/fofix-svn-r1470/src/GameEngine.py", line 530, in __init__
Shader.list.set(os.path.join(Version.dataPath(), "shaders"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 455, in set
if self.make("lightning","stage"):
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 77, in make
program = self.compile(open(fullname+".vs"), open(fullname+".ps"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 129, in compile
program = glCreateProgramObjectARB()
File "/usr/lib/python2.6/dist-packages/OpenGL/platform/baseplatform.py", line 280, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glCreateProgramObjectARB, check for bool(glCreateProgramObjectARB) before calling
Here is the error:
joseph@josephs-acer-laptop-ubuntunew:~/fofix-svn-r1470/src$ PYTHONPATH=/home/joseph/pygame-svn/build/lib.linux-i686-2.6/ python2.6 FoFiX.py
Traceback (most recent call last):
File "FoFiX.py", line 249, in <module>
main()
File "FoFiX.py", line 112, in main
engine = GameEngine(config)
File "/home/joseph/fofix-svn-r1470/src/GameEngine.py", line 530, in __init__
Shader.list.set(os.path.join(Version.dataPath(), "shaders"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 455, in set
if self.make("lightning","stage"):
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 77, in make
program = self.compile(open(fullname+".vs"), open(fullname+".ps"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 129, in compile
program = glCreateProgramObjectARB()
File "/usr/lib/python2.6/dist-packages/OpenGL/platform/baseplatform.py", line 280, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glCreateProgramObjectARB, check for bool(glCreateProgramObjectARB) before calling
Re: FoFiX v3.1xx development thread
I'm not an expert but I think that you have to have 3.0 shaders suported graphics card.
Re: FoFiX v3.1xx development thread
after downloading all i need from http://code.google.com/p/fofix/wiki/Run ... erPython26 and svn update + RebuildWin.bat i get this in FoFix.exe.log:
and i check lib dir in phyton there is heapq
also after RunFofFromSources.bat i get other error:

any ideas?
Traceback (most recent call last):
File "FoFiX.py", line 37, in <module>
File "Config.pyo", line 27, in <module>
File "Log.pyo", line 25, in <module>
File "Resource.pyo", line 26, in <module>
File "Queue.pyo", line 5, in <module>
ImportError: No module named heapq
and i check lib dir in phyton there is heapq
also after RunFofFromSources.bat i get other error:

any ideas?
Re: FoFiX v3.1xx development thread
I just noticed NVIDIA beta drivers with "OpenGL 3.0/3.1 Support for Windows, Linux"
http://developer.nvidia.com/object/opengl_3_driver.html
I haven't installed them yet. But with FoFiX using opengl3.0 now in a python2.6 setup, would this driver help out a lot?
http://developer.nvidia.com/object/opengl_3_driver.html
I haven't installed them yet. But with FoFiX using opengl3.0 now in a python2.6 setup, would this driver help out a lot?
linuxmint 7 (Jaunty 9.04), KDE 4.2.3, 32-bit with python2.6 installed running FoFiX-SVN. P4-2.4Ghz, 1gig ram, BFG Nvidia 8400 GS (512mb) - beta driver 185.18.14, 2x X-ploder guitars.
Watch the demoscene
- fenolftalein
- Member
- Posts: 305
- Joined: March 30th, 2008
- Location: Moscow
- Reputation: 0
- Contact:
Re: FoFiX v3.1xx development thread
boomydude wrote:Hi. I can't get the latest svn (r1470) to run. I have a new installation of linux ubuntu 9.04 32-bit. I have done all the modules in http://code.google.com/p/fofix/wiki/Req ... rceModules. I have ctypes. The error occurs whether I use python 2.5 / pygame 1.8.1 or python2.6 / pygame 1.8.1 or python2.6 / pygame svn. Disabling psyco doesn't make a difference. I am using PYTHONPATH to point to the pygame svn. My videocard is a mobility Radeon X700 which only supports up to DirectX 9 Shaders 2.0. Is this a problem? Also, I am using the open-source ATI drivers. GLXGears works. Using python-OpenGL 3.0.
Here is the error:
joseph@josephs-acer-laptop-ubuntunew:~/fofix-svn-r1470/src$ PYTHONPATH=/home/joseph/pygame-svn/build/lib.linux-i686-2.6/ python2.6 FoFiX.py
Traceback (most recent call last):
File "FoFiX.py", line 249, in <module>
main()
File "FoFiX.py", line 112, in main
engine = GameEngine(config)
File "/home/joseph/fofix-svn-r1470/src/GameEngine.py", line 530, in __init__
Shader.list.set(os.path.join(Version.dataPath(), "shaders"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 455, in set
if self.make("lightning","stage"):
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 77, in make
program = self.compile(open(fullname+".vs"), open(fullname+".ps"))
File "/home/joseph/fofix-svn-r1470/src/Shader.py", line 129, in compile
program = glCreateProgramObjectARB()
File "/usr/lib/python2.6/dist-packages/OpenGL/platform/baseplatform.py", line 280, in __call__
self.__name__, self.__name__,
OpenGL.error.NullFunctionError: Attempt to call an undefined function glCreateProgramObjectARB, check for bool(glCreateProgramObjectARB) before calling
Fixed. It looks like some functions are undefined in linux version of PyOpenGL 3.0.
You may help me to add these functions. Just execute this example in Python and tell me if it's work fine.
Choose graphics, design, zero polys and shaders! -> 1995, Rupture, Stargazer, Atrium, Fracture, Elevated, Squish, Electric Kool-Aid, Frameskool, Lifeforce, Debris, Chaos Theory, Into the Pink, Invoke, Iterate, Fairytale, Track One, Memento, Inflorescence, Heaven Seven, Tengomenas, Masagin, Insert Coins.
FoFiX Dev/Mod Squad
- jstump91
- Member
- Posts: 837
- Joined: September 21st, 2008
- Location: Baltimore, MD (US)
- Reputation: 0
- Contact:
Re: FoFiX v3.1xx development thread
oesick wrote:after downloading all i need from http://code.google.com/p/fofix/wiki/Run ... erPython26 and svn update + RebuildWin.bat i get this in FoFix.exe.log:Traceback (most recent call last):
File "FoFiX.py", line 37, in <module>
File "Config.pyo", line 27, in <module>
File "Log.pyo", line 25, in <module>
File "Resource.pyo", line 26, in <module>
File "Queue.pyo", line 5, in <module>
ImportError: No module named heapq
and i check lib dir in phyton there is heapq
After EXEs are made they're completely independent of your Python installation - that's the whole point of them, which is distribution to those who do not have a Python environment to run the game in.
(Insert my usual rant about there being no advantage whatsoever to making the EXEs here.)
oesick wrote:also after RunFofFromSources.bat i get other error:
any ideas?
I don't think you read the RequiredSourceModules page all the way through.
This calls for another big bold post for everyone's future reference...
Do not post errors ending with "ImportError: No module named ..." unless you are absolutely, positively, 100% sure that you read all the way through either RequiredSourceModules or RunningUnderPython26 (depending on which Python version you're running) and did everything it told you to do. If it worked before but suddenly started giving you such an error, please check whether we added a new dependency since you set up your environment (in which case we will post about it here and update the wiki pages). Violators will be ignored and/or ridiculed.
(It may just have happened that we added a new dependency and forgot to update those pages, but that's very rare, and all of FoFiX's dependencies are covered in both pages at this time.)
jstump91, a.k.a. john.stumpo, a.k.a. stump jstump.com | stump's blog | FoFiX development | My own code Can't find a Windows build of the Python module you need? Try my mediafire! Don't say "Python can't do [insert task here]." Python can do anything with the right modules - said modules may just not have been written yet. "Python - why settle for snake oil when you can have the whole snake?" --Mark Jackson Did you search before you posted? Did you read the rules for the subforum you are posting in? | ![]() ![]() |
Re: FoFiX v3.1xx development thread
fenolftalein wrote:Fixed. It looks like some functions are undefined in linux version of PyOpenGL 3.0.
You may help me to add these functions. Just execute this example in Python and tell me if it's work fine.
I tried the example. A black window came up, then disappeared. However, no error messages came up, either.
As far as my original error:
I now realized that the program was able to make a log and and an ini file. The program runs ok if I disable shaders in the ini. Also, here is my log file when I run the program after I erase the .fofix folder in linux (before I try your fix)
[1;33m(W)[0m Missing either pypitch or pyaudio - microphone support will not be possible
[1;34m(D)[0m GameEngine class init (GameEngine.py)...
[1;34m(D)[0m FoFiX v3.120 alpha (r1470) starting up...
[1;34m(D)[0m pygame version: 1.8.1release
[1;34m(D)[0m Initializing audio.
[1;34m(D)[0m Audio configuration: (44100, -16, 2)
[1;34m(D)[0m Initializing pygame.mixer & audio system at 44100 Hz.
[1;34m(D)[0m Initializing video.
[1;31m(E)[0m Couldn't find matching GLX visualTraceback (most recent call last):
File "/home/joseph/fofix-svn-r1470/src/Video.py", line 62, in setMode
self.screen = pygame.display.set_mode(resolution, flags)
error: Couldn't find matching GLX visual
[1;33m(W)[0m Video setup failed. Trying without antialiasing.
[1;34m(D)[0m Compiling lightning shader.
Which do you guys recommend for microphone support? pypitch or pyaudio? Or do I need both?
EDIT: Just tried r1471. Works fine. Thanks fenolftalein.
Sexier than you
- p_025
- Member
- Posts: 187
- Joined: February 17th, 2008
- Location: somewhere
- Reputation: 0
Re: FoFiX v3.1xx development thread
Does anyone else think it's odd that after Jurgen plays in a game, he laughs at you for the adjusted score of zero, even if you didn't play?
Desktop:
OS: Windows XP Professional, Service Pack 3 (Build 2600); Windows 7 Ultimate x64 Beta (Build 7048) | CPU: Intel Core 2 Duo E6600 (2 CPUs, 2.40GHz) | RAM: 2x Corsair XMS 2GiB DDR2, 2x Corsair XMS 1GiB DDR2 (6GiB total, 3.25 recognized by XP) | Video: EVGA NVidia GeForce 8800GT 512MiB | Audio: Sound Blaster X-Fi XtremeMusic
OS: Windows XP Professional, Service Pack 3 (Build 2600); Windows 7 Ultimate x64 Beta (Build 7048) | CPU: Intel Core 2 Duo E6600 (2 CPUs, 2.40GHz) | RAM: 2x Corsair XMS 2GiB DDR2, 2x Corsair XMS 1GiB DDR2 (6GiB total, 3.25 recognized by XP) | Video: EVGA NVidia GeForce 8800GT 512MiB | Audio: Sound Blaster X-Fi XtremeMusic
Who is online
Users browsing this forum: No registered users and 10 guests