aaps / stardog

The pygame stardog space shooter trader and all the improvements that can be done.
17 stars 3 forks source link

Doesn't start on Linux #10

Closed qubodup closed 9 years ago

qubodup commented 9 years ago

Hi, the game doesn't start on my system:

$ python2 stardog.py
No module named pympler
Traceback (most recent call last):
  File "stardog.py", line 63, in 
    game = code.game.Game(screen)
TypeError: __init__() takes exactly 3 arguments (2 given)

If I give it 3 parameters (w 1280 720) the same thing happens)

Duality4Y commented 9 years ago

fixed it try it now :)

this leads to other errors, but we are busy working on it!

neofit77 commented 9 years ago

object game (code.game.Game()) have 3 arguments (self, screen, FPS), self is defined by defolt, you just in parenthes give 2 arguments screen and FPS (number of frame per second).

2015-04-11 17:48 GMT+02:00 Robert notifications@github.com:

fixed it try it now :)

— Reply to this email directly or view it on GitHub https://github.com/aaps/stardog/issues/10#issuecomment-91871136.

qubodup commented 9 years ago

Thanks! Works now: https://youtu.be/5RXdRz43g7E

When I crashed super-fast into something the application crashed with following error:

$ python2 stardog.py 
No module named pympler
Traceback (most recent call last):
  File "stardog.py", line 68, in 
    game.run()
  File "/home/qubodup/src/git/stardog/code/game.py", line 260, in run
    self.universe.update()
  File "/home/qubodup/src/git/stardog/code/universe.py", line 34, in update
    camera.update()
  File "/home/qubodup/src/git/stardog/code/camera.py", line 44, in update
    layer.update()
  File "/home/qubodup/src/git/stardog/code/camera.py", line 133, in update
    self.drawable.update()
  File "/home/qubodup/src/git/stardog/code/camera.py", line 153, in update
    self.game.universe.curSystem.update()
  File "/home/qubodup/src/git/stardog/code/starSystem.py", line 66, in update
    self.collide(hitter, floater)
  File "/home/qubodup/src/git/stardog/code/starSystem.py", line 149, in collide
    a.freepartCollision(b)
  File "/home/qubodup/src/git/stardog/code/spaceship.py", line 728, in freepartCollision
    part.image = colorShift(pygame.transform.rotate(part.baseImage, part.direction), part.color).convert_alpha()
TypeError: must be pygame.Surface, not None

Since I didn't have pympler installed this might be invalid.

Duality4Y commented 9 years ago

No no it has nothing to do with pympler, it just says that it isn't installed :) but doesn't use it after that. the reall problem lays somewhere else. we will look at it :)