FoFiX v3.1xx development thread

Discussion particular to FoFiX, its development, and themes
Forum rules
Ryoma
Member
Posts: 77
Joined: January 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Ryoma » Tue May 26, 2009 7:06 pm

3D notes don't work anymore, at least for me (2D notes are fine). If I try using my 3D notes with the Rock Band 2 theme the game freezes (loops infinitely) and the log does report these errors:

Spoiler:(E) Loading error:Traceback (most recent call last):
File "C:\FoFiX\FoFix Alpha\src\GameEngine.py", line 988, in main
self.view.render()
File "C:\FoFiX\FoFix Alpha\src\View.py", line 216, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "C:\FoFiX\FoFix Alpha\src\GuitarScene.py", line 5993, in render
SceneClient.render(self, visibility, topMost) #MFH - I believe this eventually calls the renderGuitar function, which also involves two viewports... may not be easy to move this one...
File "C:\FoFiX\FoFix Alpha\src\Scene.py", line 286, in render
self.render3D()
File "C:\FoFiX\FoFix Alpha\src\GuitarScene.py", line 4591, in render3D
self.stage.render(self.visibility)
File "C:\FoFiX\FoFix Alpha\src\Stage.py", line 588, in render
self.scene.renderGuitar()
File "C:\FoFiX\FoFix Alpha\src\GuitarScene.py", line 4611, in renderGuitar
guitar.render(self.visibility, self.song, self.getSongPosition(), self.controls, self.killswitchEngaged[i]) #QQstarS: new
File "C:\FoFiX\FoFix Alpha\src\Guitar.py", line 2175, in render
self.renderFrets(visibility, song, controls)
File "C:\FoFiX\FoFix Alpha\src\Guitar.py", line 1563, in renderFrets
glRotatef(Theme.noterotdegrees, 0, 0, -Theme.noterot[n])
AttributeError: 'module' object has no attribute 'noterot'

and

Spoiler:(E) Loading error:Traceback (most recent call last):
File "C:\FoFiX\FoFix Alpha\src\GameEngine.py", line 988, in main
self.view.render()
File "C:\FoFiX\FoFix Alpha\src\View.py", line 216, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "C:\FoFiX\FoFix Alpha\src\GuitarScene.py", line 5993, in render
SceneClient.render(self, visibility, topMost) #MFH - I believe this eventually calls the renderGuitar function, which also involves two viewports... may not be easy to move this one...
File "C:\FoFiX\FoFix Alpha\src\Scene.py", line 286, in render
self.render3D()
File "C:\FoFiX\FoFix Alpha\src\GuitarScene.py", line 4591, in render3D
self.stage.render(self.visibility)
File "C:\FoFiX\FoFix Alpha\src\Stage.py", line 568, in render
self.renderBackground()
File "C:\FoFiX\FoFix Alpha\src\Stage.py", line 504, in renderBackground
coord = (self.wFull/2,self.hFull/2))
File "C:\FoFiX\FoFix Alpha\src\GameEngine.py", line 858, in drawImage
image.draw(color = color, rect = rect, lOffset = lOffset, rOffset = rOffset)
File "C:\FoFiX\FoFix Alpha\src\Svg.py", line 612, in draw
glPushMatrix()
File "C:\Python26\lib\site-packages\OpenGL\error.py", line 194, in glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1283,
description = 'Stapel\xfcberlauf',
baseOperation = glPushMatrix,
cArguments = ()



these settings in my theme.ini cause the crash (they worked before):

Spoiler:#3D notes
noterotdegrees = 4
noterot1 = -2
noterot2 = -1
noterot3 = 0
noterot4 = 1
noterot5 = 2
twoDnote = False
twoDkeys = False
threeDspin = False


Latest working revision with 3D notes: r1547
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 May 26, 2009 7:12 pm

Ryoma, that was my mistake. Fixed.
Ryoma
Member
Posts: 77
Joined: January 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Ryoma » Tue May 26, 2009 7:15 pm

fenolftalein wrote:Ryoma, that was my mistake. Fixed.

Awesome, thanks. :)
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 May 26, 2009 7:35 pm

Finally fixed Shader.py. Thanks to Legwon for help.
Ryoma, i don't understand, where is useless glPushMatrix(), I'm going to look into entire code. But latest revision may. Help, so tell me if you still get this error.
Ryoma
Member
Posts: 77
Joined: January 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Ryoma » Tue May 26, 2009 7:41 pm

