[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] "Shining Sea" source code



I tried this source code, and at first it spat out a "pygame.error" with the traceback:

Traceback (most recent call last):
File "/Users/samuelmankins/Desktop/070530ShiningSeaSource Folder/Shining Sea.py", line 668, in ?
   game = Game(screen=screen)
File "/Users/samuelmankins/Desktop/070530ShiningSeaSource Folder/Shining Sea.py", line 182, in __init__
   self.GoToZone((0,0))
File "/Users/samuelmankins/Desktop/070530ShiningSeaSource Folder/Shining Sea.py", line 379, in GoToZone self.screen.blit(self.bigpen.render("Now Loading",0,(255,255,255)),(500,560))
pygame.error

Then when I commented that line out, it started up, but then just sat there with a blue screen for about a minute and then crashed with another error (Unfortunately I didn't save that traceback).

Marius Gedminas wrote:
On Wed, May 30, 2007 at 07:01:07PM -0000, kschnee@xxxxxxxxxx wrote:
A version with source code:
http://kschnee.xepher.net/code/070530ShiningSeaSource.zip

Thanks!

I had to change all font.render() calls to enable anti-aliasing, to
sidestep a bug in Ubuntu's pygame (segmentation faults when rendering
non-anti-aliased spaces).  The game starts, but I cannot control anything.
I believe you mentioned W, A, S, D keys?  Nothing happens.  When I kill
the game, I get this traceback:

    Traceback (most recent call last):
      File "Shining Sea.py", line 687, in <module>
        game.Go()
      File "Shining Sea.py", line 634, in Go
        function_to_call()
      File "Shining Sea.py", line 608, in WanderingScreen
        Conch.j.PlaySong("island")
      File "/tmp/shining-sea/Conch/conch.py", line 128, in PlaySong
        if pygame.mixer.music.get_busy():
    KeyboardInterrupt

(BTW there's no sound or music.)

Marius Gedminas