| |||||||||||
PyWeek - DNA Replicator crashAnyone have a fix for this problem?
Traceback (most recent call last):
File "run_game.py", line 16, in ?
main.main()
File "/Local/Games/Python/PyWeek5/DNAReplicator-1.3-src/lib/main.py", line 148, in main
basedl[base] = compilemesh(a)
File "/Local/Games/Python/PyWeek5/DNAReplicator-1.3-src/lib/main.py", line 107, in compilemesh
for i in xrange(3*npoints):
OverflowError: long int too large to convert to int
— gcewing on 2007/09/10 23:46 of 555-BOOM! Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous March 2008 [entries, ratings] > September 2007 [entries, ratings] April 2007 [entries, ratings] September 2006 [entries, ratings] March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By aerojockey on 2007/09/11 00:34:
It's probably an endianness error. You on a pre-Intel Mac? I thought I'd fixed it, but I had no convenient way to test it on a big endian machine. I'm at work, so I can't see the code, but try playing with the byteorder (around the line with a.byteswap()). Sorry about that.By gcewing on 2007/09/11 04:48:
Okay, I fixed it. You were calling byteswap() before loading the data into the array, which doesn't do a lot of good. :-)I'll post a patch shortly.
Thanks for your help.