|
| |||||||
| Wiremod General Chat All general wiremod discussion/chat. |
![]() |
| | LinkBack (2) | Thread Tools | Display Modes |
| | #191 (permalink) |
| <3 ![]() ![]() Join Date: Feb 2008 Location: London, ON (Canada, eh?)
Posts: 765
![]() ![]() | Don't kill yourself by coding too much. I made the CPU mainly for large input/ouput amounts. (Or just incase someone decides to make the Expression/CPU gate XD ) Also, I'm making more pictures for my next pack (Which is mainly "Selection" gates). So, if I were going to make a Router chip, I don't think a Adding chip would be appropriate. So, I'll make a good Router picture. :P
__________________ Signature: 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's got his own website :3 |
| | |
| Sponsored Links | |
| | #192 (permalink) |
| Advanced Member ![]() | What?! I thought death by overcoding was the leading cause of mortality among young programmers! ![]() Anyways, sounds interesting
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| | #193 (permalink) |
| Advanced Member ![]() | OK, looks like my host has a dumb policy involving not allowing hosting of .EXEs. This means that I'll have to pull the Launcher.exe download, though due to some file extension fiddling, you'll still be able to use WS until I get this sorted. I'll attach the launcher to the main post, too. Ok, got that under control
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! Last edited by cpf; 08-09-2008 at 07:04 PM.. |
| | |
| | #194 (permalink) |
| <3 ![]() ![]() Join Date: Feb 2008 Location: London, ON (Canada, eh?)
Posts: 765
![]() ![]() | OK. I'm having trouble with a Min/Max gate. Here's the code: Code: val=2
maxv=true
a=0
b=0
c=0
d=0
function buildSettingsDiag()
Settings:addnumberinput("Values",2,4,2)
Settings:addboolinput("Min/Max Off=Min",false)
Settings:finalize()
Sys:log("Rebuilt settings diag")
end
function init()
Ent:setpic("Addons/Default/images/add.png")
Ent:setOutputs("Out")
buildSettingsDiag()
Settings:show()
end
function initFromSave()
buildSettingsDiag()
end
function triggerInput(input,value)
if input=="A" then
a=value
elseif input=="B" then
b=value
elseif input=="C" then
c=value
elseif input=="D" then
d=value
end
if (val=="2.00") then
if (maxv==false) then
Ent:triggerOutput("Out",min(a,b))
else
Ent:triggerOutput("Out",max(a,b))
end
end
if (val=="3.00") then
if (maxv==false) then
Ent:triggerOutput("Out",min(a,b,c))
else
Ent:triggerOutput("Out",max(a,b,c))
end
end
if (val=="4.00") then
if (maxv==false) then
Ent:triggerOutput("Out",min(a,b,c,d))
else
Ent:triggerOutput("Out",max(a,b,c,d))
end
end
end
function settingsUpdated()
val=Settings:getnumber("Values")
maxv=Settings:getbool("Min/Max Off=Min")
if (maxv==true) then
Ent:setToolTip("Max Chip".."\n".."Values: "..val)
else
Ent:setToolTip("Min Chip".."\n".."Values: "..val)
end
if (val=="2.00") then
Ent:setInputs("A,B")
elseif (val=="3.00") then
Ent:setInputs("A,B,C")
elseif (val=="4.00") then
Ent:setInputs("A,B,C,D")
end
end
Now, it spawns ok, no errors in the console, but when I click on a chip with an output, click on the Min/Max, there is no context menu than shows up with the inputs and stuff. Any errors? And yes, this is part of my fifth pack. Since no-one is doing anything.
__________________ Signature: 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's got his own website :3 |
| | |
| | #195 (permalink) |
| Advanced Member ![]() | Yay, gonna be home in 2 days ![]() I'll look @ that...
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| | #196 (permalink) | |
| Member ![]() | Quote:
1. CPF hasnt made it vista compatable... yeah i know it sucks but im too lazy to install xp 2. too lazy to try and learn lua... | |
| | |
| | #197 (permalink) |
| Advanced Member ![]() | Viiiiiista compatibility, it's back to haaaaunt me :P
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! |
| | |
| | #198 (permalink) |
| Advanced Member ![]() Join Date: Jul 2008 Location: Gumdrop LN, Candy Land
Posts: 141
![]() | Lol vista sux, anyway whenever I open the launcher I just get one of those "please tell microsoft about this problem so we can ignore you" things, what do I do?
__________________ 92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature. My IQ is 153 - Free-IQTest.net - Free IQ Test moogle_man- He keeps the USA running! The clever way... |
| | |
| | #200 (permalink) |
| Advanced Member ![]() | I'm home, however I'm preoccupied with plotting the murder of the top execs at my ISP, and getting my new comp working (using same hdd, so I have all the data) Nowww, If I could make people pay for some feature of wiresim, I could be more inspired to put out updates for everyone... But then noone would use it because they wouldn't cough up the required $9.95...
__________________ WireSim.com Why does everybody say CPF? it's cpf :P Hey, look! It's a tutorial on using LuaInterface! Last edited by cpf; 08-14-2008 at 02:20 PM.. |
| | |
| 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 | |
|