Gamer125 / fofix

Automatically exported from code.google.com/p/fofix
0 stars 0 forks source link

none of the setlist controls appear to work in the customtheme.py #1039

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem. What did you expect? What do you see?
no matter what settings are used the setlist is list mode for gh themes 
with gh3 default settings for position and color and a static background 
image scrolls, rb2 theme has the rb2 setlist working with no album art.
(didn't make a customtheme.py for rb2)but did move all the setlist files 
to a setlist folder

List the steps to recreate the problem.
1.try to set the font colors or positions
2.try to select a layout other than theme default
3.try to set anything to do with the setlist really

What version are you using? Include the FoFiX version, the Python version,
your operating system, and whether it is SVN (alpha), beta, RC, or final
release.
2.6 alpha r1937

Did you read the wiki on how to report bugs, conveniently called
ReportingBugs? If this is a bug report, please include the log file!

Please provide any additional information below.
i followed all the instructions given but, this new method is very 
involved and complex, i have everything but the setlist working with no 
theme.ini, but i've been pulling my hair out 
got all the setting names from the theme.py and songchoosingscene.py

Original issue reported on code.google.com by slan...@gmail.com on 8 Oct 2009 at 8:04

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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