Career Error/crash ! !

Discussion particular to FoFiX, its development, and themes
Forum rules
This topic is 13 years and 3 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
Naffbeats
Member
Posts: 2
Joined: July 29th, 2010
Reputation: 0

Career Error/crash ! !

Postby Naffbeats » Mon Oct 11, 2010 6:21 am

Hi, I've been a user of FoFiX for quite some time now and have hardly had any problems with it until i started using the career mode. Everything is fine until i get to the song listing screen. If i scroll down past the unlocked songs onto a song marked as locked i get the following error:

AttributeError: "str" object has no attribute 'width1'

Then i get taken back to the main menu, i then have to reset my song directory to be able to get back into the career mode.

Please help as it can be a bit frustrating when going down the menu and slipping onto a locked song. :)

Keep up the good work, looking forward to version 4. :2thumbsup:
FoFiX Dev/Mod Squad
User avatar
jstump91
Member
Posts: 837
Joined: September 21st, 2008
Location: Baltimore, MD (US)
Reputation: 0
Contact:

Re: Career Error/crash ! !

Postby jstump91 » Mon Oct 11, 2010 2:40 pm

Please read the parts of this thread that involve telling us what version you are running and giving us the logfile for when the error occurs.
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?
Darkblood18
Member
Posts: 5
Joined: December 20th, 2010
Reputation: 0

Re: Career Error/crash ! !

Postby Darkblood18 » Sat Dec 25, 2010 10:00 pm

Same problem here.

You can scroll down songs ok, as long as you keep away from the locked ones. You try to go into the locked part and the game crashes. This only happens in Career mode, quickplay runs fine.

The relevant log part:

Spoiler:[ 0.000000] (D) Logging initialized: Sun Dec 26 00:51:32 2010
[ 0.312000] (D) Checking MIDI output ports for a wavetable or synth for sound generation...
[ 0.312000] (D) MIDI output port count = 1
[ 0.312000] (D) MIDI Output port 0 found: Microsoft GS Wavetable Synth
[ 0.374000] (D) GameEngine class init (GameEngine.py)...
[ 0.374000] (D) FoFiX v3.121 Final starting up...
[ 0.374000] (D) pygame version: 1.9.1release-svn2575
[ 0.374000] (D) Initializing audio.
[ 0.595000] (D) Audio configuration: (44100, -16, 2)
[ 0.643000] (D) Initializing pygame.mixer & audio system at 44100 Hz.
[ 0.644000] (D) Initializing video.
[ 2.046000] (D) Compiling shader "stage" from data\shaders\lightning.vert and data\shaders\lightning.frag.
[ 2.083000] (D) Compiling shader "sololight" from data\shaders\lightning.vert and data\shaders\lightning.frag.
[ 2.103000] (D) Compiling shader "tail" from data\shaders\lightning.vert and data\shaders\lightning.frag.
[ 2.114000] (D) Compiling shader "tail2" from data\shaders\rockbandtail.vert and data\shaders\rockbandtail.frag.
[ 2.123000] (D) Compiling shader "notes" from data\shaders\metal.vert and data\shaders\metal.frag.
[ 2.158000] (D) Compiling shader "neck" from data\shaders\neck.vert and data\shaders\neck.frag.
[ 2.165000] (D) Compiling shader "cd" from data\shaders\cd.vert and data\shaders\cd.frag.
[ 2.185000] (D) 0 joysticks found.
[ 2.187000] (W) No MIDI input ports found.
[ 2.697000] (D) 9 guitscw sounds found in themes\Grunge2\sounds: guitscw1.ogg - guitscw9.ogg
[ 2.721000] (D) 8 bassscw sounds found in themes\Grunge2\sounds: bassscw1.ogg - bassscw8.ogg
[ 2.744000] (D) 8 drumscw sounds found in sounds: drumscw1.ogg - drumscw8.ogg
[ 2.774000] (D) 10 accept sounds found in themes\Grunge2\sounds: accept1.ogg - accept10.ogg
[ 2.860000] (D) 9 guitscw sounds found in themes\Grunge2\sounds: guitscw1.ogg - guitscw9.ogg
[ 3.031000] (W) Grunge2\soundsattleused.ogg not found -- using staractive.ogg instead.
[ 3.075000] (W) Grunge2\sounds
escue.ogg not found -- using staractivate.ogg instead.
[ 3.085000] (W) Grunge2\sounds\coopfail.ogg not found -- using stardeactivate.ogg instead
[ 3.093000] (D) Default animated stage for Grunge2 theme = Normal
[ 3.134000] (D) Ready.
[ 5.716000] (D) View: Push: MainMenu
[ 5.716000] (D) View: Push: Menu
[ 7.368000] (D) Graphic menu enabled for submenu: solo
[ 7.369000] (D) View: Push: Menu
[ 9.488000] (D) View: Push: ControlActivator
[ 10.302000] (D) View: Pop: ControlActivator
[ 10.322000] (D) Starting server.
[ 10.322000] (D) Connecting to host 127.0.0.1.
[ 10.322000] (D) View: Pop all
[ 10.322000] (D) View: Pop: MainMenu
[ 10.323000] (D) View: Pop: Menu
[ 10.323000] (D) View: Pop: Menu
[ 10.323000] (D) View: Pop: MainMenu
[ 10.323000] (D) Session #1 connected.
[ 10.335000] (D) View: Pop: Menu
[ 11.435000] (D) View: Push: Lobby
[ 11.435000] (D) Connected as session #1.
[ 12.288000] (D) 1 phrases taught.
[ 12.290000] (D) 2 phrases taught.
[ 12.290000] (D) Learned about World.CreatePlayer, 1 phrases now known.
[ 12.319000] (D) 1 phrases taught.
[ 12.336000] (D) Learned about World.PlayerJoined, 1 phrases now known.
[ 12.336000] (D) Learned about World.StartGame, 2 phrases now known.
[ 12.337000] (D) 2 phrases taught.
[ 12.337000] (D) 3 phrases taught.
[ 12.338000] (D) 4 phrases taught.
[ 12.338000] (D) 5 phrases taught.
[ 12.353000] (D) Learned about World.GameStarted, 2 phrases now known.
[ 12.369000] (D) View: Pop: Lobby
[ 12.386000] (D) Learned about World.SceneCreated, 3 phrases now known.
[ 12.403000] (D) Song select submenu position tuple: (0.19500000000000001, 0.085000000000000006)
[ 12.419000] (D) Learned about World.EnterScene, 4 phrases now known.
[ 12.452000] (D) Learned about World.SceneEntered, 5 phrases now known.
[ 12.469000] (D) View: Push: SongChoosingSceneClient
[ 12.470000] (D) Songlist artist colors: (0.25098039215686274, 0.50196078431372548, 1.0) / (0.25098039215686274, 0.50196078431372548, 1.0)
[ 12.470000] (D) song_cd_xpos found: None
[ 12.470000] (D) song_cdscore_xpos found: None
[ 12.470000] (D) song_list_xpos found: 0.12
[ 12.470000] (D) song_listscore_xpos found: 0.8
[ 12.470000] (D) song_listcd_cd_xpos found: 0.78
[ 12.470000] (D) song_listcd_cd_ypos found: 0.615
[ 12.470000] (D) song_listcd_score_xpos found: 0.6
[ 12.470000] (D) song_listcd_score_ypos found: 0.515
[ 12.470000] (D) song_listcd_list_xpos found: 0.1
[ 12.470000] (D) Dialogs.loadCollection() function call...
[ 12.470000] (D) View: Push: LoadingSplashScreen
[ 12.489000] (D) Song.getAvailableLibraries function call...library = E:\Jogos\Songs
[ 12.492000] (D) Dialogs.libraryListLoaded() function call...
[ 12.494000] (D) Dialogs.py: Finished inserting blank spaces in self.songs.
[ 12.494000] (D) Dialogs.py: Finished filtering doubled blank spaces in self.songs.
[ 12.494000] (D) Dialogs.songListLoaded.
[ 12.540000] (D) View: Pop: LoadingSplashScreen
[ 13.338000] (D) View: Push: SongChooser
[ 14.155000] (D) New library selected: E:\Jogos\Songs\GuitarHero
[ 14.155000] (D) Dialogs.loadCollection() function call...
[ 14.155000] (D) View: Push: LoadingSplashScreen
[ 14.175000] (D) Song.getAvailableLibraries function call...library = E:\Jogos\Songs\GuitarHero
[ 14.178000] (D) Dialogs.libraryListLoaded() function call...
[ 14.286000] (D) Dialogs.py: Inserted blank space in self.songs list before Axe-Grinders
[ 14.286000] (D) Dialogs.py: Inserted blank space in self.songs list before Thrash and Burn
[ 14.286000] (D) Dialogs.py: Inserted blank space in self.songs list after End of Career
[ 14.286000] (D) Dialogs.py: Finished inserting blank spaces in self.songs.
[ 14.286000] (D) Dialogs.py: Finished filtering doubled blank spaces in self.songs.
[ 14.286000] (D) Dialogs.songListLoaded.
[ 14.332000] (D) View: Pop: LoadingSplashScreen
[ 29.367000] (E) Loading error:
Traceback (most recent call last):
File "GameEngine.pyo", line 1022, in main
File "View.pyo", line 216, in render
File "Dialogs.pyo", line 2632, in render
AttributeError: 'str' object has no attribute 'width1'

