Magic Sam
Forever Homebrew
Hi,
I think GP2X lacks racing games. As a result, I decided to port a "small" python racing game to the GP2X, pyRacerz
I'm quiet new to python and I thought it would be a nice training
I have installed a working python environment on my GP2X with the help of this tutorial
My *.gpe to run the game reads as follow:
CODE
PYTHONHOME=/mnt/sd/python
export PYTHONHOME
PYTHONPATH=${PYTHONHOME}/lib/python2.4/site-packagesPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python24.zipPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python2.4/lib-dynloadPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python2.4PYTHONPATH
PYTHONPATH=${PYTHONHOME}PYTHONPATH
export PYTHONPATH
LD_LIBRARY_PATH=${PYTHONHOME}/extras{LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
/mnt/sd/python/python -v /mnt/sd/pyRacerz-0.2/pyRacerz.py --resolution 320x240 > /mnt/sd/pyRacerz_output.txt 2>&1
cd /usr/gp2x
./gp2xmenu
BUT, when I launch the game, python displays this in pyRacerz_output.txt :
CODE
Traceback (most recent call last):
File "/mnt/sd/pyRacerz-0.2/pyRacerz.py", line 29, in ?
import misc
ImportError: No module named misc
The afore mentioned line 29 is here:
CODE
sys.path.append("modules")
import misc
import player
import game
import menu
import track
import replay
import challenge
This error doesn't occur when I run the game "normally" under Linux, the misc module is found (in /modules/misc.py), initialization goes on and the game works...
I have to say that I didn't expect the game to work immediately, and that tweaking would be necessary. What I didn't expect was that kind of error...
Any ideas about what I am doing wrong ?
Thanks for your help
Magic Sam
I think GP2X lacks racing games. As a result, I decided to port a "small" python racing game to the GP2X, pyRacerz
I'm quiet new to python and I thought it would be a nice training
I have installed a working python environment on my GP2X with the help of this tutorial
My *.gpe to run the game reads as follow:
CODE
PYTHONHOME=/mnt/sd/python
export PYTHONHOME
PYTHONPATH=${PYTHONHOME}/lib/python2.4/site-packagesPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python24.zipPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python2.4/lib-dynloadPYTHONPATH
PYTHONPATH=${PYTHONHOME}/lib/python2.4PYTHONPATH
PYTHONPATH=${PYTHONHOME}PYTHONPATH
export PYTHONPATH
LD_LIBRARY_PATH=${PYTHONHOME}/extras{LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
/mnt/sd/python/python -v /mnt/sd/pyRacerz-0.2/pyRacerz.py --resolution 320x240 > /mnt/sd/pyRacerz_output.txt 2>&1
cd /usr/gp2x
./gp2xmenu
BUT, when I launch the game, python displays this in pyRacerz_output.txt :
CODE
Traceback (most recent call last):
File "/mnt/sd/pyRacerz-0.2/pyRacerz.py", line 29, in ?
import misc
ImportError: No module named misc
The afore mentioned line 29 is here:
CODE
sys.path.append("modules")
import misc
import player
import game
import menu
import track
import replay
import challenge
This error doesn't occur when I run the game "normally" under Linux, the misc module is found (in /modules/misc.py), initialization goes on and the game works...
I have to say that I didn't expect the game to work immediately, and that tweaking would be necessary. What I didn't expect was that kind of error...
Any ideas about what I am doing wrong ?
Thanks for your help
Magic Sam