You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old Lightbulb [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-10, 23:49

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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 11:26. Reason: Updated link to latest version
Reply With Quote

#2 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 07:19

Join Date: May 2004
Posts: 524
Location: Tampere, Finland
jethro.fn's Avatar
jethro.fn
Offline
Forum Nokia Champion
Congratulations! Pygame is one of the most useful extension modules on the desktop. Glad to see it migrate to phones too.
Reply With Quote

#3 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 09:14

Join Date: Mar 2003
Posts: 935
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
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
Reply With Quote

#4 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 10:16

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#5 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 11:50

Join Date: Mar 2003
Posts: 935
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
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 12:04. Reason: Error confirmation
Reply With Quote

#6 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 12:08

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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 12:15.
Reply With Quote

#7 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 13:01

Join Date: Mar 2003
Posts: 44
haviital
Offline
Registered User
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!
Reply With Quote

#8 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 13:23

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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
Reply With Quote

#9 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-11, 15:08

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
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.
Reply With Quote

#10 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-14, 23:04

Join Date: Jan 2007
Posts: 135
Location: Oulu, Finland
GameDude
Offline
Regular Contributor
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 23:14.
Reply With Quote

#11 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-15, 01:57

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#12 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-15, 02:12

Join Date: Mar 2003
Posts: 935
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
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
Reply With Quote

#13 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-15, 10:38

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
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.
Reply With Quote

#14 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-15, 12:24

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#15 Old Re: [Announce] PyS60 Community Edition unleashed: pygame - 2008-12-15, 15:24

Join Date: Nov 2008
Posts: 73
xiaobu
Offline
Regular Contributor
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...)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
[announce] appswitch for 3rd edition ! cyke64 Python 27 2009-08-19 07:58
AutoStart - S60 2nd Edition Devices (PYS60) deepak_dpk Python 3 2008-10-14 08:18
[announce] PyS60 for 5th edition very soon ? cyke64 Python 3 2008-10-03 14:03
[announce] Geo-scheduler PyS60 app. is the Featured Article of the Week on wiki ! cyke64 Python 2 2008-08-14 14:22
Pys60 1.3.8 for 2nd Edition ? cyke64 Python 3 2006-08-08 16:02

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia