Kraitos
unread,May 7, 2011, 2:19:33 PM5/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to endgame-singularity
I've installed Singularity 0.30b on Ubuntu 11.04 and I am getting a
strange bug - nearly half of the in-game buttons show a main menu when
clicked. I.e. "finance" button, or "Items" in "Knowledge".
The following messages are printed in the console at the same time:
Exception in function show at Sat May 7 22:18:24 2011 MSD:
Traceback (most recent call last):
File "/usr/share/games/singularity/code/safety.py", line 58, in
safe_call
return func(*args, **kwargs)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
200, in show
result = self.handle(event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
327, in handle
return self.call_handlers(handlers, event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
339, in call_handlers
handler(event)
File "/usr/share/games/singularity/code/graphics/button.py", line
111, in handle_event
self.activate_with_sound(event)
File "/usr/share/games/singularity/code/graphics/button.py", line
124, in activate_with_sound
self.activated(event)
File "/usr/share/games/singularity/code/graphics/button.py", line
153, in activated
self.function(*self.args, **self.kwargs)
File "/usr/share/games/singularity/code/graphics/button.py", line
201, in show_dialog
raise constants.Handled, dialog.call_dialog(self.dialog, self)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
94, in call_dialog
retval = dialog.show()
File "/usr/share/games/singularity/code/screens/knowledge.py", line
201, in show
return super(KnowledgeScreen, self).show()
File "/usr/share/games/singularity/code/graphics/dialog.py", line
200, in show
result = self.handle(event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
327, in handle
return self.call_handlers(handlers, event)
File "/usr/share/games/singularity/code/graphics/dialog.py", line
339, in call_handlers
handler(event)
File "/usr/share/games/singularity/code/graphics/listbox.py", line
83, in on_click
self.list_pos = self.safe_pos(index + self.scrollbar.scroll_pos)
File "/usr/share/games/singularity/code/graphics/widget.py", line
51, in set
setattr(self, data_member, my_value)
File "/usr/share/games/singularity/code/graphics/widget.py", line
52, in set
call_me(self, *args, **kwargs)
File "/usr/share/games/singularity/code/graphics/listbox.py", line
208, in _on_selection_change
self.update_func(self.list_pos)
File "/usr/share/games/singularity/code/screens/knowledge.py", line
122, in set_knowledge_type
self.set_knowledge(0)
File "/usr/share/games/singularity/code/screens/knowledge.py", line
133, in set_knowledge
self.knowledge_inner_list_key[list_pos])
File "/usr/share/games/singularity/code/screens/knowledge.py", line
181, in show_info
desc_text += g.to_percent(g.items[knowledge_key].item_qual)
File "/usr/share/games/singularity/code/g.py", line 268, in
to_percent
return locale.format("%.2f%%", raw_percent /
100.).decode(encoding)
File "/usr/lib/python2.7/locale.py", line 189, in format
"format specifier, %s not valid") % repr(percent))
ValueError: format() must be given exactly one %char format specifier,
'%.2f%%' not valid