@spotUP Don't forget that you can use my ListDynDep tool (similar to ldd on Linux) on Python modules as well. This lists the dependencies and where they are being loaded from which I have found really useful.
@spotup I tryed your first release python based game on os4depot (Marinerescue), and, for first download pygame, install going fine, say all done, then unpack marinerescue, double click on icon, intro skip, then say first time "you not have sdlffl_so" and after pressing on OK, memguar give me some memory HITS in the debug window (but all still works fine).
So, i install libsdl_ttf.so, then run again - nothing (silence), so, i trying from the shell: Quote:
14/0.Work:a/MarineRescue> python run_game.py Hello from your game's main() Traceback (most recent call last): File "run_game.py", line 12, in <module> main.main() File "RAM Disk:MarineRescue/lib/main.py", line 14, in main print data.load('sample.txt').read() File "RAM Disk:MarineRescue/lib/data.py", line 20, in load return open(os.path.join(data_dir, filename), mode) IOError: [Errno 2] No such file or directory: 'Work:a/MarineRescue/lib/../data/sample.txt'
14/1.Work:a/MarineRescue>
EDIT: add manually hardcoded path for the Data directory in the Lib/Data.Py, like that: Quote:
@spotUP Mobius works just fine .. And it very cool game should to say :) Fast , good looking and with sounds/music. A bit sad that too small window by default, but its nice anyway , and full-screen mode are here too.
aha cool. yea, i liked that game a lot! polished menues and nice gameplay and music etc... damn, i have to work for some hours now, hehe that leaves you with all the nice titles to port... grr :D
"PanSpermia" are cool game too , tested now, works, but, have the same problem as with Marine:
Quote:
14/0.RAM Disk:panspermia> python run_game.py Traceback (most recent call last): File "run_game.py", line 14, in <module> main.main() File "RAM Disk:panspermia/gamelib/main.py", line 94, in main startup() File "RAM Disk:panspermia/gamelib/main.py", line 8, in startup cursor.startup() File "RAM Disk:panspermia/gamelib/cursor.py", line 52, in startup rarrow = data.loadimg("turnarrow.png").convert_alpha() File "RAM Disk:panspermia/gamelib/data.py", line 18, in loadimg return pygame.image.load(filepath(filename)).convert_alpha() pygame.error: Couldn't open RAM Disk:panspermia/gamelib/../data/turnarrow.png
So, i make again hardcore path in the lib/data.py.
Strange .. Btw, if i also do: Quote:
14/0.RAM Disk:panspermia> list ram:panspermia/gamelib/../data/turnarrow.png LIST: No information for "ram:panspermia/gamelib/../data/turnarrow.png". LIST: объект не найден
But file is here. I.e. that /../ are not works looks like for me by some reassons (hm).
yea, didn't work for me either. python doesn't like unix paths. i just added a .. dir in gamelib/ as a short term solution. i don't know where to change the paths yet.
I.e. just comment out these 2 lines in the data.py file, and only add data_dir = 'data' (can you change it please, and reupload marine ? )
Ps. right now prepare archives for upload of PanSpermia and Invention. Boch are really quality. One are some kind of modern "flash" game (panspermia), and other one Invention are the lemmings but with good gfx and music ! Roked time ! (so if you will works on other ports, you can skip these 2 for now).
OpenGL module are must, many good looking games use it (check amigaworld thread, i mark in my "list" post which ones are want opengl module) already (not all checked for now, but some of them).
Ps. "Buggy Game" works fine, pretty nice looking too :) Sadly that i need to go when flood gate are open :) I only fear if someone will fillup os4depot by crappy games :) Btw, maybe better to create in new directory on os4depot, like games/python/ ?
as for the crap stuff... :D i mark my stuff as crap with the crap games compilations. they have a purpose, to stop others from wasting time on those games. and to some people a game is crap, and to others it's not... soo... :)
i am compiling pyopengl now.. wish me luck. i'll need it :P edit: ahem.. built and installed.. let's see if it works. edit: hmmm i tried a game now..
7.RAM Disk:allefant5_pyweek> python run_game.py Traceback (most recent call last): File "run_game.py", line 15, in <module> import main File "RAM Disk:allefant5_pyweek/lib/main.py", line 8, in <module> import run File "RAM Disk:allefant5_pyweek/lib/run.py", line 51, in <module> import pygame, sys, os, math, data, sys, edit File "RAM Disk:allefant5_pyweek/lib/edit.py", line 2, in <module> from sprites import Python, Lever, Laser File "RAM Disk:allefant5_pyweek/lib/sprites.py", line 1, in <module> from picture import Picture File "RAM Disk:allefant5_pyweek/lib/picture.py", line 2, in <module> from OpenGL.GL import * File "PYTHON:Lib/site-packages/OpenGL/GL/__init__.py", line 2, in <module> from OpenGL.raw.GL import * File "PYTHON:Lib/site-packages/OpenGL/raw/GL/__init__.py", line 6, in <module> from OpenGL.raw.GL.constants import * File "PYTHON:Lib/site-packages/OpenGL/raw/GL/constants.py", line 6, in <module> from ctypes import * File "PYTHON:Lib/ctypes/__init__.py", line 10, in <module> from _ctypes import Union, Structure, Array ImportError: No module named _ctypes
_ctypes?...
if i try to build ctypes i get this error:
cd build/temp.ppc-amiga-2.5/libffi && env CFLAGS='' 'RAM Disk:ctypes-1.0.2/source/libffi/configure' CD: wrong number of arguments cd stopped, felkod 20