Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
46 user(s) are online (39 user(s) are browsing Forums)

Members: 0
Guests: 46

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 2 (3) 4 5 »


Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@spotUP

O_O !!!!

OR NOT!!.... :D

It works! THANK YOU HJF!

Resized Image

   Report Go to top

Re: Pygame?
Amigans Defender
Joined:
2006/11/26 23:16
From Canada
Posts: 985
@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.

See OS4Depot.

The tool should probably be included in the next SDK.

_________________
ExecSG Team Lead
   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
@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:

data_dir = os.path.normpath(os.path.join(data_py, 'work:a/MarineRescue/', 'data'))

And then it start to work, but by default are not


Edited by kas1e on 2010/8/18 16:20:09
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

strange, try the just uploaded mobius skies and see if it works. it works fine here.

   Report Go to top

Re: Pygame?
Quite a regular
Joined:
2008/10/14 18:36
From France
Posts: 647
hello,

even if reported as slow, please test again:

http://bub-n-bros.sourceforge.net/

on a real amiga. thanks.

_________________
A1200+Mediator+VooDoo3+060/50+96mo+IIYAMA 17"+CD,CDRW,ZIP SCSI-KIT
SAM440EP on Mapower 3000+AOS4.1

Amiga Docs Disk Preservation Project
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@Mrodfr

i looked at it, it requires a lot of work.

   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
@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.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

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

   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
@spotUP

"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).

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

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.

   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
@spotUP

I found the solution (in sources of some other games):

Quote:

#data_py = os.path.abspath(os.path.dirname(__file__))
#data_dir = os.path.normpath(os.path.join(data_py, '..', 'data'))
data_dir = 'data'


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

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
Invention are in upload query on os4depot, and Panspermia in uploading query too !

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

they are released now kas1e, keep going! :)

   Report Go to top

Re: Pygame?
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5385
@spotUP

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/ ?

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@ssolie

i compiled numeric earlier, a python module, but python failed to "see" it?
would you mind taking a look at it?
the compilation was simple.

   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

a python dir on os4depot is not a good idea.
the gamer is not interested in what language it is written in.
he wants to know what kind of game it is.

   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@kas1e

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... :)

   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
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

hmm hmm

   Report Go to top

Re: Pygame?
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1429
@spotUP

ctypes probably needs to be cross compiled.. :/

   Report Go to top

Re: Pygame?
Home away from home
Joined:
2006/11/30 18:43
From Norway
Posts: 2470
@spotUP

Probably shooting in the sky, but maybe it doesn't like the path? The ram disk.....???

And where did you find that ctype?

_________________
Sam460 Lite
   Report Go to top


« 1 2 (3) 4 5 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project