FoFiX 4.0.0 Development Thread

Discussion particular to FoFiX, its development, and themes
Forum rules
This topic is 2 years and 4 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
space warrior
User avatar
akedrou
Member
Posts: 557
Joined: December 3rd, 2008
Location: Boulder
Reputation: 1
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby akedrou » Wed Oct 07, 2009 7:08 am

evilbobthebob wrote:New theme changes are interesting. I understand why you've moved to a Python file for themes, it's a lot more verastile etc, but at the same time it may put a lot of people off from making themes. Only time will tell I suppose.

Not to worry - you can still do the "old" style of theme making - it's only a little bit more scary for being in Python!

---AND MORE!---

here's an example of the change.

theme.ini

Code: Select all

[theme]
menu_x = 0.6
menu_y = 0.4
selected_color = #FFBF00
loading_phrase = i-can't-use-underscores._Rock and roll?
lobby_title_font = font
can become CustomTheme.py

Code: Select all

from Theme import *
class CustomTheme(Theme):
  def __init__(self, name, path, iniFile = False):
    Theme.__init__(self, name, path, iniFile)
    self.menuX = 0.6
    self.menuY = 0.4
    self.selectedColor = self.hexToColor("#FFBF00")
    #OR
    self.selectedColor = (1, .75, 0)
    self.loadingPhrase = ["I_can_use_underscores!", "Rock and roll?"]
    self.lobbyTitleFont = "font"

That's it! Those first four lines are all you need. Copy and paste. Just a few formatting changes other than that to get used to. Of course if you want to do more, you can do a lot more... but that isn't so bad, is it? Just don't forget to quote and indent!

...And of course, that format isn't final - when it is it will be all over the "how to make a theme" bits - but if any theme makers are feeling worried about the changes, you at least know that that is how it works right now and is roughly where we're headed. (And you'll note your theme.ini files still work (mostly)!)
FoFiX dev | Troublemaker | Malcontent
User avatar
ADH
Member
Posts: 1971
Joined: February 18th, 2008
Location: My House
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby ADH » Wed Oct 07, 2009 11:36 am

Looks sweet... I was wondering what you had in mind for that. Now i know :2thumbsup:
User avatar
bruce142
Member
Posts: 72
Joined: August 16th, 2008
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby bruce142 » Wed Oct 07, 2009 1:51 pm

I'm getting this error if I choose both career and quickplay to play with. (OverflowError: long int too large to convert to int). FoFiX returns back at the main menu after the setlist loading (I'm getting a the options screen then with the error message). I'm using Worldrave's GH3 theme with the latest revision both FoFiX and the GH3 theme. Here is my log file:


(D) Initializing song cache.
(D) Checking MIDI output ports for a wavetable or synth for sound generation...
(D) MIDI output port count = 1
(D) MIDI Output port 0 found: Microsoft GS Wavetable-software
(D) GameEngine class init (GameEngine.py)...
(D) FoFiX v4.0.0 development (r1933) starting up...
(D) Python version: 2.4.5
(D) Pygame version: 1.9.0release-svn2553
(D) PyOpenGL version: 3.0.0
(D) Numpy version: 1.2.1
(D) PIL version: 1.1.6
(D) Initializing audio.
(D) Audio configuration: (44100, -16, 2)
(D) Initializing pygame.mixer & audio system at 44100 Hz.
(D) Initializing video.
(D) Compiling shader "stage" from ..\data\shaders\lightning.vert and ..\data\shaders\lightning.frag.
(D) Compiling shader "sololight" from ..\data\shaders\lightning.vert and ..\data\shaders\lightning.frag.
(D) Compiling shader "tail" from ..\data\shaders\lightning.vert and ..\data\shaders\lightning.frag.
(D) Compiling shader "tail2" from ..\data\shaders\rockbandtail.vert and ..\data\shaders\rockbandtail.frag.
(D) Compiling shader "notes" from ..\data\shaders\metal.vert and ..\data\shaders\metal.frag.
(D) Compiling shader "neck" from ..\data\shaders\neck.vert and ..\data\shaders\neck.frag.
(D) Compiling shader "cd" from ..\data\shaders\cd.vert and ..\data\shaders\cd.frag.
(D) 0 joysticks found.
(W) No MIDI input ports found.
(D) Star ding sound not found, loading another sound.
(W) Guitar Hero III/sounds/starpowerready.ogg not found -- using starpower.ogg instead.
(W) Guitar Hero III/sounds/crowdcheers.ogg not found -- using data/sounds/crowdcheers.ogg instead.
(W) Guitar Hero III/sounds/staractivate.ogg not found -- using starpower.ogg instead.
(W) Guitar Hero III/sounds/battleused.ogg not found -- using starpower.ogg instead.
(W) Guitar Hero III/sounds/stardeactivate.ogg not found -- sound disabled.
(W) Guitar Hero III/sounds/rescue.ogg not found -- using starpower.ogg instead.
(W) Guitar Hero III/sounds/coopfail.ogg not found -- using back1.ogg instead
(D) 9 guitscw sounds found in themes\Guitar Hero III\sounds: guitscw1.ogg - guitscw9.ogg
(D) Default animated stage for Guitar Hero III theme = Normal
(D) Ready.
(D) 6 bassscw sounds found in sounds: bassscw1.ogg - bassscw6.ogg
(D) 8 drumscw sounds found in sounds: drumscw1.ogg - drumscw8.ogg
(D) 3 accept sounds found in themes\Guitar Hero III\sounds: accept1.ogg - accept3.ogg
(D) 2 back sounds found in themes\Guitar Hero III\sounds: back1.ogg - back2.ogg
(D) 9 guitscw sounds found in themes\Guitar Hero III\sounds: guitscw1.ogg - guitscw9.ogg
(D) View: Push: MainMenu
(D) View: Push: Menu
(D) View: Push: ControlActivator
(D) View: Pop: ControlActivator
(D) View: Pop all
(D) View: Pop: MainMenu
(D) View: Pop: Menu
(D) View: Pop: Menu
(D) View: Push: Lobby
(D) View: Pop: MainMenu
(D) View: Push: LoadingSplashScreen
(E) SongChoosingScene creation failed: Traceback (most recent call last):
File "G:\Program Files\FoFiX SVN\src\World.py", line 77, in createScene
scene = SceneFactory.create(engine = self.engine, name = name, **args)
File "G:\Program Files\FoFiX SVN\src\SceneFactory.py", line 38, in create
return getattr(m, name)(engine = engine, **args)
File "G:\Program Files\FoFiX SVN\src\SongChoosingScene.py", line 160, in __init__
self.engine.data.loadAllImages(self, os.path.join("themes",themename,"setlist"))
File "G:\Program Files\FoFiX SVN\src\Data.py", line 653, in loadAllImages
img = self.loadImgDrawing(target, name, os.path.join(directory, file), textureSize, dirLoad = True)
File "G:\Program Files\FoFiX SVN\src\Data.py", line 620, in loadImgDrawing
imgDrawing = self.getImgDrawing(fileName, dirLoad = dirLoad)
File "G:\Program Files\FoFiX SVN\src\Data.py", line 584, in getImgDrawing
imgDrawing = ImgDrawing(self.svg, fileName1)
File "G:\Program Files\FoFiX SVN\src\Svg.py", line 111, in __init__
self.texture = Texture(ImgData)
File "G:\Program Files\FoFiX\src\Texture.py", line 67, in __init__
self.loadFile(name)
File "G:\Program Files\FoFiX\src\Texture.py", line 71, in loadFile
self.loadImage(Image.open(name))
File "G:\Python24\Lib\site-packages\PIL\Image.py", line 1912, in open
return factory(fp, filename)
File "G:\Python24\Lib\site-packages\PIL\ImageFile.py", line 82, in __init__
self._open()
File "G:\Python24\Lib\site-packages\PIL\FpxImagePlugin.py", line 63, in _open
self.ole = OleFileIO(self.fp)
File "G:\Python24\Lib\site-packages\PIL\OleFileIO.py", line 260, in __init__
self.open(filename)
File "G:\Python24\Lib\site-packages\PIL\OleFileIO.py", line 293, in open
self.loaddirectory(i32(header, 48))
File "G:\Python24\Lib\site-packages\PIL\OleFileIO.py", line 339, in loaddirectory
fp = self._open(sect)
File "G:\Python24\Lib\site-packages\PIL\OleFileIO.py", line 405, in _open
self.sectorsize, self.fat)
File "G:\Python24\Lib\site-packages\PIL\OleFileIO.py", line 106, in __init__
sect = fat[sect]
OverflowError: long int too large to convert to int
User avatar
worldrave
Member
Posts: 1363
Joined: August 8th, 2007
Location: GA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby worldrave » Wed Oct 07, 2009 2:50 pm

we appreciate u meaning well by telling us something is broke, but thats why we have said more then a fair amount of times to expect things to get broken with new 4.0.There are TONS of new coding being done as well as TONS of cleaning being done in this release, and the team is always working hard at keeping things in working order, but no matter what, this is expected so just resort to 3.120 final for now if this isn't convenient to wait, and most of the time these problems wont last long before it's fixed. you support is appreciated though. hang in there.
Dr. Professor Logic
User avatar
Lysdestic
Member
Posts: 2939
Joined: December 14th, 2007
Reputation: 7
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby Lysdestic » Wed Oct 07, 2009 5:37 pm

It isn't even necessary to revert to 3.120 if you are testing. Simply report the bug (preferably on the tracker and do an svn rollback to a working revision until the problem is solved.
User avatar
worldrave
Member
Posts: 1363
Joined: August 8th, 2007
Location: GA
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby worldrave » Wed Oct 07, 2009 6:50 pm

I was just saying, since we agree'd for users not to post bugs here and rather to post them on the issue's tracker, and that we already mentioned to the users to expect bugs and breakage is all. But more and more it seems that if people can't follow guidelines already posted in the 1st topic, they aren't really candidates for testers. That's all i meant by above. :wink: He sounded like he was confused at why he was getting an error when trying SVN builds, it's gonna happen at times.
Uncle Fester
User avatar
slantyr
Member
Posts: 759
Joined: March 10th, 2008
Location: the great white north
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby slantyr » Wed Oct 07, 2009 7:06 pm

i just had a thought but don't know where to post it so here's as good as anywhere

for the new que feature why not use the bule and orange fret buttons,

if you select your difficulty/instrument in the lobby that's the scores that display

there's already plans for a "more info" section so this would be a non issue
Image
weirdpeople
Member
Posts: 1105
Joined: August 16th, 2008
Location: Texas
Reputation: 15
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby weirdpeople » Wed Oct 07, 2009 7:12 pm

there should be a part mode like in guitar hero 5 where you can drop in and out on any instrument during the song
Developer of clone hero, and Former FoFiX developer
Bridged To The Sun.
User avatar
acrox999
Member
Posts: 3597
Joined: March 22nd, 2008
Location: /opt/bin/fretsonfire
Reputation: 1
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby acrox999 » Thu Oct 08, 2009 12:22 am

I think there's something wrong with animated hitflames. I'm using WR GHIII theme. Sometimes it appears but sometimes its not. I don't know how to reproduce this problem. BTW, the note streak counter should appear when we have reached 27 notes, I think, for GHIII.
User avatar
fatdog
Member
Posts: 494
Joined: August 11th, 2006
Location: UK
Reputation: 1

Re: FoFiX 4.0.0 Development Thread

Postby fatdog » Thu Oct 08, 2009 3:37 am

last few revisions i haven't been able to launch, have the required modules for 2.4 changed?
i get this in the console and it closes before reaching the first menu

