FoFiX 4.0.0 Development Thread

Discussion particular to FoFiX, its development, and themes
Forum rules
teehee~
User avatar
blazingamer
Member
Posts: 2017
Joined: November 17th, 2007
Location: Place
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby blazingamer » Tue Sep 07, 2010 1:24 pm

jstump91 wrote:We just merged a feature branch containing much faster rendering code.

This code is not strictly written in Python and must be compiled before it can be used, if you are running from source.

You will need a C compiler now, and there are a couple new dependency packages (most importantly, Cython) that are needed only for running from source.

If you are following Git, the game will no longer work until you compile the relevant code. Don't be afraid. This is a lot easier to set up than it sounds.

Our new running-from-source page (which you can read here) has full details, including how to set up a compiler and the one simple command you will need to run to do the compilation.

Happy playing!

TL;DR: some compilation is needed now; install Cython, then click the link above and read the "Compiling the native modules" section.


cmgl is this new module created for handling the opengl rendering, that's why you have the issue. You can no longer just do "python fofix.py", you need to compile the cmgl module before you can run the program. Just follow the instructions there and you'll be good to go.
MDman
Member
Posts: 9
Joined: September 5th, 2010
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby MDman » Tue Sep 07, 2010 2:27 pm

Thanks :thumbup: .

Before I tried with the python FoFix.py. But now as you say for use FoFix run previous the setup.py (and install cython :wink: ).

Bye.
User avatar
fuzion
Member
Posts: 382
Joined: September 12th, 2007
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby fuzion » Tue Sep 07, 2010 2:28 pm

MDman wrote:I downloaded the source code from the git. And try to execute FoFix but it fail because I haven't ""cmgl"" module and I try to search in apt and internet but I did'nt find. What is ""cmgl""?


Please read the section Compiling the native modules in the Running From Source documentation.
Waiting for BH Theme
User avatar
vitor180396
Member
Posts: 265
Joined: July 23rd, 2009
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby vitor180396 » Tue Sep 07, 2010 4:10 pm

hey guys look what I found in Youtube:

http://www.youtube.com/watch?v=kN8I4X55WKY&feature=fvsr
Waiting for BH Theme
User avatar
vitor180396
Member
Posts: 265
Joined: July 23rd, 2009
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby vitor180396 » Tue Sep 07, 2010 5:01 pm

I think that it is a problem with the chart because the mp3 is out of the time
The tux power
User avatar
Borisdsp
Member
Posts: 287
Joined: July 23rd, 2008
Location: España
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby Borisdsp » Wed Sep 08, 2010 6:09 am

Team Meteorito Official Member
The Man, The Moose
User avatar
amak11
Member
Posts: 3138
Joined: May 13th, 2008
Location: Nowhere, and somewhere
Reputation: 6
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby amak11 » Wed Sep 08, 2010 9:56 am

raynebc wrote:Pretty interesting, although the lyrics were scrolling extremely late. Is that a problem with FoFiX or the chart?


That looks more like the RB chart then anything, the guy probly figured ho could use any ol' mp3 and it will be magically synced.
Disclaimer: If you take the above text seriously, then you are an even greater idiot then I
Image


Image





letylovesjb27 in the Taylor Swift - Fearless Album thread wrote::DDDDDDDDDD thanks soooooooo much, I love all Taylor´s songs and this is already the first place where I finally found them!
Waitin for the others! xoxo



Code: Select all

<@away_xbox> Looks like it's your lucky day Amak11 >:) Since i don't see Amak here ill choose somebody else....
* @away_xbox straps 15 sticks of TNT to Amak11's body. The display reads [58] seconds.
<@away_xbox> Diffuse the timer by cutting the correct wire. There are 14 wires. They are Green White Peenus Indigo Black Gold Grey Brown Violet Turquoise Teal Magenta Mauve and Yellow.
<Amak11> oh really
<Belisario93> hmm
<Amak11> !cutwire Peenus
<@away_xbox> ...snip....
<@away_xbox> Amak11 cut the Peenus wire. This has defused the timer on the TNT! Just try and get it off you without setting it off, ok?

f*cking ninja's...
User avatar
Asskickulater
Member
Posts: 2225
Joined: January 22nd, 2009
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby Asskickulater » Wed Sep 08, 2010 1:51 pm

i had fofix 4 not long ago and tried the video thing and had no luck lol
Image Image
User avatar
lvl4573r
Member
Posts: 77
Joined: May 24th, 2008
Location: Somewere
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby lvl4573r » Wed Sep 08, 2010 6:17 pm

