Function support?!?!?! If I try it and it works you are getting rep+
Just so you know, Colonel Thirty Two is my in-game username.
I have stopped working on this in favor of Starfall. It's in the same SVN.
The SVN for v2 is at: https://col32swiremodaddons.googlecode.com/svn/
The home page for it is at: col32swiremodaddons - Project Hosting on Google Code
Wiki page for v2 (being written): Colonel Thirty Two's Wire Addons - GMod Wiki
Last edited by Colonel Thirty Two; 11-17-2010 at 03:31 PM.
OH MY GOD THIS WHAT EVERYBODY HAS BEEN ASKING FOR FOREVER!
(lowercase)
Is...Is it real?
No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.
http://somone77.net
Check it out and see
I plan to edit the parser+compiler to support "calling" a variable.
Last edited by Colonel Thirty Two; 05-16-2010 at 12:59 PM.
So UDF?!? But is it E2 udf, or do you write the lua of the function in the e2? Either way, AWESOME!!!!!!!!
--Orson Scott CardIn [his] experience that was a sentence never to be uttered except to prove its own inaccuracyI'm not stupid!
Your documentation on the functions is, no offence, awful. I can't get the virtualizer to work at all. In the readme you say to use code:<something>, the E2 says that code needs to have () after it, when I do that it says no such function. Can you give an example code for these?
No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.
http://somone77.net
Okay, here's an example program for the virtualizer:
This will try to compile whatever you say in chat. Ex. If I said "entity():setColor(vec(0,0,0))" the chip will turn black. code:<whatever> just means that it is a method of code, likeCode:@persist Code:code runOnChat(1) if(chatClk(owner())) { TempCode = virtCompile(lastSaid()) if(TempCode) { Code = TempCode Code:exec() } else { hint(virtLastError(),4) } }
I'll put this in the readme.
No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.
http://somone77.net
No, you give the inputs to the virtualized program via passing a table to the exec function, and get outputs by calling Code:getOutputs(). Inputs and outputs in virtualized code are defined by the @inputs, ect syntax in the code string.
EDIT: Example static code:
Code:String = "@inputs Stuff:vector \n"+ "entity():applyForce(stuff)" Code = virtCompile(String) Args = table() Args["Stuff",vector] = vec(0,0,1000) Code:exec(Args)
Bookmarks