C:\fofix\latest build\src>python fofix.py
Traceback (most recent call last):
File "fofix.py", line 290, in ?
main()
File "fofix.py", line 140, in main
engine = GameEngine(config)
File "C:\fofix\latest build\src\GameEngine.py", line 482, in __init__
Log.debug("PyOpenGL version: " + OpenGL.__version__)
NameError: global name 'OpenGL' is not defined
Image
space warrior
User avatar
akedrou
Member
Posts: 557
Joined: December 3rd, 2008
Location: Boulder
Reputation: 1
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby akedrou » Thu Oct 08, 2009 4:07 am

fatdog wrote:last few revisions i haven't been able to launch, have the required modules for 2.4 changed?
i get this in the console and it closes before reaching the first menu

C:\fofix\latest build\src>python fofix.py
Traceback (most recent call last):
File "fofix.py", line 290, in ?
main()
File "fofix.py", line 140, in main
engine = GameEngine(config)
File "C:\fofix\latest build\src\GameEngine.py", line 482, in __init__
Log.debug("PyOpenGL version: " + OpenGL.__version__)
NameError: global name 'OpenGL' is not defined

Should be fixed now.
FoFiX dev | Troublemaker | Malcontent
Mr. Fansonfire
User avatar
lordhardware
Member
Posts: 1600
Joined: November 2nd, 2008
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby lordhardware » Thu Oct 08, 2009 4:27 am

acrox999 wrote:I think there's something wrong with animated hitflames. I'm using WR GHIII theme. Sometimes it appears but sometimes its not. I don't know how to reproduce this problem. BTW, the note streak counter should appear when we have reached 27 notes, I think, for GHIII.


you shouldnt be using an older theme for alpha testing... some things will get broke and noones upgrading the gh3 theme to follow until the 4 is final
WIP:
"Check Your Hardware: Modern Hits" 11/20
"Check Your Hardware: Australian Anthems" 4/20
"Check Your Hardware: Alternative" 4/20
"Check Your Hardware: Classic Beats" 2/20
"Check Your Hardware: Electronic" 2/10
"Check Your Hardware: Rap" 1/10
Dared00
Member
Posts: 188
Joined: August 27th, 2008
Location: Poland
Reputation: 0

Re: FoFiX 4.0.0 Development Thread

Postby Dared00 » Thu Oct 08, 2009 9:27 am

lordhardware wrote:
acrox999 wrote:I think there's something wrong with animated hitflames. I'm using WR GHIII theme. Sometimes it appears but sometimes its not. I don't know how to reproduce this problem. BTW, the note streak counter should appear when we have reached 27 notes, I think, for GHIII.


you shouldnt be using an older theme for alpha testing... some things will get broke and noones upgrading the gh3 theme to follow until the 4 is final

This is also happening in final version.
Mr. Fansonfire
User avatar
lordhardware
Member
Posts: 1600
Joined: November 2nd, 2008
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby lordhardware » Thu Oct 08, 2009 9:56 am

...4.000 isnt final

if he's talking about 3.120 he's in the wrong section
WIP:
"Check Your Hardware: Modern Hits" 11/20
"Check Your Hardware: Australian Anthems" 4/20
"Check Your Hardware: Alternative" 4/20
"Check Your Hardware: Classic Beats" 2/20
"Check Your Hardware: Electronic" 2/10
"Check Your Hardware: Rap" 1/10
I'm Brazilian
User avatar
Italo_Hellboy
Member
Posts: 195
Joined: June 23rd, 2008
Reputation: 0
Contact:

Re: FoFiX 4.0.0 Development Thread

Postby Italo_Hellboy » Thu Oct 08, 2009 12:01 pm

fofix can't find my songs

I set the path to the folder with the songs but when I select the music he
not find the files

example


defined path: C:/fretsonfire/songs/

if I select the song Enter Sandman: C:/fretsonfire/songs/Metallica - Enter Sandman/

he tries to find C:/fretsonfire/s/Metallica - Enter Sandman/guitar.ogg
Sorry for bad english !! I'm Brazilian
Image

Return to “FoFiX”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests