FoFiX v3.1xx development thread

Discussion particular to FoFiX, its development, and themes
Forum rules
d3vkit
Member
Posts: 4
Joined: April 30th, 2009
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby d3vkit » Mon May 11, 2009 2:22 am

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.
User avatar
Qstick
Member
Posts: 362
Joined: September 30th, 2008
Location: South Carolina
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Qstick » Mon May 11, 2009 3:22 am

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
User avatar
angellinus
Member
Posts: 911
Joined: September 19th, 2008
Location: cavite philippines
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby angellinus » Mon May 11, 2009 4:41 am

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)
Image
Amiga Rules
User avatar
Nickman
Member
Posts: 262
Joined: September 11th, 2008
Location: Sweden,Jämtland,Östersund
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby Nickman » Mon May 11, 2009 5:40 am

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
User avatar
angellinus
Member
Posts: 911
Joined: September 19th, 2008
Location: cavite philippines
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby angellinus » Mon May 11, 2009 6:46 am

But its mostlu set the skill depending on difficulty.


onmouseout="this.style.cursor='default'" alt="" />



Image


User avatar
DesertDiamond
Member
Posts: 1436
Joined: March 30th, 2008
Location: South Beach :P
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby DesertDiamond » Mon May 11, 2009 10:04 am

Py2.6 is really pokey.
Image
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Mon May 11, 2009 1:02 pm

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.
All my songs | My Hero Project: A Hero
The Smart Way to Ask Questions
Image

Spoiler:ummmmm hey guys
you suck because I said so
I know everything about art guys
what you make is worthless because you use photos
allow me to bash you and not prove I hold any talent of my own guys
guys guys guys
look at me
I need attention

boomydude
Member
Posts: 38
Joined: March 28th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby boomydude » Mon May 11, 2009 2:49 pm

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
Slash666
Member
Posts: 226
Joined: October 21st, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Slash666 » Mon May 11, 2009 2:53 pm

I'm not an expert but I think that you have to have 3.0 shaders suported graphics card.
User avatar
oesick
Member
Posts: 69
Joined: March 26th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby oesick » Mon May 11, 2009 3:24 pm

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

also after RunFofFromSources.bat i get other error:
Image

any ideas?
WildSioux
Member
Posts: 81
Joined: January 14th, 2009
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby WildSioux » Mon May 11, 2009 3:37 pm

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?
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
User avatar
fenolftalein
Member
Posts: 305
Joined: March 30th, 2008
Location: Moscow
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby fenolftalein » Mon May 11, 2009 4:15 pm

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.
FoFiX Dev/Mod Squad
User avatar
jstump91
Member
Posts: 837
Joined: September 21st, 2008
Location: Baltimore, MD (US)
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby jstump91 » Mon May 11, 2009 4:37 pm

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:
Image

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?
boomydude
Member
Posts: 38
Joined: March 28th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby boomydude » Mon May 11, 2009 5:03 pm

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)

(W) Missing either pypitch or pyaudio - microphone support will not be possible
(D) GameEngine class init (GameEngine.py)...
(D) FoFiX v3.120 alpha (r1470) starting up...
(D) pygame version: 1.8.1release
(D) Initializing audio.
(D) Audio configuration: (44100, -16, 2)
(D) Initializing pygame.mixer & audio system at 44100 Hz.
(D) Initializing video.
(E) 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

(W) Video setup failed. Trying without antialiasing.
(D) 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
User avatar
p_025
Member
Posts: 187
Joined: February 17th, 2008
Location: somewhere
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby p_025 » Mon May 11, 2009 5:24 pm

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

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 10 guests