Notices


Reply
Thread Tools
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#1
Check it out, this game is really awesome, gravity and stuff:
http://slingshot.wikispot.org/Screenshots
Just try it, you'll see...

Why doesn't it run on the N900, I mean with python-pygame installed, it loads and just exits, even verbose python mode doesn't give any errors, just files are loaded then exited without a sigh.

Thought it's because it has a slightly higher resolution at 800x600, but doesn't throw an error, even tweaked it, editing source to 800x480, but still nothing, just a quiet exit.

Anyone can try and debug what's going on?
 

The Following 5 Users Say Thank You to 白い熊 For This Useful Post:
F2thaK's Avatar
Posts: 4,365 | Thanked: 2,467 times | Joined on Jan 2010 @ Australia Mate
#2
yeah, pretty cool game, needs p2 to be controlled by computer or person..
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#3
I just play both sides, it's still very entertaining.

We need to figure out how to get it running on the N900, shouldn't be hard, it's got the needed python and python-pygame.

It would be ideal for the N900.
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#4
hmmmm trying it, but getting a few issues......
Should just run, but crashing out at some point - will have a play and see where i get.
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#5
Originally Posted by noobmonkey View Post
hmmmm trying it, but getting a few issues......
Should just run, but crashing out at some point - will have a play and see where i get.
Yeah, mine closes silently, when running python verbosely, I see:
Code:
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpymodule.so
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.py
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.pyc
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.pyo
#   clear[2] __name__
#   clear[2] __file__
#   clear[2] __doc__
#   clear[2] pygame
# trying /usr/lib/python2.5/site-packages/pygame/sndarray.so
# trying /usr/lib/python2.5/site-packages/pygame/sndarraymodule.so
# trying /usr/lib/python2.5/site-packages/pygame/sndarray.py
whereas on the PC python doesn't clear __name__ etc. at this point. Later on also:
Code:
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpymodule.so
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.py
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.pyc
# trying /usr/lib/pymodules/python2.5/gtk-2.0/numpy.pyo
#   clear[2] __file__
#   clear[2] mixer
#   clear[2] pygame
#   clear[2] __name__
#   clear[2] __doc__
# trying /usr/lib/python2.5/site-packages/pygame/fastevent.so
dlopen("/usr/lib/python2.5/site-packages/pygame/fastevent.so", 2);
import pygame.fastevent # dynamically loaded from /usr/lib/python2.5/site-packages/pygame/fastevent.so
# trying /usr/lib/python2.5/site-packages/pygame/copy_reg.so
which doesn't happen on a PC, and then when the menu is supposed to be shown:
Code:
# trying /media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/menu.py
# /media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/menu.pyc has bad magic
# /media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/menu.pyo matches /media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/menu.py
import menu # precompiled from /media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/menu.pyo
# cleanup __main__
#   clear[2] K_KP_MINUS
#   clear[2] GL_STEREO
#   clear[2] SCRAP_PPM
#   clear[2] K_PAUSE
#   clear[2] BLEND_MULT
#   clear[2] YV12_OVERLAY
#   clear[2] K_F6
#   clear[2] K_F1
#   clear[2] K_F8
#   clear[2] K_F9
as if Esc was pressed in a normal exit.
 

The Following User Says Thank You to 白い熊 For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#6
OK, getting somewhere, in ~/.slingshot/logfile.txt I get:
Code:
/media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/planet.py:60: DeprecationWarning: integer argument expected, got float
  self.orig = pygame.transform.scale(self.image, (s, s))
Traceback (most recent call last):
  File "slingshot.py", line 852, in <module>
    if __name__ == '__main__': main()
  File "slingshot.py", line 850, in main
    game.run()
  File "slingshot.py", line 762, in run
    self.draw()
  File "slingshot.py", line 393, in draw
    self.players[self.player].draw_line(self.screen)
  File "/media/0/kumatux.org-apps/slingshot_0.8.1p_jj_2010-04-24-220555_fremantle_all/bin/player.py", line 191, in draw_line
    pygame.draw.aaline(screen, self.color, (sx,sy), (sx + self.power * math.sin(math.radians(self.angle)), sy - self.power * math.cos(math.radians(self.angle))))
ValueError: unsupported bit depth for aaline draw (supports 32 & 24 bit)
 

The Following User Says Thank You to 白い熊 For This Useful Post:
fmo's Avatar
Posts: 151 | Thanked: 44 times | Joined on Oct 2007
#7
Looks like it's not meant to run with a 16bits framebuffer
__________________
MeegoPortal http://meegoportal.com New about MeeGo, Maemo, Moblin and the N900
Follow me here on Twitter
Follow me here on identi.ca
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#8
Originally Posted by fmo View Post
Looks like it's not meant to run with a 16bits framebuffer
It will, I just got it to run, it's great on the N900. Hang on a while, I'll post the modified game. Just need to iron out a couple more things, like program Q to be the Esc, and the KP_Ret to act as Enter, so you can use it comfortably on the N900.
 

The Following 19 Users Say Thank You to 白い熊 For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#9
I've uploaded the modified app, and instructions how to use it.

http://sumoudou.org/%E7%9B%B8%E6%92%...ia%20N900.html

Enjoy!!!
 

The Following 13 Users Say Thank You to 白い熊 For This Useful Post:
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#10
I've modified the game further, to fit the N900's screen perfectly, now having proper resolution display, displaying the countdown to timeout etc.

Get the version 0.8.1p-r2 at: http://kumatux.org/Applications.html
 

The Following 17 Users Say Thank You to 白い熊 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:57.