Re: [pygame] music module bindings for python

2007-05-24 Thread Greg Ewing

René Dudfield wrote:


pygame has mod support through sdl_mixer.


That's true. Note that you need to use pygame.mixer.music
rather than a pygame.mixer.Sound object, though.

I just tried the following on MacOSX and it worked:

from time import sleep
from pygame import mixer
mixer.init()
music = mixer.music
music.load(bigjapan.mod)
music.play()
sleep(1)

(The mod file I used is from
http://www.df.lth.se/~fernbom/music/mods/files/bigjapan.zip).

--
Greg


Re: [pygame] Need feed back on new game!

2007-05-24 Thread Greg Ewing

John Eriksson wrote:


After several weeks of coding I'm finally releasing my latest project
(at least the first release candidate), the space game Slingshot.

http://www.pygame.org/projects/20/428/?release_id=724


I'm getting a bus error on MacOSX, Python 2.5, pygame 1.7.1:

Fatal Python error: (pygame parachute) Bus Error
Abort

--
Greg


Re: [pygame] pygame.time.get_ticks() vs. time.clock()

2007-05-24 Thread Ulf Ekström

On 5/24/07, Mike Wyatt [EMAIL PROTECTED] wrote:

I'm working on a synchronized RTS using pygame and Python's socket
library, and I've discovered that the values returned by
pygame.time.get_ticks() and the time module's clock() method are not
consistent.  My test results suggest that pygame.time.get_ticks() runs
slightly faster than time.clock().


time.clock() is not a good way to measure wall clock time portably. On
some systems (unix) it returns cpu time used instead of wall clock
time, and on windows it uses the cpu performance counters as source,
but does seem to return wall clock time. Use time.time() for getting
the time portably, or use get_ticks(). The important thing is that you
should use the same source everywhere.

Regards,
Ulf


Re: [pygame] Need feed back on new game!

2007-05-24 Thread Charles Joseph Christie II
On Wednesday 23 May 2007 12:54:51 am John Eriksson wrote:
 Since PyGame.org still seems to be dead I'll post the direct link to
 Slingshot should anyone liek to try it and drop some comments.

 http://arainyday.se/projects/python/Slingshot/Slingshot_rc1.tar.gz

 Best Regards
 /John

 tis 2007-05-22 klockan 21:11 +0200 skrev Rikard Bosnjakovic:
  On 5/22/07, John Eriksson [EMAIL PROTECTED] wrote:
   Could you try downloading it again? (I can't for some reason start my
   vmware windows right now.)
 
  pygame.org seems to be dead at the moment.

In Gentoo Linux, when I run it I get:
Fatal Python error: (pygame parachute) Segmentation Fault
Aborted

I'll run it with a strace later to see if I can find out why.


Re: [pygame] Need feed back on new game!

2007-05-24 Thread John Eriksson
Hi,

This might be an surfarray issue as well.

In the next release (4-5 hours away) I have removed the surfarray
dependency and includes prerendered subpixel-images instead of
generating them runtime.

Best Regards
/John Eriksson


tor 2007-05-24 klockan 09:13 -0400 skrev Charles Joseph Christie II:
 On Wednesday 23 May 2007 12:54:51 am John Eriksson wrote:
  Since PyGame.org still seems to be dead I'll post the direct link to
  Slingshot should anyone liek to try it and drop some comments.
 
  http://arainyday.se/projects/python/Slingshot/Slingshot_rc1.tar.gz
 
  Best Regards
  /John
 
  tis 2007-05-22 klockan 21:11 +0200 skrev Rikard Bosnjakovic:
   On 5/22/07, John Eriksson [EMAIL PROTECTED] wrote:
Could you try downloading it again? (I can't for some reason start my
vmware windows right now.)
  
   pygame.org seems to be dead at the moment.
 
 In Gentoo Linux, when I run it I get:
 Fatal Python error: (pygame parachute) Segmentation Fault
 Aborted
 
 I'll run it with a strace later to see if I can find out why.



Re: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread John Eriksson
Hi Ethan,

Thanks for your excellent suggestions!
I'll add them to the next release.

Best Regards
/John

tor 2007-05-24 klockan 15:58 -0400 skrev Ethan Glasser-Camp:
 John Eriksson wrote:
  Please, help me test Slingshot once more and tell me what you think.
 
 Really cool!
 
 When you beat a level, maybe it should advance you to the next one
 automatically? Also, maybe you should show how many levels there are?
 (Level 3 out of 15, or something)
 
 Ethan
 



Re: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread Charles Joseph Christie II
On Thursday 24 May 2007 03:04:48 pm John Eriksson wrote:
 Hi,

 Hopefully this new version of Slingshot will work on more platforms.
 I've removed the surfarray dependency which caused problems on several
 platforms.

 I've also changed the behaviour of the force fields used on some levels.
 Instead of exploding the torpedoes will bounce off. This gives level
 building a new dimension.

 Please, help me test Slingshot once more and tell me what you think.

 Since the PyGame-site still has some problems I include a direct link to
 the new version.

 http://arainyday.se/projects/python/Slingshot/Slingshot_rc2.tar.gz

 When the final release is finished there will be a Windows and Mac
 release as well.

 Best Regards
 /John Eriksson

still segfaulting for no reason on my computer.


Re: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread Charles Joseph Christie II
On Thursday 24 May 2007 03:04:48 pm John Eriksson wrote:
 Hi,

 Hopefully this new version of Slingshot will work on more platforms.
 I've removed the surfarray dependency which caused problems on several
 platforms.

 I've also changed the behaviour of the force fields used on some levels.
 Instead of exploding the torpedoes will bounce off. This gives level
 building a new dimension.

 Please, help me test Slingshot once more and tell me what you think.

 Since the PyGame-site still has some problems I include a direct link to
 the new version.

 http://arainyday.se/projects/python/Slingshot/Slingshot_rc2.tar.gz

 When the final release is finished there will be a Windows and Mac
 release as well.

 Best Regards
 /John Eriksson

The strace helped, I think:

open(timidity.cfg, O_RDONLY)  = -1 ENOENT (No such file or 
directory)
open(P/timidity.cfg, O_RDONLY)= -1 ENOENT (No such file or 
directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

It segfaulted when trying to find some timidity configs. Well, at least that's 
what it looks like is happening... I'm not an expert at reading strace logs, 
but those are the last 2 lines above the SIGSEGV. I built my system without 
Timidity support, so maybe that's what's going on?


Re: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread Ethan Glasser-Camp
John Eriksson wrote:
 Please, help me test Slingshot once more and tell me what you think.

Really cool!

When you beat a level, maybe it should advance you to the next one
automatically? Also, maybe you should show how many levels there are?
(Level 3 out of 15, or something)

Ethan



signature.asc
Description: OpenPGP digital signature


RE: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread dbcad7

Nice work.
Ran well with Xubuntu anyway. I had to change sound in the config file because 
stock settings didn't sound right, but after that sound was decent. On one 
level one of the moons did not seem to have any gravity effect just straight 
shots worked. Don't know if that was intentional or not, didn't make playing 
any less fun regardless.
great job.
Dennis





 --- On Thu 05/24, John Eriksson  [EMAIL PROTECTED]  wrote:
From: John Eriksson [mailto: [EMAIL PROTECTED]
To: pygame-users@seul.org
Date: Thu, 24 May 2007 21:04:48 +0200
Subject: [pygame] Need help testing Slingshot rc2

Hi,Hopefully this new version of Slingshot will work on more platforms.I've 
removed the surfarray dependency which caused problems on severalplatforms.I've 
also changed the behaviour of the force fields used on some levels.Instead of 
exploding the torpedoes will bounce off. This gives levelbuilding a new 
dimension.Please, help me test Slingshot once more and tell me what you 
think.Since the PyGame-site still has some problems I include a direct link 
tothe new 
version.http://arainyday.se/projects/python/Slingshot/Slingshot_rc2.tar.gzWhen 
the final release is finished there will be a Windows and Macrelease as 
well.Best Regards/John Eriksson

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!




RE: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread John Eriksson

Thanks!

On what level did the moon gravity behave odd?

Best Regards
/John

tor 2007-05-24 klockan 23:20 -0400 skrev dbcad7:
 Nice work.
 Ran well with Xubuntu anyway. I had to change sound in the config file 
 because stock settings didn't sound right, but after that sound was decent. 
 On one level one of the moons did not seem to have any gravity effect just 
 straight shots worked. Don't know if that was intentional or not, didn't make 
 playing any less fun regardless.
 great job.
 Dennis
 
 
 
 
 
 --- On Thu 05/24, John Eriksson  [EMAIL PROTECTED]  wrote:
 From: John Eriksson [mailto: [EMAIL PROTECTED]
 To: pygame-users@seul.org
 Date: Thu, 24 May 2007 21:04:48 +0200
 Subject: [pygame] Need help testing Slingshot rc2
 
 Hi,Hopefully this new version of Slingshot will work on more platforms.I've 
 removed the surfarray dependency which caused problems on 
 severalplatforms.I've also changed the behaviour of the force fields used on 
 some levels.Instead of exploding the torpedoes will bounce off. This gives 
 levelbuilding a new dimension.Please, help me test Slingshot once more and 
 tell me what you think.Since the PyGame-site still has some problems I 
 include a direct link tothe new 
 version.http://arainyday.se/projects/python/Slingshot/Slingshot_rc2.tar.gzWhen
  the final release is finished there will be a Windows and Macrelease as 
 well.Best Regards/John Eriksson
 
 ___
 Join Excite! - http://www.excite.com
 The most personalized portal on the Web!