Thus ends the longest week of my life.
To people who said to watch your health and get plenty of sleep during Pyweek, I did the exact opposite. This was the most intense week of coding I've ever done. Looking back at my posts from Day 1 and Day 2, I can barely remember ever being in that position.We'll see if it paid off. (Fourth) final submission here:Obb version 4
Please let me know if you catch any major bugs I can fix!
Good luck all!
(log in to comment)
Comments
lantea:obb-v2 jerith$ python run_game.py
Traceback (most recent call last):
File "run_game.py", line 4, in <module>
main.main()
File "/Users/jerith/Desktop/obb-v2/src/main.py", line 53, in main
con.think(dt, events, keys, mousepos, buttons)
File "/Users/jerith/Desktop/obb-v2/src/play.py", line 81, in think
tip.settip(self.choosetip(mousepos))
File "/Users/jerith/Desktop/obb-v2/src/play.py", line 256, in choosetip
return self.status.choosetip(mousepos)
File "/Users/jerith/Desktop/obb-v2/src/status.py", line 219, in choosetip
if self.mutagenmeter.rect.collidepoint(mousepos):
AttributeError: 'MutagenMeter' object has no attribute 'rect'
After that, it seemed to run fine. Perhaps something to do with the initial rendering of new objects or something?
--huge to get a fair-sized window.
Tip: Start it with pygame 1.9.1
python 2.7
numpy 1.6.0
Traceback (most recent call last):
File "/Users/Lennart/Desktop/obb-v2/run_game.py", line 4, in <module>
main.main()
File "/Users/Lennart/Desktop/obb-v2/src/main.py", line 53, in main
con.think(dt, events, keys, mousepos, buttons)
File "/Users/Lennart/Desktop/obb-v2/src/play.py", line 105, in think
self.body.think(dt, self.status.healmeter)
File "/Users/Lennart/Desktop/obb-v2/src/body.py", line 189, in think
self.remakemask()
File "/Users/Lennart/Desktop/obb-v2/src/body.py", line 143, in remakemask
self.mask = mask.Mask(circles)
File "/Users/Lennart/Desktop/obb-v2/src/mask.py", line 12, in __init__
self.redraw()
File "/Users/Lennart/Desktop/obb-v2/src/mask.py", line 52, in redraw
self.alphacopy()
File "/Users/Lennart/Desktop/obb-v2/src/mask.py", line 74, in alphacopy
pygame.surfarray.pixels_alpha(self.surf)[:,:] = 255 - pygame.surfarray.array2d(self.blue)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/surfarray.py", line 208, in pixels_alpha
return numpysf.pixels_alpha (surface)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/_numpysurfarray.py", line 297, in pixels_alpha
raise ValueError("unsupported colormasks for alpha reference array")
ValueError: unsupported colormasks for alpha reference array
Also i got jerith's crash once.
self.rect = pygame.Rect(0,0,0,0)
Ernie: Hmmm.... according to this that's due to a bug in pygame on big-endian machines. I'll try to track down a workaround.
Thanks for the testing, everyone!
my end state! (Also spoiler in the same way.)
I guess this misunderstanding made the game even more interesting for me :). I recommend playing with this extra contract!
Oh god! I've just seen your "spoiler" screenshot! I didn't realize you could cross branches! Check out I guess this misunderstanding made the game even more interesting for me :). I recommend playing with this extra contract!
The crossings is mentioned in HINTS.txt, as well as a number of other tips I wanted to put in the game itself but didn't have time to do. I think everyone should probably read this file once you've given the game a shot. It's not very spoileriffic.
If anyone else wants to share their endgame, you can press F12 in the game to take a screenshot, which will be saved to a handy spot. (Don't do it if you're playing version 1, though.)
I only noticed at that point because that's when my swap space filled up and my little netbook became exceedingly slow. Let me know if you need any more details or help finding where the issue is.
Otherwise, a very nice game! It even seemed to recover gracefully enough from being killed (reopened the game in its previous state), which was a nice touch. Think I'll be playing more, since my strategy has been bad and I haven't gotten very far - I'll take a look at the hints.
Worst case, you can decrease the autosave time. It's set to 15 seconds in settings.py.
All right, there was a memory leak in the pygame 1.9.2 development build. I asked about it on the pygame mailing list, and apparently it's been fixed as of revision 7866ddf0ec0d. If you were using 1.9.2 and were getting a memory leak, update to the latest pygame revision and try it again.
If you're still getting a memory leak, I can't reproduce it myself. I'd be happy to sit down with anyone and try to work out the cause, but it will probably be a slow process. Please let me know if you have a couple of hours to spare for this, and I'd be happy to work with you.
'1.9.1release-svn2575'
according to pygame.version.ver
saluk on 2011/09/18 00:43:
Great job! Haven't got far yet but I plan on putting some time into it.