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

Re: [pygame] My game - Time Trek version 1.3.



Hello Ted,

 

Okay, I checked out the new version on my Kubuntu Linux (essentially Ubuntu).

 

The first thing I noticed is that it went into fullscreen mode, which worked, but I have my desktop spread over two monitors and due to the way the monitors are situated, itâs not truly a complete rectangular region (theyâre staggered). Anyway, I prefer to play games in a window otherwise I wonât see parts of the play field. I looked in the code to find where youâre setting it to full screen and it wasnât obvious, so I gave up that.

 

Continuing on... I didnât see an intro movie, but I got to a title screen (I think) and then I clicked around and it crashed:

 

> python TimeTrek.py

ffmpeg version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers

Movies/Preintro.avi: No such file or directory

Traceback (most recent call last):

File "TimeTrek.py", line 3129, in <module>

main()

File "TimeTrek.py", line 158, in main

imageload()

File "TimeTrek.py", line 3035, in imageload

bop[i] = pygame.image.load("Images/Bird of Pray/"+imgscale+"/bop00" + str(i+1).rjust(2,"0") + ".png")

pygame.error: Couldn't open Images/Bird of Pray/high/bop0001.png

 

 

The reason why it was saying:

 

Movies/Preintro.avi: No such file or directory

 

is because file names are case-sensitive under Linux and it should say Movies/PreIntro.avi (capital I not i)

 

Probably same thing with the bop0001.png.

 

Iâd suggest downloading and installing Ubuntu 14.04. Itâs so much fun to develop under Linux, and thereâs so many tools that itâs an embarrassment of riches.

 

Keep trying!

 

~ Michael

 

On Fri : Dec 26, 2014 10:58:01 AM you wrote:

> Hi guys,

>

> I've reworked my game (Time Trek) to use ffmpeg to play the movie

> sequences instead of the built-in movie module.

>

> I've coded it to work on Windows, Linux and Mac, but I'm unable to test

> on either Linux or Mac, so I'm not sure if it'll work on those.

>

> Here's a link to download it :-

>

> https://mega.co.nz/#!wJ1CyApC!f17uBGBzfds2D0gQN5hEkqBnqtOriYT3ECT4S6C-Yi8

>

> Because it doesn't require the movie module, it will now work with

> either python 2 or 3.

> It still requires pygame 1.9.2, and ffmpeg needs to be in the TimeTrek

> directory or in the path.

> Also at least a core 2 duo or better processor.

>

> Cheers,

>

> Ted.

>

> ---

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

> http://www.avast.com

>