edisona / endgame-singularity

Automatically exported from code.google.com/p/endgame-singularity
1 stars 0 forks source link

Exception for Too Much Money #110

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Acquire Currency (Last Displayed amount was  9195.740Qu)

What is the expected output?
Game should work as usual.

What do you see instead?
The Menu comes up, and the game logs the following on the console:
Exception in function show at Mon Jul  5 21:11:57 2010 CEST:
Traceback (most recent call last):
  File "/home/user/Games/singularity-0.30/code/safety.py", line 58, in safe_call
    return func(*args, **kwargs)
  File "/home/user/Games/singularity-0.30/code/graphics/dialog.py", line 186, in show
    Dialog.top.maybe_update()
  File "/home/user/Games/singularity-0.30/code/graphics/widget.py", line 297, in maybe_update
    self.update()
  File "/home/user/Games/singularity-0.30/code/graphics/widget.py", line 301, in update
    self.prepare_for_redraw()
  File "/home/user/Games/singularity-0.30/code/graphics/widget.py", line 293, in prepare_for_redraw
    child.prepare_for_redraw()
  File "/home/user/Games/singularity-0.30/code/graphics/widget.py", line 280, in prepare_for_redraw
    self.rebuild()
  File "/home/user/Games/singularity-0.30/code/screens/map.py", line 523, in rebuild
    (g.to_money(g.pl.cash), g.to_money(g.pl.future_cash()))
  File "/home/user/Games/singularity-0.30/code/player.py", line 675, in future_cash
    result_cash -= base.cost_left[cash]
TypeError: unsupported operand type(s) for -=: 'long' and 'numpy.int64'

What version of the product are you using? On what operating system?
Version: 0.30
OS: Linux Mint 9 AMD64
NumPy: 1.3.0-3build1
Pygame: 1.9.1release-0ubuntu
Python: 2.6

Original issue reported on code.google.com by paul.d...@gmail.com on 5 Jul 2010 at 7:44

GoogleCodeExporter commented 9 years ago
I can confirm this, and should fix before next release. Thanks for your bug 
report!

Status: Accepted
Owner: singularity@rodrigosilva.com
Labels: Milestone-0.31 Component-Logic Type-Defect Usability Priority-Medium

Original comment by singular...@rodrigosilva.com on 15 May 2012 at 12:24

GoogleCodeExporter commented 9 years ago
Issue 115 has been merged into this issue.

Original comment by singular...@rodrigosilva.com on 15 May 2012 at 12:25

GoogleCodeExporter commented 9 years ago
This was fixed in git commit f8eadb73add207b33e0734f8ee7b51f8e431f7ca, and will 
be published in next release. Thanks for reporting! (and we hope you enjoy the 
way we dealt with it ;)

Original comment by singular...@rodrigosilva.com on 20 Dec 2012 at 1:26

Attachments: