×

Discussion Board

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

    Lightbulb [Announce] PyS60 Community Edition unleashed: pygame

    Pygame for People! Merry Christmas! Ho Ho Hoo!.. Ahem... Santa is a bit early this year.

    I finally managed to get my pygame port working on the phone. A few evenings of precious free time and life spent. Now I can say I have lived up to my nick

    Grab the self-signed sneak-peek version here:

    pygame_20081217_signed.sisx

    More permanent download location will be established at some point to somewhere. And sources are available as soon as I have successfully pushed the sources to Launchpad. It has been a bit resistive lately.

    Missing features( those that came into my mind )
    • No font/text support
    • No image extension -> only .bmp images supported.
    • No mixer.music
    • No appuifw
    • Built with minimal extensions


    General information:
    • UID range: 0xE0006020-0xE0006025
    • Capabilities are: ReadUserData+WriteUserData+NetworkServices+LocalServices
    • SDL.dll is included.


    The application itself is just a very simple animation, but if you want to get your hands dirty, the demo script is located in c:\data\pygame\ and you can use PC-Suite to modify it. The plan is to create a game launcher application for selecting pygame applications. Not with appuifw, cuz that would be boring and ugly. But something cool.

    The build is tested on Nokia E51 and Nokia 6110 Navigator. Different screen resolutions may cause trouble( at least on the emulator) and it would be great if people could report any problems with it at this point. If you do, report the model of your phone and screen resolution. And reporting models where this works is useful too.

    What is pygame?


    What is SDL?
    Last edited by GameDude; 2008-12-20 at 10:26. Reason: Updated link to latest version

  2. #2
    Super Contributor
    Join Date
    May 2004
    Location
    Tampere, Finland
    Posts
    524

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Congratulations! Pygame is one of the most useful extension modules on the desktop. Glad to see it migrate to phones too.

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    E61i:
    - Icon missing
    - Installed on e-drive: "Menu: Feature not supported!"
    - Installed on c-drive: "Menu: Feature not supported!"

    N96:
    - Icon ok
    - Installed on e-drive: "SDL Error -2"
    - Installed on c-drive: 5-sec animation, everything ok

    Thanx,

    --jouni

  4. #4
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by JOM View Post
    E61i:
    - Icon missing
    - Installed on e-drive: "Menu: Feature not supported!"
    - Installed on c-drive: "Menu: Feature not supported!"

    N96:
    - Icon ok
    - Installed on e-drive: "SDL Error -2"
    - Installed on c-drive: 5-sec animation, everything ok

    Thanx,

    --jouni
    Hello GameDude ,

    Yes it's GREAT that you succeed in porting PyGame
    Thank you very much !

    Here's first result with N96.

    N96 10.024:
    - icon ok
    - on c: drive : 5 sec animation OK
    - on e: drive : 5-sec animation OK

    So it's a different result from JOM

    @JOM : What's your fimware version ?

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by cyke64 View Post
    @JOM : What's your fimware version ?
    N96 Device Manager says:

    Software version: 12.043
    Software version date: 26-11-08
    Custom version: 12.043.098.1
    Custom version date: 26-11-08
    Language set: 1
    Model: Nokia N96
    Type: RM-247
    Latest update: 2008-12-9

    Yep, updated yesterday OTA. Weird, I'll check again and report, if it suddenly works on E-drive!

    Edit: Confirmed!

    If I re-install pygame on e-drive on top of previous c-drive installation, it works. Very slowly (compared to earlier runs) and there is some error note in c:\pygame\ text file about missing cdrom, joystick, mouse and something...

    If I remove old installation first, and make sure c:\pygame dir does not exit before installation, install on e-drive and try to run: "SDL Error -2".

    Cheers,

    --jouni
    Last edited by JOM; 2008-12-11 at 11:04. Reason: Error confirmation

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

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    I think I figured out why it didn't work on E. I assume you tried to use it on E first, and Cyke tried C first. There is a bug in the pygame_demo.py. SDL -2 indicates error in Python script. Actually it's some Python error, not SDL.


    The evil line:
    Code:
    f=open('C:/data/pygame/stdout.txt','w')
    The uninstaller didn't remove the pygame directory because there was stdout.txt, so E: worked for Cyke. Actually that's why it worked for me too

    E61i may not work because:
    a)it's first 3rd edition device so maybe SDL does not work on it.

    b) I compiled the thing with 5th edition because I couldn't get SDL to compile on MR

    c) it's display is different than the other devices have.

    d) Maybe E61i doesn't like sysinfo, which is the only extension built into the pygame_python.dll.

    JOM: Could you try if Doom for S60 works on E61i? That would eliminate a and c options from the list of causes.

    Missing icon... might show after device reboot.

    Edit: JOM, you are too fast
    Last edited by GameDude; 2008-12-11 at 11:15.

  7. #7
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    47

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    GameDude,

    It would be great if SDL streming audio would work in PyGame, does it? If yes, we could finally add sound effects to python games!

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

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by haviital View Post
    GameDude,

    It would be great if SDL streming audio would work in PyGame, does it? If yes, we could finally add sound effects to python games!
    No mixer, so there is no audio. There is audio support in the SDL for S60, but I didn't sacrifice any time for it yet. Can't say how much work it needs.

    Shouldn't be too hard, I'll add it on top of the list

  9. #9
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by GameDude View Post
    No mixer, so there is no audio. There is audio support in the SDL for S60, but I didn't sacrifice any time for it yet. Can't say how much work it needs.

    Shouldn't be too hard, I'll add it on top of the list
    Cool

    Also waiting for this feature, sound effects would be great!

    Congratulations for porting pygame, I'm installing it right now

    Will be back to say what I thought about it



    BR,

    Rafael.

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

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Getting support for .wav files was easy, I simply added unmodified SDL_mixer sources to S60 SDL, enabled mixer for pygame and that's it. The demo has been updated to play 2 sounds simultaneously with different volume levels and fadeout.

    Updated installer: pygame_20081214_signed.sisx

    The audio clip is from http://free-loops.com/ and licensed under Creative Commons.


    I heard some cracles on my E51, but I believe it has already been fixed in another S60 SDL branch. I'll try to merge some of the changes to pygame's SDL.

    Because it was so easy to get the .wav files to work, I tried to implement support for OGG\Vorbis... didn't succeed yet. It compiles, but crashes
    Last edited by GameDude; 2008-12-14 at 22:14.

  11. #11
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by GameDude View Post
    Getting support for .wav files was easy, I simply added unmodified SDL_mixer sources to S60 SDL, enabled mixer for pygame and that's it. The demo has been updated to play 2 sounds simultaneously with different volume levels and fadeout.

    Updated installer: pygame_20081214_signed.sisx

    The audio clip is from http://free-loops.com/ and licensed under Creative Commons.


    I heard some cracles on my E51, but I believe it has already been fixed in another S60 SDL branch. I'll try to merge some of the changes to pygame's SDL.

    Because it was so easy to get the .wav files to work, I tried to implement support for OGG\Vorbis... didn't succeed yet. It compiles, but crashes
    It's a milestone day
    For the first time we can play sound on multiple channels

    @JOM: Now you can add sound mixing to your game and you have a wonderful library for 2D games !

    Thanks GameDude

    "official" PyS60 , PyS60 community edition or PyS60 CE unleashed Pygame ... You have many choices now

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  12. #12
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by cyke64 View Post
    @JOM: Now you can add sound mixing to your game and you have a wonderful library for 2D games !
    Huh, that would be a real challenge

    --jouni bad with graphics but horrible with audio

  13. #13
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    73

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by cyke64 View Post
    It's a milestone day
    For the first time we can play sound on multiple channels

    @JOM: Now you can add sound mixing to your game and you have a wonderful library for 2D games !

    Thanks GameDude

    "official" PyS60 , PyS60 community edition or PyS60 CE unleashed Pygame ... You have many choices now

    BR
    Cyke64
    -----------------------------
    what?what?2D games?can I use it?the 2nd.

  14. #14
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by xiaobu View Post
    -----------------------------
    what?what?2D games?can I use it?the 2nd.
    I mean game in two dimension (bitmap) not S60 2nd edition devices !


    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  15. #15
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    73

    Re: [Announce] PyS60 Community Edition unleashed: pygame

    Quote Originally Posted by cyke64 View Post
    I mean game in two dimension (bitmap) not S60 2nd edition devices !


    BR
    Cyke64
    ---------------------------------
    I know ! I know! but can I use the pygame module? I like 2D games so much !and I want have a try.(because I can't use the 3D on my phone...)

Similar Threads

  1. [announce] appswitch for 3rd edition !
    By cyke64 in forum Symbian
    Replies: 27
    Last Post: 2009-08-19, 06:58
  2. AutoStart - S60 2nd Edition Devices (PYS60)
    By deepak_dpk in forum Symbian
    Replies: 3
    Last Post: 2008-10-14, 07:18
  3. Replies: 3
    Last Post: 2008-10-03, 13:03
  4. Replies: 2
    Last Post: 2008-08-14, 13:22
  5. Pys60 1.3.8 for 2nd Edition ?
    By cyke64 in forum Symbian
    Replies: 3
    Last Post: 2006-08-08, 15:02

Posting Permissions

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