|
| |||||||
| Wiremod General Chat All general wiremod discussion/chat. |
![]() |
| | LinkBack (2) | Thread Tools | Display Modes |
| | #11 (permalink) |
| Luv Guru ![]() ![]() Join Date: Feb 2008 Location: London, ON (Canada, eh?)
Posts: 734
![]() ![]() | I feel like coding now. ![]() Really cool program.
__________________ WIREMOD WILL NOT WORK ON A PIRATED GMOD! ![]() ![]() MY COLOUR IS BLUE. Post your expressions here: www.wiredexpressions.tk It's my favourite country song. And I hate it. |
| | |
| Sponsored Links | |
| | #12 (permalink) |
| Advanced Member ![]() Join Date: Mar 2007 Location: Amersfoort, the Netherlands
Posts: 266
![]() | Nice! <3. Have a cookie!
__________________ ![]() ^ 51mbps Fiber ftw [03:32] <ITSBOT> lua serializing function to be intergrated into xbox live [03:34] <ITSBOT> no girlfriend for a pineapple under the Channels |
| | |
| | #13 (permalink) | |
| Advanced Member ![]() Join Date: Sep 2007
Posts: 118
![]() | Alright, I've made a Constant value chip, there's one thing I need to know. Hooks for Think and When the object is wired up. Here we go: Code: Ent:setpic("Addons/Default/images/constant.png");
VA="";
VB="";
VC="";
VD="";
function init()
Ent:setOutputs("A,B,C,D")
Ent:setInputs("")
Settings:addtextinput("Value A","0")
Settings:addtextinput("Value B","0")
Settings:addtextinput("Value C","0")
Settings:addtextinput("Value D","0")
Settings:finalize()
Settings:show()
end
function click()
Ent:triggerOutput("A",VA)
Ent:triggerOutput("B",VB)
Ent:triggerOutput("C",VC)
Ent:triggerOutput("D",VD)
end
function settingsUpdated()
VA=Settings:getstring("Value A")
VB=Settings:getstring("Value B")
VC=Settings:getstring("Value C")
VD=Settings:getstring("Value D")
end
__________________ Quote:
A: Two. One to hold the bulb and one to rotate the universe. Last edited by joeyjo0; 06-09-2008 at 01:16 PM.. | |
| | |
| | #14 (permalink) |
| Advanced Member ![]() | Yay, people already making their own chips! Hooks for think (e.g. screen update) and onOutputLink/onInputLink are coming in the next release. Coming Soon:
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| | #15 (permalink) |
| Luv Guru ![]() ![]() Join Date: Feb 2008 Location: London, ON (Canada, eh?)
Posts: 734
![]() ![]() | WTF U D1Dn't M@k3 a11 teh gatez!
__________________ WIREMOD WILL NOT WORK ON A PIRATED GMOD! ![]() ![]() MY COLOUR IS BLUE. Post your expressions here: www.wiredexpressions.tk It's my favourite country song. And I hate it. |
| | |
| | #16 (permalink) |
| Administrator ![]() ![]() ![]() Join Date: Feb 2007 Location: California, USA
Posts: 1,313
![]() | if you simulate enough of the gmod lua functions, you could reuse the original wire lua files
__________________ "When in doubt, use more explosives" - Jamie Hyneman "Yes, managing the anonymous activity of the entire Internet is a challenge. Shoving the entire universe into a mason jar for use as a personal flashlight would also be a pesky bother." - Karl, BBR |
| | |
| | #17 (permalink) |
| Advanced Member ![]() | I thought about that, then.... :P Just soooo many GMod functions that people rely on, and even then you couldn't just copy&paste the lua files...
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| | #19 (permalink) | |
| Advanced Member ![]() Join Date: Sep 2007
Posts: 118
![]() | New setting ideas: Settings:addnumpadinput() Settings:addcheckboxinput() Settings:addRadiobuttoninput() //This will need 3 args: Label, default value and Group. Settings:addintinput() //This will make the arrows that can change the value up/down.
__________________ Quote:
A: Two. One to hold the bulb and one to rotate the universe. | |
| | |
| | #20 (permalink) |
| Advanced Member ![]() | Ironically. those inputs are already implemented/working :P (except for the numpad and radiobutton) I just removed them out of the default Lua. More docs coming soon, since hose names are not correct.
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| Sponsored Links | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.wiremod.com/forum/wiremod-general-chat/5263-wiresim-scriptable-wiremod-simulator.html | ||||
| Posted By | For | Type | Date | |
| cpfx.ca - My Work | This thread | Refback | 07-06-2008 02:11 PM | |
| Garry's Mod 2007: We can build it. We have the Orange Box technology - The Something Awful Forums | This thread | Refback | 06-12-2008 06:22 AM | |
|