It seems I'm facing the same issue.
On stderr I repeatedly get the following output:
Exception in function show at Fri Jul 1 17:50:38 2011 CEST:
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 197, in show
Dialog.top.maybe_update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 303, in
maybe_update
self.update()
File "/usr/share/games/singularity/code/graphics/widget.py", line 307, in
update
self.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 299, in
prepare_for_redraw
child.prepare_for_redraw()
File "/usr/share/games/singularity/code/graphics/widget.py", line 286, in
prepare_for_redraw
self.rebuild()
File "/usr/share/games/singularity/code/screens/map.py", line 575, in rebuild
suspicion_display_dict[group] = g.to_percent(suspicion, True)
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
I have changed line 268 in /usr/share/games/singularity/code/g.py to:
return locale.format("%.2f", raw_percent / 100).decode(encoding)
Now the menu does not keep popping up, so I assume that the format function has
changed. Since I haven't played this game before, I'm not sure what the results
are, but probably only the percentage character is missing from the display.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/796882
Title:
singularity menu pops up repeatedly making the game unplayable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/singularity/+bug/796882/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs