|
| |||||||
| Wiremod Tutorials Post your wiremod tutorials/guides here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Newbie ![]() Join Date: Jul 2008
Posts: 3
![]() | Ok, well lately I've been interested in making "Production plants" in Gmod with Life Support 2, such as a Nuclear Powerplant, a Gas production facility, and Energy stations, and what I've been needing for a while is some sort of automated computer system in wiremod (which can be done), that would turn on a pump automatically when it is needed, (such as if I am low on water, It would turn on an extra water pump) and I can't figure out what to do to make such a thing. All I have been able to do is to put a lot of panels with info on my systems and put alot of buttons to press for each thing. I don't know if this would go in the CPU section, or here as I am new to this forum, so moderators feel free to move this. Can someone help me make a thing such as I described above? ~Wulfie |
| | |
| Sponsored Links | |
| | #2 (permalink) | |
| Member ![]() Join Date: Apr 2007
Posts: 46
![]() | Quote:
auto replenishing air tank find the air amount output of the tank wire it to (a) of less than chip make constant value chip with the value you want the compressor to turn on at (ie , 2000) wire this to (b) of less than chip then wire the less than chip to your compressor. the whole point of this is to turn on the compressor when less than a certain level i hope this is what you were looking for ! | |
| | |
| | #3 (permalink) | |
| Newbie ![]() Join Date: Jul 2008
Posts: 3
![]() | Quote:
EDIT: I just tried it and it WORKS!! Thank you for your help! Last edited by Wulfie; 07-15-2008 at 11:19 PM.. Reason: Why should you know? o.o | |
| | |
| | #4 (permalink) |
| Newbie ![]() Join Date: Oct 2008
Posts: 4
![]() | how bout a system that starts at value x and then stops a value y the air stops drops to 3000 the air compressors start and keep going to 6000 and then stop. how would you do that? PS something that can be used on any system like that. not just tied air. |
| | |
| | #5 (permalink) |
| Advanced Member ![]() Join Date: May 2008
Posts: 136
![]() | Haven't tested it, but I think this should deliver that. Code: N@Generatorcontrol I@Currentvalue Minvalue Stopvalue O@On Currentvalue<=Minvalue->On=1; Currentvalue>=Stopvalue&On->On=0; |
| | |
| | #7 (permalink) |
| Advanced Member ![]() Join Date: May 2008
Posts: 136
![]() | Oh right. That's Expression (1) code. If you want to save it for the expression gate you'll have to make a .txt (name it something you remember) with that code and save it in your Steam/steamapps/<your Steam account name here>/garrysmod/garrysmod/data/ExpressionGate folder. Then you use the Expression gate tool ingame to spawn the gate with that code. Or you could try making it with just the standard gates. Sorry if my explanation was a bit hard to understand there. |
| | |
| | #9 (permalink) |
| COMPLETE BLOODY BASTARD ![]() ![]() | One way would be to use an SR-latch. S goes to a Less Than gate, R goes to a Greater Than gate. I'm I'm sure you can figure out the rest.
__________________ “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” —Antoine De Saint-Exupery |
| | |
| | #10 (permalink) | ||
| UWSVN Contributor ![]() | Code: start: jmp Real_start alloc minval alloc stopval Real_start: in eax,0 //Currentvalue cmp eax,#minval cle On_off cmp eax,#stopval cge On_on jmp Real_start On_off: out 0,0 //Port 0 out is the on ret On_on: out 0,1 ret
__________________ Quote:
Quote:
IF ALL ELSE FAILS THEN READ THIS BEFORE MAKING A HELP THREAD Remember to ask me for cpu help if you need it, just pm me with your situation and/or problem code | ||
| | |
| Sponsored Links | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|