[ 29.367000] (E) AttributeError, <type 'exceptions.AttributeError'>: 'str' object has no attribute 'width1'
Traceback (most recent call last):
File "GameEngine.pyo", line 1047, in run
File "GameEngine.pyo", line 1022, in main
File "View.pyo", line 216, in render
File "Dialogs.pyo", line 2632, in render
AttributeError: 'str' object has no attribute 'width1'

[ 29.367000] (D) View: Pop all
[ 29.367000] (D) View: Pop: SongChoosingSceneClient
[ 29.367000] (D) View: Pop: SongChooser
[ 29.367000] (D) Disconnecting.
[ 29.367000] (N) Connection lost.
[ 29.367000] (D) View: Push: MessageScreen
[ 29.378000] (E) Loading error:
Traceback (most recent call last):
File "GameEngine.pyo", line 1022, in main
File "View.pyo", line 216, in render
File "Dialogs.pyo", line 2632, in render
AttributeError: 'str' object has no attribute 'width1'

[ 29.378000] (E) Recursive exception:
Traceback (most recent call last):
File "GameEngine.pyo", line 1047, in run
File "GameEngine.pyo", line 1022, in main
File "View.pyo", line 216, in render
File "Dialogs.pyo", line 2632, in render
AttributeError: 'str' object has no attribute 'width1'

[ 29.378000] (E) Loading error:
Traceback (most recent call last):
File "GameEngine.pyo", line 1020, in main
File "Engine.pyo", line 136, in run
File "Engine.pyo", line 124, in _runTask
File "SongChoosingScene.pyo", line 170, in run
File "Dialogs.pyo", line 5356, in chooseSong
File "Dialogs.pyo", line 5313, in _runDialog
File "GameEngine.pyo", line 1077, in run
File "GameEngine.pyo", line 806, in disconnect
File "Engine.pyo", line 79, in removeTask
File "Session.pyo", line 157, in stopped
File "Network.pyo", line 144, in close
File "Network.pyo", line 152, in handle_close
File "Session.pyo", line 208, in handleClose
File "Session.pyo", line 66, in signalMessage
File "Session.pyo", line 87, in handleMessage
File "GameTask.pyo", line 72, in handleConnectionLost
File "Dialogs.pyo", line 5472, in showMessage
File "Dialogs.pyo", line 5313, in _runDialog
File "GameEngine.pyo", line 1064, in run
SystemExit: 1



I´m runnig FoFix v3.121 on a Windows 7. The problem happens with all careers, some that I created and some downloaded around (like puppetz´ ones), so I´m guessing is not a problem with the title.ini file
back from the dead
User avatar
thebocaj
Member
Posts: 1085
Joined: January 30th, 2009
Reputation: 19

Re: Career Error/crash ! !

Postby thebocaj » Sat Dec 25, 2010 10:15 pm

My guess would be something related to the theme you're using. I don't have much experience when it comes to themes, but that'd be my first guess. Try using a different theme and see if that helps.
Image
My Charts:
I · II · III · IV · V · VI · Clone Hero conversions
Darkblood18
Member
Posts: 5
Joined: December 20th, 2010
Reputation: 0

Re: Career Error/crash ! !

Postby Darkblood18 » Sat Dec 25, 2010 10:47 pm

It´s not the theme as it happens in them all (including MegaLight), but you made me find it.

The problem seems to be in the Setlist options, you can choose how the setlist will be displayed with the following options:

By Theme
RB2
CD
List
List/CD

All of them work fine except "List/CD", this one is causing the crash above in all Themes I´ve have (about 10 of them). It seems to me that in List/CD mode there´s no place to display the locked text (the one saying something along the lines of "finish your first show to unlock this song!")

Workarounds?
login_ms
Member
Posts: 36
Joined: November 4th, 2008
Reputation: 0

Re: Career Error/crash ! !

Postby login_ms » Tue Jan 04, 2011 3:09 pm

Hi,

I can confirm that this happens using the setlist List/CD view. And of course in career mode only.
Something goes wrong with loading the label for the selected song. I suspect the cause in the functions updateselection and loaditemlabel in Dialogs.py.
Seems to be a special treatment for the list/CD-Mode where it leads to an empty label for the song in case of being locked.
Other list modes (e.g. RB2) shows a standard label in this case.

I'm not a python developer and don't know much more about fofix programming than some interested looks revealed - maybe one of the experts can follow this trail.
I think the List/CD-setlist is one of the best...

Kind regards
Darkblood18
Member
Posts: 5
Joined: December 20th, 2010
Reputation: 0

Re: Career Error/crash ! !

Postby Darkblood18 » Tue Jan 11, 2011 5:05 pm

login_ms wrote:I think the List/CD-setlist is one of the best...


I second that :tongue:

Cheers

Return to “FoFiX”

Who is online

Users browsing this forum: No registered users and 18 guests