I like how you make Python to work for Lua in C++. :v:
So is this compatible with the TK library?
[QUOTE=Entoros;18141377]I like how you make Python to work for Lua in C++. :v:
So is this compatible with the TK library?[/QUOTE]
It's a real python state, it should be, haven't tested it though.
EDIT: In trying to test it, I see I need to fix tcl up, results later.
Also, updated python26.dll and python26.zip to 2.6.4 from 2.6.2.
Why not use python 3.1? I have that on my computer.
Python 3.1 is not compatible with a lot of the 3rd party modules and stuff yet.
You should use the webcam-script, and Lua Animations API to do something sweet. I'll leave the rest up to you.
Easier said than done.
Can you pass variables from Lua scripts out to the Python scripts?
If that's possbile, I've got an idea for something utterly pointless, but still interesting in concept.
[QUOTE=robowurmz;18262517]Can you pass variables from Lua scripts out to the Python scripts?
If that's possbile, I've got an idea for something utterly pointless, but still interesting in concept.[/QUOTE]
Yeah, you run python functions through the Lua py.RunString() functions anyway.
So basically (LUA CODE)
args = whatever you want
py.RunString('pythonFunction('..args..')')
PYTHON CODE:
def pythonFunction(args):
print args
#do something with the arguments passed
There's not really any other ways of accessing Lua variables AFAIK. That's the simplest way.
[QUOTE=TehDoomCat;18102705][b]Oh fuck yes.[/b]
Unrestricted Python in GMod, with an interface through Lua, is pretty ingenious.
- [b]Asynchronous Server, running on seperate thread from game[/b]
- Use the libraries of OpenCV, which include a fuckload of Webcam motion tracking stuff
- Shift over complex maths to NumPy, SciPy, etc., optionally in independent threads, since something tells me that C maths libs are gonna be quicker than doing math in pure GLua
- Other awesome python shit
:words:[/QUOTE]
Are you telling me I can run a game server... from another game
Now if we had one of these for PHP, I know I can because I've made a telnet server after following tutorials
[editline]10:01AM[/editline]
and I can access people's webcams (if they have the module client-side, which would be a horrible idea) and make files and run math and other awesome python shit
[editline]10:03AM[/editline]
does python have a face detection thing? We could have it detect if you're smiling or frowning and make your person do it
What retard downloaded this module 380 times?
Passing python values is done by concatenating the string like this
py.RunString("asdf = " .. 1)
or for a string
fe = 'asdf'
py.RunString("asdf = '" .. fe .. "'")
EDIT: Wow. 455 downloads. 452 are fake. Can someone please stop auto downloading it.
EDIT: OVER 2000 DOWNLODS GUISE THIS IS SOOOOO POPLAR
[QUOTE=yakahughes;18272159]EDIT: OVER 2000 DOWNLODS GUISE THIS IS SOOOOO POPLAR[/QUOTE]
It's you isn't it. Still can't get over gm_ruby having over 100 downloads?
I would use this if I knew anything about Python.
[QUOTE=jA_cOp;18378078]It's you isn't it. Still can't get over gm_ruby having over 100 downloads?[/QUOTE]
[quote=yakahughes]EDIT: Wow. 455 downloads. 452 are fake. Can someone please stop auto downloading it.
EDIT: OVER 2000 DOWNLODS GUISE THIS IS SOOOOO POPLAR[/quote]
Did you read my whole post? I know sarcasm doesn't carry well over the internets, but that was pretty obvious. And gm_ruby doesn't have over 100 downloads, it has maybe 4 real ones.
No, I'm not downloading this. I haven't downloaded it even once. Some guy is spamming downloads on both gm_ruby and gm_python. The current release of gm_python probably has < 10 downloads, and gm_ruby probably has equal or less. Isn't it wierd that that guy had 3 posts before he released his ruby module, 4 posts after, and hasn't posted since?
[QUOTE=yakahughes;18380577]it has maybe 4 real ones.[/QUOTE]
Who are you to say? :sigh:
gm_ruby has more usefuls than gm_python.
Perhaps you should rethink your design for more usefulness.
I don't really see how either are useful.
[QUOTE=VoiDeD;18421022]gm_ruby has more usefuls than gm_python.
Perhaps you should rethink your design for more usefulness.[/QUOTE]
Fail.
This module was made before the ruby module, and the ruby module has the exact same functions as mine, except less. You can't run lua code from ruby, or set lua variables from ruby with the ruby module. Did you even read both of the first posts for each of the modules before you made that brainless post? The guy even posted in the exact same format as mine was posted.
[quote=jA_cOp]Who are you to say?[/quote]
Who is anyone to say mine doesn't have 2157 real downloads then.
kp3, these are useful only if you know ruby or python, and they enable you to do far more things than you could do with just lua.
Whilst you've been bickering - I've been looking into my hand-gesture thing... Looking for quicker algorithms which don't lag the game when used in realtime. There's not much in terms of open papers or anything on it out there. Lots of examples of it working on youtube, but my god, for all the university projects based on it, no-one's done any papers on it. This makes me angry inside.
Debate all you want about which language is better based on the accusedly forged download count all you like, I'm looking for actual useful things to do with gm_python. If there was a stable port of OpenCV to Ruby, I'd be doing it on both languages.
I'm gonna see whether I can get something functional from early on, so I'm skipping hand-detection and working on the position of coloured markers on camera, for now.
"import skynet"
[QUOTE=ZenX2;18462204]"import skynet"[/QUOTE]
I improved it a little:
[lua]
from skynet import nuke, domination
target = nuke.RecipientFilter("World")
nuke.All(target)
domination.Screw(target)
domination.Victory()[/lua]
[QUOTE=ZenX2;18462204]"import skynet"[/QUOTE]
what has science done
don't forget
[php]import soul[/php]
Does anyone still have the source for this? I need a linux compiled binary.
does it work at all anymore? this download is like 2 years old bro
updates probably broke it
I think it should be remade as a VSP(valve serve rplugin) so that we can have ACTUAL python (like in evenscripts for css), which are being read from .py files , entierly written with python.
Sorry, you need to Log In to post a reply to this thread.