[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] My game - Time Trek



Super cool Ted. The video was indeed worth it...

And thanks for pointing out that distro with the video module enabled.



On Wed, Dec 17, 2014 at 4:26 PM, Ted Hunt <ted.hunt@xxxxxxxxxxxx> wrote:
Thanks Luke for pointing this out.

I've changed the code skip the movies if either the movie module is missing or there's a problem loading a movie.


On 18/12/2014 4:09 a.m., Luke Paireepinart wrote:
Looks like Pygame has a movie lib no matter what, but in some cases it raises a NotImplementedError based on your platform. So checking if it imports isn't enough, you'd have to catch the NotImplementedError when creating the movie and skip the movie during that function.

On Wed, Dec 17, 2014 at 6:49 AM, diliup gabadamudalige <diliupg@xxxxxxxxx> wrote:
i used..
try:
  from pygame import movie
  print "ok"
except:
  print"error"

and it printed ok so that means i have the movies module. But then why all those errors?
are you using absolute paths for the movies?

On Wed, Dec 17, 2014 at 6:04 PM, diliup gabadamudalige <diliupg@xxxxxxxxx> wrote:
Warning (from warnings module):
 File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line 2948
  movie = pygame.movie.Movie("movies/PreIntro.mpg")
RuntimeWarning: use movie: No module named movie
(ImportError: No module named movie)

Traceback (most recent call last):
 File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line 2969, in <module>
  main()
 File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line 87, in main
  preintro()
 File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line 2948, in preintro
  movie = pygame.movie.Movie("movies/PreIntro.mpg")
 File "C:\Python27\lib\site-packages\pygame\__init__.py", line 102, in __getattr__
  raise NotImplementedError(MissingPygameModule)
NotImplementedError: movie module not available
(ImportError: No module named movie)

above are the errors i got.

I have Pygame 1.9.2 pre release.
from where did you download ver.1.9.2?
please send the link so that i can install that and play your game!
:)

On Wed, Dec 17, 2014 at 5:46 PM, diliup gabadamudalige <diliupg@xxxxxxxxx> wrote:
hi ted!

I am now downloading your game.
You can try some of mine here.


at the above link you will fine 3 games
1.Space Gladiator
2.Space Gladiator II
3.Earthwar

they are not very large to download. Play them and let me know whaqt you think.
I will play your game and give you feed back.
:)


On Wed, Dec 17, 2014 at 9:22 AM, Ted Hunt <ted.hunt@xxxxxxxxxxxx> wrote:
Thanks Michael for your comments.

Does anyone know what the future is for the movie module ? Will be eventually be included in all builds ? It would be great if it also supported a more modern video format (mpeg1 is not great for HD movies).

Or should I be looking for an alternative ? I did see a post somewhere about piping data to/from ffmpeg ?

Cheers,

Ted.


On 16/12/2014 12:46 a.m., Michael Lutynski wrote:
Hello Ted,

Thatâs quite the effort, and Iâd love to give it a go on my Kubunutu Linux setup, but the pygame movie module isnât implemented here, so my pygame cannot play the .mpg videos :(

python TimeTrek.py
TimeTrek.py:2948: RuntimeWarning: use movie: No module named movie
(ImportError: No module named movie)
 Âmovie = pygame.movie.Movie("movies/PreIntro.mpg")
Traceback (most recent call last):
 ÂFile "TimeTrek.py", line 2969, in <module>
  Âmain()
 ÂFile "TimeTrek.py", line 87, in main
  Âpreintro()
 ÂFile "TimeTrek.py", line 2948, in preintro
  Âmovie = pygame.movie.Movie("movies/PreIntro.mpg")
 ÂFile "/usr/lib/python2.7/dist-packages/pygame/__init__.py", line 102, in __getattr__
  Âraise NotImplementedError(MissingPygameModule)
NotImplementedError: movie module not available
(ImportError: No module named movie)

It would be great if you could get an account on pygame.org so you could post your game there for discovery and feedback.

Can anyone here help Ted showcase his game on pygame.org?

Michael

On Mon : Dec 15, 2014 4:12:10 PM you wrote:
Hi guys,

I've been unsuccessful at getting registered on pygame.org, so I thought
I'd post a link to my game here. Sorry if that's the wrong thing to do.

My game (Time Trek) is based on a game I played on the TRS-80 (micro
computer from the late 70s). I've updated... everything a bit :-)

Here's a link to download it :-

https://mega.co.nz/#!QZMTgR6S!4DJQ8KvQ5VdXwnCKIR63ouU2ng0z7Q93c4kzE3A1foo

It requires python 2.7 and a pygame 1.9.2 that contains the movie module
(http://pygame.org/ftp/pygame-1.9.2a0.win32-py2.7.msi).
Also at least a core 2 duo or better processor.

I hope you enjoy it and any feedback is welcome.

Cheers,

Ted.

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com



--
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.
**********************************************************************************************



--
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.
**********************************************************************************************





This email is free from viruses and malware because avast! Antivirus protection is active.