FoFiX v3.1xx development thread

Discussion particular to FoFiX, its development, and themes
Forum rules
Uncle Fester
User avatar
slantyr
Member
Posts: 759
Joined: March 10th, 2008
Location: the great white north
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby slantyr » Tue Apr 07, 2009 10:16 am

trinidude4 wrote:
death_au wrote:
Lysdestic wrote:Is anyone else having trouble with score uploading?

When I play a song, I'll get a message saying "Scores uploaded, but no new highscore!" but the songs don't show up in the recently played list or on my player profile over at the charts....

It's not just you. It happens to me and a few others have complained about it before. Are you running on Python 2.6?


This was happening to me on python 2.5 too. I fixed it by using the urllib.py that came with python 2.4. Just stick it in your FoFiX source directory and it should work. In case you need the python 2.4 urllib.py, I uploaded it here: http://www.mediafire.com/?yfotjnnmzk5


worked like a charm, thanks :cool:
Image
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 » Tue Apr 07, 2009 12:30 pm

Added shader support in rev1250.
"Video" -> "Advanced Video Settings" -> Use Shaders"

Small documentation:
Language: GLSL
In-Game variables: F1-F5 (last hit time), time (pos/1000), mult, fade, offset, stretch, Noise (texture).

If you're good in GLSL, you can make your own shader program and put it to Data\Shaders\
Fragment shader name: neck.ps
Vertex shader name: neck.vs

Multitexturing: available
Module gets all shader uniform variables automatically.
How to enable shader: Shader.list.enable("shadername")
How to disable all shaders: Shader.list.disable()


Coming soon:
Comments in Shader module;
Shaders for CD list;
Shaders for stages.
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Tue Apr 07, 2009 12:33 pm

The shader works very very well, I didn't have a performance hit using it at all (NVidia card, laptop, 4GB RAM, 2GHz Dual core, Vista). There were one or two glitches though. Firstly, the overdrive neck was squashed a great deal (probably to half its intended size) Secondly, the solo overlay went much too bright.

Other than that and the epilepsy inducing colour changes in a fast song...the shader is a success.
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

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 » Tue Apr 07, 2009 12:36 pm

Thanks =) I forgot to disable shader for overdrive and solo necks.
If colors are too bright for you, you can change vertex shader code. Anyway, I'll fix it today.
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Tue Apr 07, 2009 12:48 pm

It's not that the colours are too bright; it's just that in a song where there are a lot of fast notes, the colour flashes too fast. I'm not much of a coder but I'll have a look at the shader code.
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

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 » Tue Apr 07, 2009 12:53 pm

Solo and overdrive necks fixed. Shader looks better now.
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Tue Apr 07, 2009 12:59 pm

Definitely an improvement. The overdrive neck still seems stretched/squashed though. I'd say it's a successful test though :smile:
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

SmashD
Member
Posts: 75
Joined: July 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby SmashD » Tue Apr 07, 2009 1:33 pm

Code: Select all

Traceback (most recent call last):
  File "FretsOnFire.py", line 38, in ?
    from GameEngine import GameEngine
  File "G:\FretsOnFire\_SVN SOURCE_\src\GameEngine.py", line 37, in ?
    from Video import Video
  File "G:\FretsOnFire\_SVN SOURCE_\src\Video.py", line 26, in ?
    import Shader
  File "G:\FretsOnFire\_SVN SOURCE_\src\Shader.py", line 12, in ?
    multiTex = (GL_TEXTURE0_ARB,GL_TEXTURE1_ARB,GL_TEXTURE2_ARB,GL_TEXTURE3_ARB)

NameError: name 'GL_TEXTURE0_ARB' is not defined


Shader breaking the game!?
The Photoshop Wizard
User avatar
kristijan_mkd
Member
Posts: 945
Joined: August 27th, 2008
Location: Zzz
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby kristijan_mkd » Tue Apr 07, 2009 1:35 pm

SmashD wrote:

Code: Select all

Traceback (most recent call last):
  File "FretsOnFire.py", line 38, in ?
    from GameEngine import GameEngine
  File "G:\FretsOnFire\_SVN SOURCE_\src\GameEngine.py", line 37, in ?
    from Video import Video
  File "G:\FretsOnFire\_SVN SOURCE_\src\Video.py", line 26, in ?
    import Shader
  File "G:\FretsOnFire\_SVN SOURCE_\src\Shader.py", line 12, in ?
    multiTex = (GL_TEXTURE0_ARB,GL_TEXTURE1_ARB,GL_TEXTURE2_ARB,GL_TEXTURE3_ARB)

NameError: name 'GL_TEXTURE0_ARB' is not defined


Shader breaking the game!?

Me too.
Wait what
User avatar
evilbobthebob
Member
Posts: 1011
Joined: August 25th, 2008
Location: UK
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby evilbobthebob » Tue Apr 07, 2009 1:44 pm

Looks like you need a different version of the python OpenGL libraries. But I'm not an expert, so I couldn't say for sure.
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

The Photoshop Wizard
User avatar
kristijan_mkd
Member
Posts: 945
Joined: August 27th, 2008
Location: Zzz
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby kristijan_mkd » Tue Apr 07, 2009 1:55 pm

Code: Select all

C:\FofixFromSource\src>python FretsOnFire.py
Traceback (most recent call last):
  File "FretsOnFire.py", line 38, in ?
    from GameEngine import GameEngine
  File "C:\FofixFromSource\src\GameEngine.py", line 31, in ?
    from OpenGL.GL import *
  File "C:\Python24\Lib\site-packages\OpenGL\GL\__init__.py", line 2, in ?
    from OpenGL.raw.GL import *
  File "C:\Python24\Lib\site-packages\OpenGL\raw\GL\__init__.py", line 6, in ?
    from OpenGL.raw.GL.constants import *
  File "C:\Python24\Lib\site-packages\OpenGL\raw\GL\constants.py", line 6, in ?
    from ctypes import *
ImportError: No module named ctypes
.

Now i get this with PyopenGl 3.0 :cursing:


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





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



Image
Image
Image
Image





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



Image
Image





.iGuitarist / .iDesign. / iRock.
ImageMy YouTubeChannel
Image My Facebook Fan Page
@rokerot on twitter
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 » Tue Apr 07, 2009 2:11 pm

kristijan_mkd wrote:

Code: Select all

C:\FofixFromSource\src>python FretsOnFire.py
Traceback (most recent call last):
  File "FretsOnFire.py", line 38, in ?
    from GameEngine import GameEngine
  File "C:\FofixFromSource\src\GameEngine.py", line 31, in ?
    from OpenGL.GL import *
  File "C:\Python24\Lib\site-packages\OpenGL\GL\__init__.py", line 2, in ?
    from OpenGL.raw.GL import *
  File "C:\Python24\Lib\site-packages\OpenGL\raw\GL\__init__.py", line 6, in ?
    from OpenGL.raw.GL.constants import *
  File "C:\Python24\Lib\site-packages\OpenGL\raw\GL\constants.py", line 6, in ?
    from ctypes import *
ImportError: No module named ctypes
.

Now i get this with PyopenGl 3.0 :cursing:


Python 2.4 needs ctypes to use pyOpenGL 3. 2.5 and 2.6 include it as part of the standard library. It's probably easy to find.
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?
Rock Star
User avatar
MasterPhW
Member
Posts: 93
Joined: March 11th, 2007
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby MasterPhW » Tue Apr 07, 2009 2:14 pm

I wanted to try some own shaders and got this:

Code: Select all

Traceback (most recent call last):
  File "FretsOnFire.py", line 247, in <module>
    main()
  File "FretsOnFire.py", line 112, in main
    engine = GameEngine(config)
  File "L:\GuitarHeroClones\FoFiX\src\GameEngine.py", line 481, in __init__
    self.video.setShaders(os.path.join(Version.dataPath(), "Shaders"))
  File "L:\GuitarHeroClones\FoFiX\src\Video.py", line 123, in setShaders
    Shader.list.setVar("mult",0.1,False,"neck")
  File "L:\GuitarHeroClones\FoFiX\src\Shader.py", line 93, in setVar
    pos = program[var]
KeyError: 'mult'

Any idea?
My Rigs:

Spoiler:Main: Intel Core i7-860 (@3.33Ghz) | 4 GB DDR3-1333 | ATI HD5750 PCI-E | ATI High Definition Audio Device |
4 TB Internal SATA2 + 6TB external USB3 | Windows 7 Business X64 MSDNAA
Old One: AMD Athlon 64 X2 4200+ (2x2.5Ghz; S939) | MSI KbT Neo2-F V2.0 | 2x1GB Corsair Value VS1GBKIT400 | Radeon HD 3850 512 MB/AGP8x | Creative SB Audigy LS | 2TB (4x500GB SATA2 HDDs Raid0) | Windows 7 Business X64 MSDNAA


*running FoFiX 4.x newest alpha git on python 2.6 build environment, 2 Les Paul PS3 Guitar Hero III Controller & 1 Complete Rockstar Set*
Image
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 » Tue Apr 07, 2009 2:15 pm

kristijan_mkd, PyOpenGL 3.00 solves this problem )
UPD: Fixed! Anyway, install PyOpenGL 3.0 to use shaders.
SmashD
Member
Posts: 75
Joined: July 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby SmashD » Tue Apr 07, 2009 4:11 pm

Thanks for the help. I like the effects! Very nice! :thumbup:

Besides PyOpenGL-3.0.0.win32.exe i also had to install ctypes-1.0.2.win32-py2.4.exe, for the ones that still get an error message :2thumbsup:

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 34 guests