Kodi Community Forum
PyGame support in XBMC? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: PyGame support in XBMC? (/showthread.php?tid=3329)

Pages: 1 2


PyGame support in XBMC? - febs - 2004-05-04

http://www.pygame.org/

thanx


- Hullebulle - 2004-05-04

ofcourse these libs are not part of the current python support.


- febs - 2004-06-25

is it possible to run pydance with the xbmc python interpreter? if not, would it take a big effort to make it pydance compatible? that's still a "media" stuff Wink

thanx


- febs - 2004-06-28

bump Smile


- darkie - 2004-06-28

no, not possible since you need the sdl library and a functional 'pygame' script. both will not work atm


- febs - 2004-06-28

"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

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

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

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

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

(sugarbee @ mar. 01 2006,13:14 Wrote: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

@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

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

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

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.