Hey guys, i've been following this guide trying to set up my pc (Win7 x64) to run from sources, but this keeps happening when i try to run FoFiX:

Spoiler:F:\Games\FoFiX\src>python FoFiX.py
Traceback (most recent call last):
File "FoFiX.py", line 104, in <module>
from GameEngine import GameEngine
File "F:\Games\FoFiX\src\GameEngine.py", line 31, in <module>
from OpenGL.GL import *
File "C:\Python26\lib\site-packages\OpenGL\GL\__init__.py", line 2, in <module
>
from OpenGL.raw.GL import *
File "C:\Python26\lib\site-packages\OpenGL\raw\GL\__init__.py", line 6, in <mo
dule>
from OpenGL.raw.GL.constants import *
File "C:\Python26\lib\site-packages\OpenGL\raw\GL\constants.py", line 7, in <m
odule>
from OpenGL import platform, arrays
File "C:\Python26\lib\site-packages\OpenGL\arrays\__init__.py", line 22, in <m
odule>
formathandler.FormatHandler.loadAll()
File "C:\Python26\lib\site-packages\OpenGL\arrays\formathandler.py", line 37,
in loadAll
cls.loadPlugin( entrypoint )
File "C:\Python26\lib\site-packages\OpenGL\arrays\formathandler.py", line 44,
in loadPlugin
plugin_class = entrypoint.load()
File "C:\Python26\lib\site-packages\OpenGL\plugins.py", line 14, in load
return importByName( self.import_path )
File "C:\Python26\lib\site-packages\OpenGL\plugins.py", line 28, in importByNa
me
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "C:\Python26\lib\site-packages\OpenGL\arrays\numpymodule.py", line 25, in
<module>
from OpenGL_accelerate.numpy_formathandler import NumpyHandler
File "numpy.pxd", line 30, in OpenGL_accelerate.numpy_formathandler (src\numpy
_formathandler.c:3543)
ValueError: numpy.dtype does not appear to be the correct type object

F:\Games\FoFiX\src>pause
Press any key to continue . . .


Everything else seemed to go fine though (installing Python2.6, all the dependencies, and compiling the C/C++ code)

Help?
User avatar
fuzion
Member
Posts: 382
Joined: September 12th, 2007
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby fuzion » Wed Sep 08, 2010 7:48 pm

It's a known bug. Try downloading PyOpenGL-accelerate-3.0.1.zip from sf.net. Extract it somewhere and run 'python setup.py install' from a cmd prompt.
User avatar
lvl4573r
Member
Posts: 77
Joined: May 24th, 2008
Location: Somewere
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby lvl4573r » Wed Sep 08, 2010 9:05 pm

Just tried that, same error though :/

I also tried reverting NumPy to v1.3.0 (from 1.4.0/1.5.0 which i've tried already) and it manages to start for, like, 5 seconds but then it crashes and i get this in the log file:

Spoiler:Traceback (most recent call last):
File "fofix.py", line 299, in <module>
main()
File "fofix.py", line 174, in main
engine = GameEngine(config)
File "F:\Games\FoFiX\src\GameEngine.py", line 589, in __init__
self.video.setMode((width, height), fullscreen = fullscreen, multisamples = multisamples)
File "F:\Games\FoFiX\src\Video.py", line 103, in setMode
iconFixedUp = Image.merge('RGBA', [icon.split()[i] for i in (2, 1, 0, 3)]).transpose(Image.FLIP_TOP_BOTTOM)
File "C:\Python26\lib\site-packages\PIL\Image.py", line 1497, in split
if self.im.bands == 1:
AttributeError: 'NoneType' object has no attribute 'bands'

User avatar
fuzion
Member
Posts: 382
Joined: September 12th, 2007
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby fuzion » Wed Sep 08, 2010 10:25 pm

Another known issue (illustrating the benefits of providing a zip of tested dependencies) ... replace Python\Lib\site-packages\PIL\Image.py with this one.
User avatar
lvl4573r
Member
Posts: 77
Joined: May 24th, 2008
Location: Somewere
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby lvl4573r » Thu Sep 09, 2010 1:13 pm

Thanks, it's working now
Polish FoF Player
User avatar
wolf667
Member
Posts: 49
Joined: September 7th, 2009
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby wolf667 » Wed Sep 29, 2010 10:14 am

Is there older/other themes working with current source of fofix 4 ? I have only Megalight V4 theme working and i cant change for any other.
BTW. I don't know where to get any video for background. Do you know where can i find any ?

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 2 guests