PDA

View Full Version : PyGame support in XBMC?


febs
2004-05-04, 14:57
http://www.pygame.org/

thanx

Hullebulle
2004-05-04, 22:30
ofcourse these libs are not part of the current python support.

febs
2004-06-25, 17:54
is it possible to run pydance (http://icculus.org/pyddr/) with the xbmc python interpreter? if not, would it take a big effort to make it pydance compatible? that's still a "media" stuff ;)

thanx

febs
2004-06-28, 17:47
bump :)

darkie
2004-06-28, 18:46
no, not possible since you need the sdl library and a functional 'pygame' script. both will not work atm

febs
2004-06-28, 19:53
"atm" means that it is possible to have them in queue for future releases (i mean, *after* the 1.0 thing)?

ty

darkie
2004-06-28, 20:30
don't know if it's possible but if it is, it's not going to be in before 2.0 :d

febs
2004-06-29, 09:47
that would be a fine think. also, sdl in xbmc would enable tons of other funny things. xbmc is almost an operating system right now...

sugarbee
2006-03-01, 15:14
hi!

i recently had a look at pygame, a python extension for writing games. i thought it must be pretty easy to port pygame to the xbox, as it basically only relies on two libraries: python and libsdl

there's a port of libsdl for the xbox and python is running on the xbox as well as part of xbmc.

but i did not really find much source code for the python port for the xbox. most of the python support in xbmc seems to be inside the python23.zlib. could someone explain me what exactly this is? could i just use it for my puposes (i guess i need the dllloader code to load it)? how was that file compiled? is there anything xbmc specific stuff in it?

i think it would be really cool to have pygame for the xbox as you can get lots of games for it which would then run on the xbox as well and also you could develop xbox games without having to get a xbox sdk.

thor918
2006-03-01, 21:59
don't think you can add that your self.
it uses this lib written in c++

http://www.libsdl.org/index.php
i guess xbmc devs got to port it for this to happen

Gamester17
2006-03-01, 22:18
i did not really find much source code for the python port for the xbox...look under \xbmc\xbmc\docs\ inthe source code tree (cvs), you should find a couple of files named libpython.rar and python_docs.rar

sugarbee
2006-03-02, 16:40
@thor918: who says that i cannot program c++? :-)
i want to take the c/c++ source code or libs and port it to the xbox. doesn't really have much to do with xbmc apart from it also has a python port included. would be great if i could reuse that...


@gamester17: thanks for the hint. unfortunately this only contains doc for the xbmc extensions for python and no info on how it was ported/implemented

drakethegreat
2006-03-02, 19:23
sounds kind of cool but i don't think this is a huge priority. we are talking about an xbox that supports game development already through the native api. since the python support is part of xbmc which the sole purpose of which is not to create a gaming platform, that means this isn't a priority.

i like the idea don't get me wrong but i think the xbmc developers could be working on stuff more important then porting libsdl to their python implementation.

sugarbee
2006-03-03, 02:48
hi guys!

there's still some misunderstanding here...
i am not asking to put support for pygame into xbmc. i do not ask the xbmc developers to port something for me (although i wouldn't mind though :)).
i actually would try to port pygame to the xbox on my own - as a standalone app, not as part of xbmc.

as i only have limited time and don't want to reinvent the wheel, i try to get some info to make my life a bit easier... :) and that's why i posted here to get some info about how python was ported to the xbox as part of xbmc. because i probably can reuse most of that!

sorry to confuse you...

darkie
2006-03-03, 13:44
in \xbmc\xbmc\docs you can find a rar file that contains all python sources that we have used to build the python library with.

python23.zlib is a zip file (just rename to zip and try) that contains all .py file from the python library directory.
in cvs/xbmc/xbmc/lib/python you will find the compiled libraries that are made from the sources in /docs.

the real problem is using libsdl. as far as i know libsdl can only be used if direct 3d is disabled, and since xbmc makes use of that it is not possible to use libsdl.

so the first thing that should be done before looking any further, is to get libsdl running under xbmc. but as said, i don't think that is possible.

thor918
2006-03-03, 18:27
@sugarbee
:d

sugarbee
2006-03-04, 01:06
@darkie: thanks for the info! this is what i was looking for!

actually gamester17 already pointed me to libpython.rar, but i missed it when i first read it... sorry.

about libsdl: darkie is right, you will run into trouble when trying to run libdsl under xbmc. but i plan to port pygame as standalone app, not as part of xbmc. so this shouldn't be a problem.

btw: is anyone around who would be interested using pygame on the xbox? or am i the only one wanting that?

archanox
2006-03-15, 11:05
hey sugarbee,
i was actually thinking about making some 'games' for xbmc using pygame. i did a seach and this came up. i would love to see this all implimented in xbmc because of all the predone work, such as the gui and the other python scripts on there. but having a standalone app for the xbox would be awesome especially if it has network support etc. i am starting to learn python right now but i am only upto just the command line stuff like hello world and asking the user their name. personally i think that using pygame under xbmc would be awesome!

well if you get any progress done just let us know.

jiz_king
2006-03-15, 15:02
pygame would enable the use of the python vnc client. i like that idea.

diagdave@msn.com
2006-11-20, 17:54
has anyone looked at porting pygame or does is it iimpossible

diagdave@msn.com
2006-11-28, 17:23
iv'e started a port of pygame, at the moment its very slow runs at about 10frames a sec. i don't think a direct port will work. so that means games will have to be rewritten, or made using the lib(from scratch) ill let you no when its dun.

hicaow
2006-11-28, 18:50
nice! .. keep us posted .. lemme know if u need anyone to test anything :]