PyTorque - TGE Python Module
by Prairie Games · in Torque Game Engine · 02/18/2003 (12:39 am) · 29 replies
This is from my current .plan, a forum thread is probably in order though...
----
Torque + Python madness is far from over...
I have been kicking around extending vs. embedding for the last while... for a slightly rambling discussion on the topic see HERE
I decided to have a go at setting Torque up as a standard python extension instead of embedding Python in Torque...
It turned out to be damned easy... and "The Way to Go"(tm)...
1) Compile Torque as a shared library (.dll, .so, .whatever)
2) Rearrange TGEPython's embedding code as an extension
PyTorque was born... it is compatible with TGEPython... though, in honor of it's truly Pythonic rebirth, I do think a name change is in order...
What does this mean? Well, it's possible to redistribute pytorque.pyd and people can simply ->
import pytorque
-> into their python programs... there is no EXE!!!! No need to compile any C++ !!! This means that Python programs can use Torque without owning the SDK ... which is perhaps a bit interesting :)
It mostly means that PyTorque will play nicely with other Python modules instead of forcing it's entry point and main loop... Torque becomes a very powerful, very standard, Python module ... SwEeTCoRn!!!!
You can download a little windows only demo HERE... just drop the two files into your examples folder and execute torqueDemo.py ... warning, it doesn't visibly do a whole lot... but it is pretty nifty anyway... it was compiled for python 2.2
I will need help on the linux and mac build when it's ready... there's a fair amount of work to get this doing all the things it should!!!!
-J
----
Torque + Python madness is far from over...
I have been kicking around extending vs. embedding for the last while... for a slightly rambling discussion on the topic see HERE
I decided to have a go at setting Torque up as a standard python extension instead of embedding Python in Torque...
It turned out to be damned easy... and "The Way to Go"(tm)...
1) Compile Torque as a shared library (.dll, .so, .whatever)
2) Rearrange TGEPython's embedding code as an extension
PyTorque was born... it is compatible with TGEPython... though, in honor of it's truly Pythonic rebirth, I do think a name change is in order...
What does this mean? Well, it's possible to redistribute pytorque.pyd and people can simply ->
import pytorque
-> into their python programs... there is no EXE!!!! No need to compile any C++ !!! This means that Python programs can use Torque without owning the SDK ... which is perhaps a bit interesting :)
It mostly means that PyTorque will play nicely with other Python modules instead of forcing it's entry point and main loop... Torque becomes a very powerful, very standard, Python module ... SwEeTCoRn!!!!
You can download a little windows only demo HERE... just drop the two files into your examples folder and execute torqueDemo.py ... warning, it doesn't visibly do a whole lot... but it is pretty nifty anyway... it was compiled for python 2.2
I will need help on the linux and mac build when it's ready... there's a fair amount of work to get this doing all the things it should!!!!
-J
#23
Or do you mean you have issues with TGE not being GPLed ?
'Cause since you made it for TGE, and that Python is not GPLed, what possible issues could there be outside you not agreeing with the TGE's licensing terms ?
Do you also mean that you do not want people to build on it, or redistribute it ?
And, since you did a public release originally, is there any weight to you saying it's dead ? e.g what's to stop someone from using it as a foundation for Python support in TGE ?
10/06/2004 (8:11 am)
Josh, could you elaborate on the PyTorque having issues with the TGE EULA ?Or do you mean you have issues with TGE not being GPLed ?
'Cause since you made it for TGE, and that Python is not GPLed, what possible issues could there be outside you not agreeing with the TGE's licensing terms ?
Do you also mean that you do not want people to build on it, or redistribute it ?
And, since you did a public release originally, is there any weight to you saying it's dead ? e.g what's to stop someone from using it as a foundation for Python support in TGE ?
#24
If you stay within the EULA, you can certainly build/expand PyTorque... it's only dead to me.
-Josh
10/06/2004 (8:22 am)
PyTorque was another way of using and building the engine (and I showed several very powerful applications of it)... The TGE EULA allows redistribution solely in the form of a game... see Mark Frohnmayer's post above... If you stay within the EULA, you can certainly build/expand PyTorque... it's only dead to me.
-Josh
#25
Did you ever release PyTorque ?
I seem to recall you had only released tgePython, which is the one I had in mind, when I made that comment (and the one I demoed at the Montreal Blender Open Source Launch Party back in 2002 ;))
10/06/2004 (4:33 pm)
Oh, right, I got tgePython and pyTorque mixed up, my bad ;)Did you ever release PyTorque ?
I seem to recall you had only released tgePython, which is the one I had in mind, when I made that comment (and the one I demoed at the Montreal Blender Open Source Launch Party back in 2002 ;))
#26
I'm doing this primarily for my own game but will release it if there's interest.
10/07/2004 (11:39 pm)
I'm also working on a lightweight version of python for torque which is more tightly integrated with the engine. This is a new implementation of python from scratch specifically for use with torque. I'm doing this primarily for my own game but will release it if there's interest.
#27
10/09/2004 (6:26 am)
There's always interest where Python is concerned! :)
#29
I downloaded them "back in the day", had some HD failures and am dismayed to find that there doesn't appear to be any way to get either one now.
04/03/2005 (2:45 pm)
Quick question -- the download links for both PyTorque and TGEPython seem to be quite dead.I downloaded them "back in the day", had some HD failures and am dismayed to find that there doesn't appear to be any way to get either one now.
Torque Owner Prairie Games
Prairie Games, Inc.
PyTorque is dead... it also has issues with Torque's EULA...
There has been some recent interest in TGEPython (embedded Python for Torque) ... maybe look at this work...
-Josh Ritter
Technical Director
Prairie Games