[endgame-singularity] Game getting errors after trying to enter base

21 views
Skip to first unread message

Andrew Myckhaylyck

unread,
Apr 16, 2011, 2:34:15 PM4/16/11
to endgame-singularity
I have played Singularity for a while, and I got Main Menu when I was
trying to enter my base. This error is can be solved by restarting the
game, but I don't want to loose save.
Here my traceback log:

Exception in function show at Sat Apr 16 21:33:36 2011 EEST:
Traceback (most recent call last):
File "/usr/share/singularity/code/safety.py", line 58, in safe_call
return func(*args, **kwargs)
File "/usr/share/singularity/code/graphics/dialog.py", line 200, in
show
result = self.handle(event)
File "/usr/share/singularity/code/graphics/dialog.py", line 327, in
handle
return self.call_handlers(handlers, event)
File "/usr/share/singularity/code/graphics/dialog.py", line 339, in
call_handlers
handler(event)
File "/usr/share/singularity/code/graphics/button.py", line 111, in
handle_event
self.activate_with_sound(event)
File "/usr/share/singularity/code/graphics/button.py", line 124, in
activate_with_sound
self.activated(event)
File "/usr/share/singularity/code/graphics/button.py", line 153, in
activated
self.function(*self.args, **self.kwargs)
File "/usr/share/singularity/code/screens/map.py", line 423, in
open_location
dialog.call_dialog(self.location_dialog, self)
File "/usr/share/singularity/code/graphics/dialog.py", line 94, in
call_dialog
retval = dialog.show()
File "/usr/share/singularity/code/screens/location.py", line 127, in
show
return super(LocationScreen, self).show()
File "/usr/share/singularity/code/graphics/dialog.py", line 200, in
show
result = self.handle(event)
File "/usr/share/singularity/code/graphics/dialog.py", line 327, in
handle
return self.call_handlers(handlers, event)
File "/usr/share/singularity/code/graphics/dialog.py", line 339, in
call_handlers
handler(event)
File "/usr/share/singularity/code/graphics/button.py", line 111, in
handle_event
self.activate_with_sound(event)
File "/usr/share/singularity/code/graphics/button.py", line 124, in
activate_with_sound
self.activated(event)
File "/usr/share/singularity/code/graphics/button.py", line 153, in
activated
self.function(*self.args, **self.kwargs)
File "/usr/share/singularity/code/screens/location.py", line 167, in
open_base
dialog.call_dialog(self.base_dialog, self)
File "/usr/share/singularity/code/graphics/dialog.py", line 94, in
call_dialog
retval = dialog.show()
File "/usr/share/singularity/code/screens/base.py", line 288, in
show
return super(BaseScreen, self).show()
File "/usr/share/singularity/code/graphics/dialog.py", line 186, in
show
Dialog.top.maybe_update()
File "/usr/share/singularity/code/graphics/widget.py", line 303, in
maybe_update
self.update()
File "/usr/share/singularity/code/graphics/widget.py", line 307, in
update
self.prepare_for_redraw()
File "/usr/share/singularity/code/graphics/widget.py", line 299, in
prepare_for_redraw
child.prepare_for_redraw()
File "/usr/share/singularity/code/graphics/widget.py", line 299, in
prepare_for_redraw
child.prepare_for_redraw()
File "/usr/share/singularity/code/graphics/widget.py", line 299, in
prepare_for_redraw
child.prepare_for_redraw()
File "/usr/share/singularity/code/graphics/widget.py", line 286, in
prepare_for_redraw
self.rebuild()
File "/usr/share/singularity/code/screens/base.py", line 345, in
rebuild
(get_chance("news"), get_chance("science"),
File "/usr/share/singularity/code/screens/base.py", line 343, in
get_chance
return g.to_percent(chance.get(group, 0))
File "/usr/share/singularity/code/g.py", line 270, in to_percent
return locale.format("%d%%", 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,
'%d%%' not valid

evilm...@emhsoft.com

unread,
Apr 16, 2011, 3:14:12 PM4/16/11
to endgame-s...@googlegroups.com
Looks like it starts crashing when the suspicion starts getting displayed.
My first thought is that it doesn't play well with Python 2.7. I'd try it
in 2.6 or 2.5 if possible.

Rain

unread,
May 8, 2011, 12:21:56 PM5/8/11
to endgame-singularity
locale.format() in Python 2.7 doesn't allow trailing text after the
format specifier.

Workaround is to use locale.format_string() instead
Reply all
Reply to author
Forward
0 new messages