I don't think it's actually an issue anymore. My FoFiX is working fine now and my log doesn't produce any errors. I guess it was somehow related to the missing noterot declaration. So you don't have to check the code, I think it's fine now.
User avatar
cmsk8ter
Member
Posts: 211
Joined: February 8th, 2008
Location: Roswell
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby cmsk8ter » Tue May 26, 2009 7:45 pm

i have already posted what my FoFiX log thing said like three times. but now it doesnt have anything about shaders now that i updated to r1565 and i do have them on, it did crash though

Spoiler:(D) View: Push: GuitarSceneClient
(E) Loading error:Traceback (most recent call last):
File "C:\FoFiX\src\GameEngine.py", line 988, in main
self.view.render()
File "C:\FoFiX\src\View.py", line 216, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "C:\FoFiX\src\GuitarScene.py", line 9327, in render
bigFont.render(text, (.5 - w / 2, .45 - h / 2), scale = scale)
File "C:\FoFiX\src\Font.py", line 200, in render
glPushMatrix()
File "C:\Python26\lib\site-packages\OpenGL\error.py", line 194, in glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1283,
description = 'stack overflow',
baseOperation = glPushMatrix,
cArguments = ()
)

(D) 9 phrases taught.
(D) 10 phrases taught.
(N) Connection lost.
(D) View: Push: MessageScreen
(E) Loading error:Traceback (most recent call last):
File "C:\FoFiX\src\GameEngine.py", line 988, in main
self.view.render()
File "C:\FoFiX\src\View.py", line 216, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "C:\FoFiX\src\GuitarScene.py", line 5993, in render
SceneClient.render(self, visibility, topMost) #MFH - I believe this eventually calls the renderGuitar function, which also involves two viewports... may not be easy to move this one...
File "C:\FoFiX\src\Scene.py", line 286, in render
self.render3D()
File "C:\FoFiX\src\GuitarScene.py", line 4591, in render3D
self.stage.render(self.visibility)
File "C:\FoFiX\src\Stage.py", line 568, in render
self.renderBackground()
File "C:\FoFiX\src\Stage.py", line 504, in renderBackground
coord = (self.wFull/2,self.hFull/2))
File "C:\FoFiX\src\GameEngine.py", line 858, in drawImage
image.draw(color = color, rect = rect, lOffset = lOffset, rOffset = rOffset)
File "C:\FoFiX\src\Svg.py", line 609, in draw
glPushMatrix()
File "C:\Python26\lib\site-packages\OpenGL\error.py", line 194, in glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1283,
description = 'stack overflow',
baseOperation = glPushMatrix,
cArguments = ()
)

(E) Loading error:Traceback (most recent call last):
File "C:\FoFiX\src\GameEngine.py", line 988, in main
self.view.render()
File "C:\FoFiX\src\View.py", line 216, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "C:\FoFiX\src\GuitarScene.py", line 9327, in render
bigFont.render(text, (.5 - w / 2, .45 - h / 2), scale = scale)
File "C:\FoFiX\src\Font.py", line 194, in render
glPushMatrix()
File "C:\Python26\lib\site-packages\OpenGL\error.py", line 194, in glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1283,
description = 'stack overflow',
baseOperation = glPushMatrix,
cArguments = ()
)

Image
Ryoma
Member
Posts: 77
Joined: January 13th, 2008
Reputation: 0

Re: FoFiX v3.1xx development thread

Postby Ryoma » Tue May 26, 2009 8:00 pm

Try to narrow your problem down like I did (for me, the 3D notes did cause it). Change your settings, enable shaders, disable them again, change themes, change notes from 2D to 3D and back, and basically try finding the setting that's causing it.
Fenolftalein said he doesn't have a clue at the moment whats causing it and your error just tells him that shaders are broken at some point... not what exactly is broken.
If you want your problem to be fixed, you should try to narrow it down as much as possible.

EDIT: Nevermind... he does have a clue :rolleyes:
Last edited by Ryoma on Tue May 26, 2009 8:03 pm, edited 1 time in total.
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 May 26, 2009 8:01 pm

Ok, I've found where matrix stack is potentially can be full and may cause crash on some videocards.
Fixed! Tell me if it's not.
weirdpeople
Member
Posts: 1105
Joined: August 16th, 2008
Location: Texas
Reputation: 15
Contact:

Re: FoFiX v3.1xx development thread

Postby weirdpeople » Tue May 26, 2009 8:15 pm

its broke on mine i get a seg fault that's the log

Spoiler:

Code: Select all

(D) View: Push: GuitarSceneClient
(E) Loading error:Traceback (most recent call last):
  File "C:\Users\Matthew\Desktop\New Folder\src\GameEngine.py", line 988, in main
    self.view.render()
  File "C:\Users\Matthew\Desktop\New Folder\src\View.py", line 216, in render
    layer.render(self.visibility[layer], layer == self.layers[-1])
  File "C:\Users\Matthew\Desktop\New Folder\src\GuitarScene.py", line 5993, in render
    SceneClient.render(self, visibility, topMost) #MFH - I believe this eventually calls the renderGuitar function, which also involves two viewports... may not be easy to move this one...
  File "C:\Users\Matthew\Desktop\New Folder\src\Scene.py", line 286, in render
    self.render3D()
  File "C:\Users\Matthew\Desktop\New Folder\src\GuitarScene.py", line 4591, in render3D
    self.stage.render(self.visibility)
  File "C:\Users\Matthew\Desktop\New Folder\src\Stage.py", line 588, in render
    self.scene.renderGuitar()
  File "C:\Users\Matthew\Desktop\New Folder\src\GuitarScene.py", line 4611, in renderGuitar
    guitar.render(self.visibility, self.song, self.getSongPosition(), self.controls, self.killswitchEngaged[i])  #QQstarS: new
  File "C:\Users\Matthew\Desktop\New Folder\src\Guitar.py", line 2171, in render
    self.renderNotes(visibility, song, pos, killswitch)
  File "C:\Users\Matthew\Desktop\New Folder\src\Guitar.py", line 1275, in renderNotes
    self.renderNote(length, sustain = sustain, kill = killswitch, color = color, flat = flat, tailOnly = tailOnly, isTappable = isTappable, fret = event.number, spNote = spNote)
  File "C:\Users\Matthew\Desktop\New Folder\src\Guitar.py", line 951, in renderNote
    glRotatef(Theme.noterotdegrees, 0, 0, Theme.noterot[fret])
AttributeError: 'module' object has no attribute 'noterot'

(D) 9 phrases taught.
(D) 10 phrases taught.
(N) Connection lost.
(D) View: Push: MessageScreen

Developer of clone hero, and Former FoFiX developer
User avatar
cmsk8ter
Member
Posts: 211
Joined: February 8th, 2008
Location: Roswell
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby cmsk8ter » Tue May 26, 2009 8:25 pm

mine doesnt crash anymore but it still doesnt shhow anything about the shaders and they still don't work. am i supposed to have ctypes?
Image
User avatar
Azzco
Member
Posts: 1308
Joined: August 15th, 2007
Location: Trelleborg, Scania, Sweden
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby Azzco » Tue May 26, 2009 8:27 pm

cmsk8ter wrote:mine doesnt crash anymore but it still doesnt shhow anything about the shaders and they still don't work. am i supposed to have ctypes?

Yes
Image
(k)Ubuntu 8.10 skyscraper 2.6.27-11-generic i686 GNU/Linux KDE 4.2.0
It's not like I dislike sleeping, I really do like it to be honest. It's the whole wake up/go to sleep business I don't like.
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 May 26, 2009 8:33 pm

cmsk8ter wrote:mine doesnt crash anymore but it still doesnt shhow anything about the shaders and they still don't work. am i supposed to have ctypes?

Did shaders work before?
weirdpeople
Member
Posts: 1105
Joined: August 16th, 2008
Location: Texas
Reputation: 15
Contact:

Re: FoFiX v3.1xx development thread

Postby weirdpeople » Tue May 26, 2009 8:53 pm

fenolftalein wrote:
cmsk8ter wrote:mine doesnt crash anymore but it still doesnt shhow anything about the shaders and they still don't work. am i supposed to have ctypes?

Did shaders work before?

ewhat ever you did in r1567 it fixed my problem and r1568 works too
Developer of clone hero, and Former FoFiX developer
User avatar
cmsk8ter
Member
Posts: 211
Joined: February 8th, 2008
Location: Roswell
Reputation: 0
Contact:

Re: FoFiX v3.1xx development thread

Postby cmsk8ter » Tue May 26, 2009 8:55 pm

fenolftalein wrote:Did shaders work before?


nope but i have python 2.6 i cant find ctypes for python 2.6
Image
Blue Heaven!
User avatar
death_au
Member
Posts: 3991
Joined: December 12th, 2007
Location: Australia
Reputation: 7
Contact:

Re: FoFiX v3.1xx development thread

Postby death_au » Tue May 26, 2009 8:58 pm

cmsk8ter wrote:
fenolftalein wrote:Did shaders work before?


nope but i have python 2.6 i cant find ctypes for python 2.6

That's because ctypes is included in py 2.6
you have it already

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 30 guests