×

Discussion Board

Page 1 of 4 1234 LastLast
Results 1 to 15 of 58
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Lightbulb [Announce] pygame for S60 for PyS60 1.9.x

    Hello,

    finally had some time to spend and finish up a pygame for S60 release for the new PyS60 1.9.x series. This build is based on pygame's trunk revision 1985.

    I set up a google code project for pygame S60 stuff from where you can download the installer: http://code.google.com/p/pygame-symbian-s60/

    * The new gfxdraw module is included and seems to work... bezier curves!
    * The launcher application can now be scrolled with a pen( it could be better, but I don't have such device myself so ... patches are welcome )
    * This build does not come with PyS60 interpreter so be sure to install PyS60 1.9.x first. I haven't been able to install the latest 1.9.3 myself due to some OpenC trouble so this is tested only on PyS60 1.9.2.
    - https://garage.maemo.org/frs/?group_id=854
    * The latest working OpenC has a float parsing bug. I suggest you change your phone's locale to English
    - See https://garage.maemo.org/tracker/ind...=854&atid=3201

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    17

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    this is amazing..will simplify python game dev on s60 a lot

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    17

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    this is amazing..will simplify python game dev on s60 a lot..i will try

  4. #4
    Super Contributor
    Join Date
    Nov 2007
    Location
    Sertaozinho/Brazil
    Posts
    768

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Congratulations, GameDude ! Amazing contribution.

  5. #5
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by marcelobarrosalmeida View Post
    Congratulations, GameDude ! Amazing contribution.
    Thanks

    I just uploaded a snake game too, which is the good old PyS60 snake converted to pygame. You can play it on your PC as well if you have pygame installed

    Copy the file to \data\pygame\apps\ on your phone and it will show up in launcher's Applications list.

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Hello GameDude

    congrats for the awesome work. Its really a great contribution.

    Quote Originally Posted by GameDude View Post

    I just uploaded a snake game too, which is the good old PyS60 snake converted to pygame. You can play it on your PC as well if you have pygame installed

    Copy the file to \data\pygame\apps\ on your phone and it will show up in launcher's Applications list.
    Now some problems i tried this snake.py in my N96 but when i open the game it gives me an error called "SDL Error- 2".

    Can you help me out what the problem in this??

    Regards,
    Gaba88

  7. #7
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    See if there is any error output in \data\pygame\appout.txt or stdout.txt.

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by GameDude View Post
    See if there is any error output in \data\pygame\appout.txt or stdout.txt.
    hi GameDude

    Thanks for your concern

    ya i checked that out.

    and there lots of error output.

    i have attached the txt file with the post, please have a look on that.

    Regards,
    Gaba88
    Attached Files Attached Files

  9. #9
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Seems that you tried the snake with previous pygame build with PyS60 1.4.5. It requires the latest build for 1.9.x. The old build does not allow sharing file handles, thus it is not able to open the font file and fails. OpenC allows that. Also, the latest launcher will start the game in it's own pygame process and use appout.txt for it's output.

    Before installing the new one, remove the previous pygame and make sure \data\pygame\libs is empty.

  10. #10
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by GameDude View Post
    Seems that you tried the snake with previous pygame build with PyS60 1.4.5. It requires the latest build for 1.9.x. The old build does not allow sharing file handles, thus it is not able to open the font file and fails. OpenC allows that. Also, the latest launcher will start the game in it's own pygame process and use appout.txt for it's output.

    Before installing the new one, remove the previous pygame and make sure \data\pygame\libs is empty.
    hello GameDude

    i have never installed PyGame before this is my first try in N96 moreover you told about keeping the libs folder empty but my libs folder contains may compiled python files.

    Regards,
    Gaba88

  11. #11
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by gaba88 View Post
    my libs folder contains may compiled python files.
    In that case you have the old pygame release installed. Install the new one... http://pygame-symbian-s60.googlecode...GCCE-UREL.sisx

  12. #12
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by GameDude View Post
    In that case you have the old pygame release installed. Install the new one... http://pygame-symbian-s60.googlecode...GCCE-UREL.sisx


    Hello GameDude

    Thanks for your concern.

    Will sure try that and post the comments.

    Cheers,
    Gaba88

  13. #13
    Registered User
    Join Date
    Mar 2009
    Posts
    5

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Hi,

    I noticed there was a new pygame build on the google code page dated 090510. Installed this on my 5800 with pys60 1.9.4.

    Clicking the pygame icon and it seems to load for a bit and then silently exits. No logs in /data/pygame.

    Any thoughts?

  14. #14
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Quote Originally Posted by shooter_aj View Post
    Hi,

    I noticed there was a new pygame build on the google code page dated 090510. Installed this on my 5800 with pys60 1.9.4.

    Clicking the pygame icon and it seems to load for a bit and then silently exits. No logs in /data/pygame.

    Any thoughts?
    There's a binary compatibility break between 1.9.3 and 1.9.4. The pygame library needs to be recompiled and repackaged to work with 1.9.4.

  15. #15
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Oulu, Finland
    Posts
    147

    Re: [Announce] pygame for S60 for PyS60 1.9.x

    Ah, that's what I thought as well. Unfortunately getting 1.9.4 was not straightforward. The Python 1.9.4 seems to be missing at least fnmatch, glob and binascii( built-in) modules. They did come with the previous builds. I'm not using the packager tool so the pygame build scripts need to be tweaked and binascii must be enabled in C code anyway. binascii is used by 'random'(quite often used) so I'm not that sure if it should be left out.


    Code:
    Traceback (most recent call last):
      File "\data\pygame\pygame_main.py", line 53, in <module>
        '__file__': path_to_app } )
      File "\data\pygame\apps\snake.py", line 24, in <module>
        import random
      File "c:\resource\python25\python25.zip\site.py", line 86, in platsec_import
        return _original_import(name, globals, locals, fromlist, level)
      File "newcore\Lib\random.py", line 47, in <module>
      File "c:\resource\python25\python25.zip\site.py", line 109, in platsec_import
        raise ImportError("No module named " + name)
    ImportError: No module named binascii

Similar Threads

  1. Replies: 50
    Last Post: 2009-11-17, 19:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •