Re: [pygame] Pygame_sdl2

2015-04-08 Thread Gino Ingras
you mentioned that it is better to use pygame_sdl2 for mobile apps.
how do you do that?

2015-04-08 5:01 GMT+02:00 Michael Lutynski 
mich...@callthecomputerdoctor.com:

  I too am very stoked to hear about the pygame1 release and the
 pygame_sdl2! This is wonderful!!



 ~ Michael



 On Tue : Apr 7, 2015 3:13:02 PM you wrote:

  pps. yes, I think it would be nice to join forces. Including testing,

  porting, doing missing modules, and re-licensing or rewriting LGPL code

  where needed. Maybe moving the repo under the pygame organisation on

  bitbucket (perhaps?).

 

  I have holidays in 3 weeks, which I've planned to try and push the
 pygame1

  release out the door. Probably the last major pygame 1 release.

 

  Trying to port existing games to pygame_sdl2 is probably a nice effort

  everyone can do to help :) I'll report back on my games later.

 

 

  best,



Re: [pygame] Updated Compilation Instructions for Ubuntu

2015-03-13 Thread Gino Ingras
last tests was with pyhton 2.7.6

on an other pysical machine mint17, and python3.4.0, CPU   Q9300  @ 2.50GHz
pygame 1.9.1 default installed by synaptic, and work perfectly with
python2.7.6

$python3
 import pygame
ImportError: No module named 'pygame'
never tried, but seems python3 doesn't support default packaged pygame1.9.1.

pygame for python3 installed as wiki + libfreetype6-dev
report Erreur lors de la concaténation de /usr/share/doc-base/kino-en avec
/usr/share/doc-base/kino-fr : le format html est déjà défini.
which seems a minor alert, kino works.
$python3
 import pygame
 pygame.version.ver
'1.9.2a0'

i don't (never) use python3 with pygame.
but seems to report errors with games tested when :

pygame.image.load(imagename)
pygame.error: File is not a Windows BMP file

ex: http://www.pygame.org/project-Pong-2878-.html
i don't know if these games tested really works with python3 (maybe only
for windows?).

do you have an application  link where python3+pygame1.9.1 is working?


2015-03-13 17:56 GMT+01:00 William Manire williamkman...@gmail.com:

 Awesome! Thanks for verifying.

 On Fri, Mar 13, 2015 at 5:01 AM, Gino Ingras ginoing...@gmail.com wrote:
  had tested intall on pysical machine mint17,  i3-2100 CPU @ 3.10GHz
 
  you've forgot :
  #apt-get install libfreetype6-dev
  install work great...
 
  import pygame
  pygame.version.ver
  '1.9.2a0'
  and it seems to work like a charm.
  pygame doesn't appear in package manager (should be a .deb package?).
 
  #apt-get install solarwolf, which install pygame 1.9.1, ok. but:
  import pygame
  pygame.version.ver
  '1.9.1release'
 
  after uninstall pygame by synaptic:
  import pygame
  pygame.version.ver
  '1.9.2a0'
  and it seems to work like a charm again.
 
  you should add instructions how to select specific version, in case of.
 
  Thanks,
  GinoIngras
 
  2015-03-12 23:46 GMT+01:00 William Manire williamkman...@gmail.com:
 
  Hello,
 
  After some experimentation I was able to install pygame into a virtual
  environment in Linux Minth 17.1, which is very similar to Ubuntu in
  most respects.
 
  I took the liberty to update the wiki entry for compilation with new
  instructions for setting this up. I also updated the dependencies to
  use libav-tools since ffmpeg is no longer available in the package
  manager.
 
  http://www.pygame.org/wiki/CompileUbuntu
 
  If anyone has the time to verify the instructions are accurate and
  actually work for someone other than myself that would be wonderful!
 
  Thanks,
 
  wkmanire
 
 



Re: [pygame] Updated Compilation Instructions for Ubuntu

2015-03-13 Thread Gino Ingras
had tested intall on pysical machine mint17,  i3-2100 CPU @ 3.10GHz

you've forgot :
#apt-get install libfreetype6-dev
install work great...

 import pygame
 pygame.version.ver
'1.9.2a0'
and it seems to work like a charm.
pygame doesn't appear in package manager (should be a .deb package?).

#apt-get install solarwolf, which install pygame 1.9.1, ok. but:
 import pygame
 pygame.version.ver
'1.9.1release'

after uninstall pygame by synaptic:
 import pygame
 pygame.version.ver
'1.9.2a0'
and it seems to work like a charm again.

you should add instructions how to select specific version, in case of.

Thanks,
GinoIngras

2015-03-12 23:46 GMT+01:00 William Manire williamkman...@gmail.com:

 Hello,

 After some experimentation I was able to install pygame into a virtual
 environment in Linux Minth 17.1, which is very similar to Ubuntu in
 most respects.

 I took the liberty to update the wiki entry for compilation with new
 instructions for setting this up. I also updated the dependencies to
 use libav-tools since ffmpeg is no longer available in the package
 manager.

 http://www.pygame.org/wiki/CompileUbuntu

 If anyone has the time to verify the instructions are accurate and
 actually work for someone other than myself that would be wonderful!

 Thanks,

 wkmanire



[pygame] pygame.org commented project alert.

2015-03-11 Thread Gino Ingras
how to know if someone had post a comment on your project?
for sure, without checking every day, is there an email feedback possible?


Re: [pygame]

2015-02-25 Thread Gino Ingras
usually, i work only in linux.
windows is for compliant tests, as i want my programs work on both with
minimum modification.
most of linux distro (debian based) have pygame 1.9.1 default package.

so, sens CORRECT on your question is do i work with standard or why it
doesn't work for me ?


2015-02-25 7:48 GMT+01:00 diliup gabadamudalige dili...@gmail.com:

 Hi Gino and Mikhail!

 Thanks for your response! :)

 I am on Windows 7 64 bit
 Python version 2.7.9 32 bit

 I have been using Pygame 1.9.2a0 without any problems
 I was wondering whether there was anything out there which escaped my
 attention.

 On Mon, Feb 23, 2015 at 9:47 PM, Mikhail V mikhail...@gmail.com wrote:

 How I see, people recommend this link for windows, its always up-to-date:
 http://www.lfd.uci.edu/~gohlke/pythonlibs/
 I'm on windows 7 64 bit and I took  pygame‑1.9.2a0‑cp27‑none‑win_amd64.whl
 Works for me good, 1.9.2 has a very useful new feature-
 Surface.get_view(0) which gets you direct write access to surface's
 bytes.

 Mikhail

 On 23 February 2015 at 08:08, diliup gabadamudalige dili...@gmail.com
 wrote:
  Hi All!
 
  Which is the current version of Pygame?
  Where is the CORRECT download for WINDOWS?
 
  Thanks in advance
 
  --
  Diliup Gabadamudalige
 
  http://www.diliupg.com
  http://soft.diliupg.com/
 
 
 **
  This e-mail is confidential. It may also be legally privileged. If you
 are
  not the intended recipient or have received it in error, please delete
 it
  and all copies from your system and notify the sender immediately by
 return
  e-mail. Any unauthorized reading, reproducing, printing or further
  dissemination of this e-mail or its contents is strictly prohibited and
 may
  be unlawful. Internet communications cannot be guaranteed to be timely,
  secure, error or virus-free. The sender does not accept liability for
 any
  errors or omissions.
 
 **
 




 --
 Diliup Gabadamudalige

 http://www.diliupg.com
 http://soft.diliupg.com/


 **
 This e-mail is confidential. It may also be legally privileged. If you are
 not the intended recipient or have received it in error, please delete it
 and all copies from your system and notify the sender immediately by return
 e-mail. Any unauthorized reading, reproducing, printing or further
 dissemination of this e-mail or its contents is strictly prohibited and may
 be unlawful. Internet communications cannot be guaranteed to be timely,
 secure, error or virus-free. The sender does not accept liability for any
 errors or omissions.

 **




Re: [pygame]

2015-02-23 Thread Gino Ingras
what is your Python version?
what is your Windows version?

i use pygame-1.9.1.win32-py2.7.msi with python 2.7.9 on winSeven 64bits,
and works well.
uninstall any older version before try an other...
pygame 1.9.2 is apha revision yet, as i know.


2015-02-23 8:08 GMT+01:00 diliup gabadamudalige dili...@gmail.com:

 Hi All!

 Which is the current version of Pygame?
 Where is the CORRECT download for WINDOWS?

 Thanks in advance

 --
 Diliup Gabadamudalige

 http://www.diliupg.com
 http://soft.diliupg.com/


 **
 This e-mail is confidential. It may also be legally privileged. If you are
 not the intended recipient or have received it in error, please delete it
 and all copies from your system and notify the sender immediately by return
 e-mail. Any unauthorized reading, reproducing, printing or further
 dissemination of this e-mail or its contents is strictly prohibited and may
 be unlawful. Internet communications cannot be guaranteed to be timely,
 secure, error or virus-free. The sender does not accept liability for any
 errors or omissions.

 **




Re: [pygame] Can I download all game source files easily?

2015-02-17 Thread Gino Ingras
how many sources do you intend to get?
on a linux debian system (you then probably know how get sources easly),
command

#apt-get install apt-redepends
$apt-rdepends -r python-pygame

return (at least):

angrydd
ardentryst
balazar3-2d
balazar3
bambam
bouncy
bubbros
castle-combat
childsplay
ffrenzy
fofix
freealchemist
freevial
fretsonfire-game
fs-uae-launcher
funnyboat
impressive
krank
lightyears
magicor
monsterz
oneisenough
opensesame
pathological
psychopy
pykaraoke
pyntor
pyracerz
pyrocket
pyscrabble
pysiogame
pysolfc
pysol-cardsets
pysycache
python-box2d-doc
python-elements
sugar-physics-activity
sugar-pippy-activity
sucrose-0.96
sucrose-0.98
python-freevo
freevo
freevo-lirc
python-kivy
python-kivy-examples
python-pyepl
python-pykaraoke
python-pymt
pyvnc2swf
renpy
renpy-demo
renpy-thequestion
seahorse-adventures
singularity
slingshot
snowballz
solarwolf
whichwayisup


2015-02-17 20:35 GMT+01:00 Katie Cunningham katie.ful...@gmail.com:

 I see you already know where to find Al's book, so I'll just chime in
 to wish you luck!

 Good luck from another young coder teacher :)

 On Tue, Feb 17, 2015 at 2:31 PM, Matt Roe roeb...@gmail.com wrote:
  I would second checking out pyweek - you can go to a list of all entries
 in
  a given competition, and download from links there quite rapidly. Older
  Pyweek's some people made large torrents and zips for people to download
 to
  relieve pressure on the server, not sure if anyone does those anymore,
 been
  years.
 
  Good luck!
 
  On Tue, Feb 17, 2015 at 12:28 PM, bw stabbingfin...@gmail.com wrote:
 
  Hey there. Unfortunately the projects on pygame.org are only
  informational. They link to offsite hosting services for the game
 files. And
  the project pages fall out of maintenance because the authors move on,
 and
  as you've seen hosting services come and go.
 
  You could try Firefox web browser with the Slashgot or DownThemAll
 plugin.
  These are very convenient for selectively grabbing files from the links
 on a
  page. I'd spend a half hour grabbing, and then look through my download
  directory to see what I got. But this is going to get you a lot of duds
 and
  mystery zips, and things that aren't games or interesting toys. So the
  treasure hunt you've been on is probably the most fruitful approach.
 
  Another interesting place to find working and often polished games is
  pyweek.org. There are Python games using various libraries, though
 many of
  the games there use pygame.
 
  Cheers,
  Gumm
 
 
  On 2/17/2015 8:03 AM, shibbiddyd wrote:
 
  I am teaching a workshop to kids this week.  I would like to
 demonstrate
  and
  read a variety of source code from pygame projects.
 
  Is there an FTP, directory, or archive to easily download every
 pygame's
  source code?
 
  There are many games and links to follow (600+), and it is a tedious
  process.  I have trouble downloading from some of the sites.  Some
  websites
  are down or do not exist anymore.  Some are blocked at work
 (rapidshare,
  megaupload, and sourceforge).  Some are confusing.  I have downloaded
  many
  individually, but it is very time consuming and I am nowhere near
  complete.
 
  I used this link last year and the kids loved it:
  http://inventwithpython.com/inventwithpython.zip
  But it only shows a small sample set of what PyGame can do.
 
  Thank you for everything you do!  This is another incredible library
 for
  the
  amazing python programming language.
 
 
 
  --
  View this message in context:
 
 http://pygame-users.25799.x6.nabble.com/Can-I-download-all-game-source-files-easily-tp1733.html
  Sent from the pygame-users mailing list archive at Nabble.com.
 
 
 



[pygame] create account on pygame.org

2015-02-15 Thread Gino Ingras
would like an admin please, mail me to setup an account on pygame.org.

my project:
http://sourceforge.net/projects/pybreak360/

thanks,


Re: [pygame] pyg_mixer.music.load doesn't take non ascii chars

2015-02-14 Thread Gino Ingras
Bo,

i just forgot one last think in my copy/paste code.
last but not least, otherwise it effectively don't work.

from codecs import open

are you sure that file is compliant?
i'd test my code on linux and win7, both work well with same code and same
ogg file.
and i have sames errors as youres if other.
you can't pygame.mixer.music.load(file_path) directly you have to
pygame.mixer.music.load(open(file_path)) as greg said.

use Audacity http://audacity.sourceforge.net/ , and re convert to complaint
ogg file if necessary.
that should be enought, but you also have to manage this kind error in your
software.


2015-02-14 12:50 GMT+01:00 Bo Jangeborg b...@softwave.se:

 Greg Ewing skrev den 2015-02-14 12:46:

  Bo Jangeborg wrote:

  According to the documentation
 one should be able to pass an object as a parameter
 but I am not sure if I am doing it the right way.


 I think it means a file object, not the file contents:

   file_path = 07-Boabdil, Bulerías.ogg
   fi = open(file_path, 'rb')
   pygame.mixer.music.load(fi)

 If open() is able to handle the unicode file
 name, that ought to work.

  the open() command by it self works, so
 python can handle the unicode string,
 but the following doesn't work.


   file_path = 07-Boabdil, Bulerías.ogg
   pygame.mixer.music.load(file_path)



Re: [pygame] pyg_mixer.music.load doesn't take non ascii chars

2015-02-14 Thread Gino Ingras
you should learn about codecs strings inputs/output.
ensure you always work with the same, utf8.
most of python modules are based on, and python3 assume by default as in
python2 you got

from __future__ import unicode_literals

see (in french, sorry) a good link:
http://sametmax.com/lencoding-en-python-une-bonne-fois-pour-toute/


2015-02-14 11:21 GMT+01:00 Bo Jangeborg b...@softwave.se:

 Greg Ewing skrev den 2015-02-14 02:00:

  Bo Jangeborg wrote:

 file_path = 07-Boabdil, Bulerías.ogg
 fi = open(file_path, 'rb').read()
 pygame.mixer.music.load(fi)

 But that gets me the Error:
 File path 'OggS' contains null characters


 music.load() expects to be passed the name of a file,
 not the contents of the file. Just do this:

 file_path = 07-Boabdil, Bulerías.ogg
 pygame.mixer.music.load(file_path)

  The reason I tried the object passing was because just
 passing the name didn't work. So I am looking for
 a workaround. According to the documentation
 one should be able to pass an object as a parameter
 but I am not sure if I am doing it the right way.

 pygame.mixer.music.load()
 Load a music file for playback
 load(filename) - None
 load(object) - None
 This will load a music filename/file object and prepare it for playback.



Re: [pygame] pyg_mixer.music.load doesn't take non ascii chars

2015-02-14 Thread Gino Ingras
assume in line 2:
# -*- coding: utf8 -*-
...
from codecs import open
...
#don't know if your file_path is hard coded, if not you may
file_path = file_path.decode('utf8')
...
#and then, as Greg told:
pygame.mixer.music.load(open(file_path))

work fine on win7 and linux(Mint17)


2015-02-14 2:00 GMT+01:00 Greg Ewing greg.ew...@canterbury.ac.nz:

 Bo Jangeborg wrote:

 file_path = 07-Boabdil, Bulerías.ogg
 fi = open(file_path, 'rb').read()
 pygame.mixer.music.load(fi)

 But that gets me the Error:
 File path 'OggS' contains null characters


 music.load() expects to be passed the name of a file,
 not the contents of the file. Just do this:


 file_path = 07-Boabdil, Bulerías.ogg
 pygame.mixer.music.load(file_path)

 --
 Greg



Re: [pygame] Pygame non-MPEG1 video options?

2015-02-13 Thread Gino Ingras
if you just want to play a movie, you can do it outside pygame, using
others python binding, such as mpylayer.

- run the pygame appllication.
- launch the movie.
- stop the movie.
- return to pygame screen.


2015-02-13 18:59 GMT+01:00 Brian Madden br...@missionpinball.com:

 Oh man that would be awesome! Unfortunately Pygame can't do that (unless
 I'm missing something)...

 Anyone else?

 On Fri, Feb 13, 2015 at 9:45 AM, Charles Cossé cco...@gmail.com wrote:

 Hi Brian,
 Don't know if possible, but if i were you i'd investigate embedding your
 videos.  Is there any html support in pygame?  I don't know, personally,
 but if yes then that's the way i'd suggest ...
 good luck,
 Charles

 On Fri, Feb 13, 2015 at 10:41 AM, Brian Madden br...@missionpinball.com
 wrote:

 Hi Everyone,

 I have a Python app that's pretty much ready to go. Problem is that we
 need to be able to play videos. To be honest I never really looked too deep
 into Pygame's video support. I knew from the docs that it had to be MPEG-1
 and that if you wanted audio then it had to have exclusive control of
 Pygame.media, so I kind of thought, Ok, that's fine, I'll deal with all
 that later.

 So now it's later and I'm dealing with it. :)

 Problem is that we cannot get videos converted to MPEG-1 in a way that
 works reliably. We've gone through all the posts on this list and read a
 lot. Sometimes the videos play, sometimes not, sometimes we get SDL errors,
 sometimes we get garbage on the screen.. It's really kind of a mess.

 So I've started looking into options for non-MPEG1 videos and I wonder
 if anyone has successfully done anything?

 I found a blog post where a guy wrote a simple app that uses Pyglet to
 play the video and then for each frame it converts the Pyglet video frame
 to a Pyglet texture (kind of like Pyglet's version of a Surface), converts
 the pixels to a ctype, converts the ctype to the format Pygame can use,
 converts it to an image, then blits it to the Pygame window surface. That
 technically works but it's far too slow.. for hi-def videos we're only
 getting about 10fps.

 So I wonder if there are any other alternatives? Like can we install
 SDL2 and use PySDL2 to play the video and somehow convert that to a Pygame
 surface? (I have no idea if surfaces between SDL1.2 and SDL2 are
 compatible, or if so if it would be possible to get them into Pygame.)

 Or are there any other crazy ideas?

 To be honest if we can't figure this out then I think we're going to
 have to go with something other than Pygame, which would be a lot of work,
 but I don't know of any other alternatives? Unfortunately I don't know C or
 C++ so I'm afraid I'm not much help in terms of contributing to Pygame.

 Has anyone successfully taken a Python project based on Pygame and
 converted it to PySDL2? From what I've read it seems like there are many
 similarities since they're both SDL, but I don't know how much other work
 Pygame is doing, and whether if I recreated any of that in Python it will
 be fast enough?

 Anyway, sorry I'm a bit all over the place. I wonder if anyone has any
 thoughts to share?

 Thanks,
 Brian

 --
 *Brian Madden*
 Mission Pinball (blog http://missionpinball.com | twitter
 https://twitter.com/missionpinball | MPF software framework
 http://missionpinball.com/framework | sample games
 https://missionpinball.com/blog/category/big-shot-em-conversion/)





 --
 *Brian Madden*
 Mission Pinball (blog http://missionpinball.com | twitter
 https://twitter.com/missionpinball | MPF software framework
 http://missionpinball.com/framework | sample games
 https://missionpinball.com/blog/category/big-shot-em-conversion/)



Re: [pygame] pyg_mixer.music.load doesn't take non ascii chars

2015-02-13 Thread Gino Ingras
do you had try
file_path.replace(' ', '\\ ')
?

2015-02-14 1:23 GMT+01:00 Bo Jangeborg b...@softwave.se:

 I am trying to open an ogg file with:

 file_path = 07-Boabdil, Bulerías.ogg
  pygame.mixer.music.load(file_path)

 But I get an Error message saying that one of the unicode characters
  are out of range and can not be encoded. If I remove the offending
 character the file loads fine so I assume the problem is that only ascii
 is accepted.

 Since os.exists(file_path) evaluates as true I tried using the following:

 file_path = 07-Boabdil, Bulerías.ogg
 fi = open(file_path, 'rb').read()
 pygame.mixer.music.load(fi)

 But that gets me the Error:
 File path 'OggS' contains null characters

 Am I doing something wrong or is there no way
 to open a soundfile with non ascii characters ?
 I am running pygame on Windows 7.

 Bo Jangeborg



Re: [pygame] registration

2015-02-12 Thread Gino Ingras
Hi (Bonsoir maybe?) René,

where did you sent the link?

This is my project:
http://sourceforge.net/projects/pybreak360/?source=navbar

Regards,

2015-02-12 14:57 GMT+01:00 René Dudfield ren...@gmail.com:

 Hi,

 there are a few people who know a secret link, which we hand out to new
 people.

 I've sent the link now. Sorry for the delay.

 cheers!



Re: [pygame] Bug in pygame.draw.ellipse

2015-02-11 Thread Gino Ingras
Would like an admin please email me to set up an account on pygame.org

2015-02-09 15:58 GMT+01:00 Lorenz Quack d...@amberfisharts.com:

 Not a bug in SDL since the draw.ellipse function implements the ellipse
 logic itself.
 I didn't try to reproduce the code but it makes sense from looking at the
 source. There are calls like this:
 draw_ellipse(surf, rect-x+rect-w/2, rect-y+rect-h/2,
  rect-w/2-loop, rect-h/2-loop, color);
 because the internal draw_ellipse function expects the midpoint and two
 radii. Note that the 4 middle arguments are of type int so the division by
 two gets floored so any odd width or height is essentially the same as the
 next lower even number (as far as the code draw_ellipse function is
 concerned).
 I therefore think this bug report is legit.

 Cheers,
 Lorenz


 On 09/02/15 14:20, Florian Krause wrote:

 I was actually wrong. It seems even worse. Pyjama is not capable to draw
 ellipses with odd sizes at all. It will always
 be the same ellipse as x-1, y-1.
 E.g. an elipse with size 3,3 will result in the same ellipse as the one
 with size 2,2.
 Can anyone reproduce this?

 On Mon, Feb 9, 2015 at 1:36 PM, leo kirotawa kirot...@gmail.com mailto:
 kirot...@gmail.com wrote:

 Since pygame is bind for SDL , have you tried in pure SDL ?  Maybe
 it`s bug from there :)

 On Mon, Feb 9, 2015 at 10:05 AM, diliup gabadamudalige
 dili...@gmail.com mailto:dili...@gmail.com wrote:
   The mysteries of pygame.
  
   On 9 Feb 2015 16:25, Florian Krause siebenhundertz...@gmail.com
 mailto:siebenhundertz...@gmail.com wrote:
  
   Hi there,
  
   there seems to be a bug in pygame.draw.ellipse, where if either x
 or y of
   size is odd, then the resulting eclipse will have a real size of
 x-2, y-2.
  
   So basically, to draw an ellipse that has 3 x 3 pixels on the
 screen, one
   needs to use pygame.ellispe.draw with a size of 5 x 5.
  
   Best,
   Florian