Closed GoogleCodeExporter closed 9 years ago
more testing
i think i found the command that unlocks the setlist
self.setlist = CustomSetlist(self)
now i am getting this error
(E) Recursive exception:Traceback (most recent call last):
File "E:\FoF\fofix py2.6\src\GameEngine.py", line 1116, in run
return self.mainloop()
File "E:\FoF\fofix py2.6\src\GameEngine.py", line 1091, in main
self.view.render()
File "E:\FoF\fofix py2.6\src\View.py", line 256, in render
layer.render(self.visibility[layer], layer == self.layers[-1])
File "E:\FoF\fofix py2.6\src\SongChoosingScene.py", line 932, in render
self.renderSetlist(visibility, topMost)
File "E:\FoF\fofix py2.6\src\SongChoosingScene.py", line 885, in renderSetlist
self.engine.theme.setlist.renderAlbumArt(self)
File "E:\FoF\fofix py2.6\src\Theme.py", line 2029, in renderAlbumArt
scene.camera.origin = (-10 + offset, -scene.cameraOffset, 4 -
self.song_cd_xpos + offset)
AttributeError: CustomSetlist instance has no attribute 'song_cd_xpos'
Original comment by slan...@gmail.com
on 9 Oct 2009 at 12:58
finally, i'm starting to get somewhere
in the custom setlist section can we please use hex color codes instead of the
(0,0,0) method
Original comment by slan...@gmail.com
on 9 Oct 2009 at 1:14
well... All you can do at the moment is copy and paste your theme.ini values
into the
new form... The new render methods are inherently much more complicated, as you
are
literally programming python. The setlist bit is not completed yet, thus your
errors
(but the one above is because you did not properly copy all the values in
setlist. If
you do not, in your custom setlist's __init__, call to Setlist.__init__(self,
theme),
you need to make sure you have set every variable used in the default Setlist
in your
__init__. Without manually recoding the Python rendering, there is no reason to
create a specially custom setlist - especially before we have finalized
anything in
there. If this persists after we finalize things, then we will return to this.
As for the colors, you can always convert hex to decimal by calling the theme's
hexToColor method - in the theme part as "self.hexToColor(hexcolor)" and in the
extended parts (such as Setlist) as "self.theme.hexToColor(hexcolor)".
Original comment by aked...@gmail.com
on 10 Oct 2009 at 4:23
Original issue reported on code.google.com by
slan...@gmail.com
on 8 Oct 2009 at 8:04