|
| |||||||
| Wiremod Tutorials Post your wiremod tutorials/guides here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #12 (permalink) |
| Advanced Member ![]() Join Date: May 2008
Posts: 136
![]() | Yeah, possible solutions is something you'll rarely want for with Wiremod, but there's something to be said for the simplest. Which in this case I guess would be the SR latch. Knew that thing had to have a use somewhere.
__________________ Sometimes, exhausted with toil and endeavour, I wish I could sleep for ever and ever; but then this reflection my longing allays: I shall be doing it one of these days. -Piet Hein |
| | |
| | #13 (permalink) |
| Wire Guru ![]() Join Date: Apr 2008
Posts: 420
![]() | And heres the one I use. Inputs ending with C is current amount of resource and M is maximum of that resource. A is Air, C is Coolant, E is Energy, F is Fusion Reactor (connect coolant first or you might blow it up), R1 is Extra Resource 1, R2 is Extra Resource 2. Code: N@Life Support Switch I@AC AM CC CM EC EM R1C R1M R2C R2M O@AO CO EO FO R1O R2O interval(500) AP = AC / AM, CP = CC / CM, EP = EC / EM, R1P = R1C / R1M, R2P = R2C / R2M EP < 0.75 -> FO = 1; EP > 0.99 -> FO = 0; (AP < 0.75) & (EP > 0.1) -> AO = 1; (AP > 0.99) | (EP < 0.1) -> AO = 0; (CP < 0.75) & (EP > 0.1) -> CO = 1; (CP > 0.99) | (EP < 0.1) -> CO = 0; EO = EP > 0.2 (R1P < 0.75) & (EP > 0.1) -> R1O = 1; (R1P > 0.99) | (EP < 0.1) -> R1O = 0; (R2P < 0.75) & (EP > 0.1) -> R2O = 1; (R2P > 0.99) | (EP < 0.1) -> R2O = 0;
__________________ ![]() (\__/) Wiremod Chinoto's Tutorials and Tutoring (Go here for "in-person" tutoring) (='.'=) ABX Chinoto's Wire Tutorials (Text tutorials so far) (")_(")<- Put this bunny in your sig and help him to rule the world. (My first internet infection) Last edited by chinoto; 10-15-2008 at 06:08 PM.. |
| | |
| | #14 (permalink) | |
| Newbie ![]() Join Date: Jun 2008
Posts: 12
![]() | i have an expression that does this for 3 resources. you input their total/max. it will turn on the devices when it drops below 90% and turn them off at 99% full. it outputs the %of the resources, weather or not your device should be on, and the total usage of resources (IE. if your gaining or loosing, and how much) Mine is similar to chinoto except that it also outputs the % and the usage, rather then having to add extra chips for it. Ill edit this post with it when i get home. Quote:
| |
| | |
| | #16 (permalink) |
| Newbie ![]() Join Date: Oct 2008
Posts: 19
![]() | Hi I'm new here (and my english sucks) can someone please make the using E-gate 2 just for Air, Coolant and Energy? I would like to make some percent hud indicators so could that be added in the E-gate, I'm tired of having to use 6 chips for that. If it can use wirelink, that would be good cause that means 6 less wires on the resource caches. Please, someone read my post and help me I'm new with wire ![]() EDITED FOR CONTENT AND SANITY By -=Fox=- (Please, use coherent english with actual words, or nobody will pay attention to you. Also This belongs in the HELP and SUPPORT thread of the forum.) Last edited by -=Fox=-; 11-20-2008 at 05:48 PM.. |
| | |
| | #17 (permalink) |
| Wire Guru ![]() Join Date: Apr 2008
Posts: 420
![]() | Remade for E2 without extra resources Code: @name Life Support Switch
@inputs AC AM CC CM EC EM
@outputs AO CO EO
@persist AO CO
interval(500)
AP=AC/AM,CP=CC/CM,EP=EC/EM
if ((AP<0.75)&(EP>0.1)) {AO=1}
if ((AP>0.99)|(EP<0.1)) {AO=0}
if ((CP<0.75)&(EP>0.1)) {CO=1}
if ((CP>0.99)|(EP<0.1)) {CO=0}
EO=EP>0.2
Variables ending with C are current amount of resource. Variables ending with M are max amount of resource. Variables ending with O are for turning on generators that make that resource. (EO is for turning on anything else that uses energy)
__________________ ![]() (\__/) Wiremod Chinoto's Tutorials and Tutoring (Go here for "in-person" tutoring) (='.'=) ABX Chinoto's Wire Tutorials (Text tutorials so far) (")_(")<- Put this bunny in your sig and help him to rule the world. (My first internet infection) Last edited by chinoto; 11-21-2008 at 11:12 AM.. |
| | |
| Sponsored Links | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|