| |||||||||||
PyWeek - Day 7Also, my actual vision seems all twisted right now, adjusting to the twisting in the game. All text here in a straight line looks like on a circle outline, and when moving the head, it all gets swirly.. not good :P So, be warned, don't play this game for too long or it will negatively influence your vision.. :P — allefant on 2007/09/08 17:41 of The game of Allefant 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 richard on 2007/09/08 22:10:
Congrats!By gcewing on 2007/09/10 00:53:
I've sometimes wondered whether one's ability to perceive straight lines as straight is hard-wired into the brain, or whether it's somehow learned. Your experience suggests it might be learned, and you're starting to learn a different definition of "straight"...By richard on 2007/09/10 03:35:
Hmmm.richards:~/Desktop/allefant5 richard$ python run_game.py Traceback (most recent call last): File "run_game.py", line 16, in main.main() File "/Users/richard/Desktop/allefant5/lib/main.py", line 11, in main run.main() File "/Users/richard/Desktop/allefant5/lib/run.py", line 200, in main run.game = Game(run.w, run.h) File "/Users/richard/Desktop/allefant5/lib/game.py", line 21, in __init__ self.background1 = Picture("clock.jpg") File "/Users/richard/Desktop/allefant5/lib/picture.py", line 8, in Picture pic = CachedPicture(path, area) File "/Users/richard/Desktop/allefant5/lib/picture.py", line 17, in __init__ image = pygame.image.load(data.loadblock(path)) File "/Users/richard/Desktop/allefant5/lib/data.py", line 47, in loadblock io = StringIO(dump.index[filename]) KeyError: 'clock.jpg'By allefant on 2007/09/10 09:09:
Are you on a non-Intel Mac? In that case, I do have a suspicion, can you try this: In lib/data.py, line 27 says:n = struct.unpack("=i", dump.mem[:4])[0]Change this to:n = struct.unpack("<i", dump.mem[:4])[0]And the same in line 38, it should be:o, l = struct.unpack("<ii", dump.mem[pos:pos + 8])By richard on 2007/09/10 10:44:
I sure was. I'll be back on that computer tomorrow and will check your solution.By allefant on 2007/09/10 13:52:
I uploaded a version with this fixed (in case it does fix it), just in case who makes the torrent happens to read it: Allefant5 with this big-endian bug and another bug where GL sometimes would crash fixed