Scions of Darkness crash
Happened when I had about 3 units attacking an enemy outpost, or whatever those grey spiked things are.Traceback (most recent call last): File "run_game.py", line 19, in ? main.main() File "lib/main.py", line 12, in main e=engine.Engine(state="mainmenu") File "lib/modules/engine.py", line 27, in __init__ self.run() File "lib/modules/engine.py", line 39, in run self.play_game() File "lib/modules/engine.py", line 661, in play_game player.update() File "lib/modules/entities.py", line 567, in update i.update() File "lib/modules/entities.py", line 253, in update self.active_enemy.damage(self.get_attack_value()) File "lib/modules/entities.py", line 497, in damage amount-=random.randint(0, dodge) File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/random.py", line 189, in randint return self.randrange(a, b+1) File "/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/random.py", line 168, in randrange raise ValueError, "empty range for randrange()" ValueError: empty range for randrange()
(log in to comment)
RB[0] on 2007/09/15 21:46:
Ahh...Dang! :(
That is an error I had creep up in the last release I was working on before the deadline, but didn't release anyways :/
I had thought it wasn't in the official release :(
It happens when one of the dodge/defense/attack values are 0 IIRC, so there should be a simple fix by making sure that the values are at least 0.
In the un-uploaded version I ended up just try:excepting out of all the attacks, which produced the very twisted result of the enemies being immortal, and you aren't, but you still have to collect stuff to win, but then if they get them first you are totally finished, 'cuz you cant get them back :P
If I have time later I'll try and get a good fix for that worked out, but I haven't even had time to play the other games yet ;)