singularity menu pops up repeatedly making the game unplayable

Bug #796882 reported by Michael Davis
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
singularity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: singularity

ubuntu 11.04 with selinux
singularity version 0.30b-1
tried the fix that the other guy having this problem posted, and it did not work
was able to play this same version on Ubuntu 10.10 but now for some reason it will not play, I was even playing it on the first iteration of 11.04 I had on the first time I installed it. this time being the third of fourth.
I have even shredded all of the drives that I am running Linux on from a raid 10
if anyone can come up with a solution then I would be very appreciative...

also, some other info I forgot to mention, I am running Ubuntu 11.04 x64 and have Linux running on a software raid 10 on 4 160 gig sata 2 drives, with a raid 1 for data like videos music and the likes on two 320's. I also, and this is about the only change there has been other than the re-installations , I now have a 1tb external drive that I periodically back up my data files to for worst case scenario's.

according to the bug posting rules I also need to state the following:
I expected to be able to play singularity without the menu popping up every 3 to 5 seconds without my opening it...
what happened was that the menu keeps popping up uncontrollably thus disabling actual game play.

Tags: singularity
Revision history for this message
Tokuko (launchpad-net-tokuko) wrote :

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.

Changed in singularity (Ubuntu):
status: New → Confirmed
Revision history for this message
PKduck (jhnpwa) wrote :

The menu stop popping up if I change line 268 in /usr/share/games/singularity/code/g.py to:
        return locale.format_string("%.2f%%", raw_percent / 100.).decode(encoding)
The percentage character is preserved. I am not sure if this is the proper fix, but it do solve my problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.