Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
37 user(s) are online (29 user(s) are browsing Forums)

Members: 2
Guests: 35

afxgroup, flash, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3) 4 5 »
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@spotUP

O_O !!!!

OR NOT!!.... :D

It works! THANK YOU HJF!

Resized Image

Go to top
Re: Pygame?
Amigans Defender
Amigans Defender


See User information
@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
Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@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 17:20:09
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@kas1e

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

Go to top
Re: Pygame?
Quite a regular
Quite a regular


See User information
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
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@Mrodfr

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

Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
Invention are in upload query on os4depot, and Panspermia in uploading query too !

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@kas1e

they are released now kas1e, keep going! :)

Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@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!
AmigaOS4 on youtube
Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@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.

Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@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... :)

Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
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

Go to top
Re: Pygame?
Just can't stay away
Just can't stay away


See User information
@spotUP

ctypes probably needs to be cross compiled.. :/

Go to top
Re: Pygame?
Home away from home
Home away from home


See User information
@spotUP

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

And where did you find that ctype?

X5000
Go to top

  Register To Post
« 1 2 (3) 4 5 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project