Go Back   Wiremod Forums > Wiremod > Wiremod General Chat

Wiremod General Chat All general wiremod discussion/chat.

Reply
 
LinkBack (2) Thread Tools Display Modes
Old 06-09-2008   #11 (permalink)
Luv Guru

 
IEF015's Avatar
 

Join Date: Feb 2008
Location: London, ON (Canada, eh?)
Posts: 734
IEF015 has a spectacular aura aboutIEF015 has a spectacular aura about
Default Re: WireSim- The Scriptable WireMod Simulator

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.
IEF015 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 06-09-2008   #12 (permalink)
Advanced Member
 
dnifan's Avatar
 

Join Date: Mar 2007
Location: Amersfoort, the Netherlands
Posts: 266
dnifan is on a distinguished road
Default Re: WireSim- The Scriptable WireMod Simulator

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
dnifan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-09-2008   #13 (permalink)
Advanced Member
 
joeyjo0's Avatar
 

Join Date: Sep 2007
Posts: 118
joeyjo0 is on a distinguished road
Default Re: WireSim- The Scriptable WireMod Simulator

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
I made it so you need to click on it to make it refresh.
__________________
Quote:
Originally Posted by Black Phoenix
lol joey, backwards action time
Q: How many theoretical physicists specializing in general relativity does it take to change a light bulb?
A: Two. One to hold the bulb and one to rotate the universe.

Last edited by joeyjo0; 06-09-2008 at 01:16 PM..
joeyjo0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-09-2008   #14 (permalink)
cpf
Advanced Member
 
cpf's Avatar
 

Join Date: Nov 2007
Posts: 371
cpf is on a distinguished road
Send a message via MSN to cpf Send a message via Skype™ to cpf
Default Re: WireSim- The Scriptable WireMod Simulator

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:
  • More fun hooks, like mouseDown/mouseUp, and the ones mentioned above
  • Adding controls to chips (for value displays, digital screen)
  • More default chips
  • Changing the way settings dialogs are displayed/interacted with (no, this shouldn't break anyone's code). These will be changes like the settings dialog not coming up in a seperate window, but in the "tooltip."
  • Autoupdater (to replace SVN eventually)
  • Documentation of all Lua functions :D
  • Actual Console (instead of that measly log window) with the standard commands like ent_fire, etc.
  • Some fun graphics effects
Also, any comments on the graphics?
__________________
WireSim.com
Why does everybody say CPF? it's cpf :P
Hey, look! It's a tutorial on using LuaInterface!
cpf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-09-2008   #15 (permalink)
Luv Guru

 
IEF015's Avatar
 

Join Date: Feb 2008
Location: London, ON (Canada, eh?)
Posts: 734
IEF015 has a spectacular aura aboutIEF015 has a spectacular aura about
Default Re: WireSim- The Scriptable WireMod Simulator

Quote:
Originally Posted by cpf View Post
Also, any comments on the graphics?
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.
IEF015 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-09-2008   #16 (permalink)
Administrator


 
tad2020's Avatar
 

Join Date: Feb 2007
Location: California, USA
Posts: 1,313
tad2020 has disabled reputation
Default Re: WireSim- The Scriptable WireMod Simulator

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
tad2020 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-09-2008   #17 (permalink)
cpf
Advanced Member
 
cpf's Avatar
 

Join Date: Nov 2007
Posts: 371
cpf is on a distinguished road
Send a message via MSN to cpf Send a message via Skype™ to cpf
Default Re: WireSim- The Scriptable WireMod Simulator

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!
cpf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2008   #18 (permalink)
Newbie
 
Cael's Avatar
 

Join Date: Mar 2008
Posts: 26
Cael is on a distinguished road
Default Re: WireSim- The Scriptable WireMod Simulator

D: Mine seems so insignificant compared to yours. Great work, though!
Cael is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2008   #19 (permalink)
Advanced Member
 
joeyjo0's Avatar
 

Join Date: Sep 2007
Posts: 118
joeyjo0 is on a distinguished road
Default Re: WireSim- The Scriptable WireMod Simulator

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:
Originally Posted by Black Phoenix
lol joey, backwards action time
Q: How many theoretical physicists specializing in general relativity does it take to change a light bulb?
A: Two. One to hold the bulb and one to rotate the universe.
joeyjo0 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-10-2008   #20 (permalink)
cpf
Advanced Member
 
cpf's Avatar
 

Join Date: Nov 2007
Posts: 371
cpf is on a distinguished road
Send a message via MSN to cpf Send a message via Skype™ to cpf
Default Re: WireSim- The Scriptable WireMod Simulator

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!
cpf is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -7. The time now is 03:49 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.

Page top