DNA Replicator crash

Anyone 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

(log in to comment)

Comments

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.
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.