Team Spartan Cookies & Milk Forums
SG Dialing Computer? - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html)
+--- Thread: SG Dialing Computer? (/thread-1272.html)



SG Dialing Computer? - The_Doctor - 21-08-2015

Hi, I just wanted to randomly ask if anyone has a Stargate dialing Computer E2 that is up to date and can give it to me, since my current dialing computer is even older than my Mac.


Thanks in advance.


RE: SG Dialing Computer? - LocInt - 22-08-2015

You can use my A.I / mainframe as dialing computer as well. Its written in starfall. Just make mainframe and screen and stargate and it should work.


RE: SG Dialing Computer? - The_Doctor - 22-08-2015

(22-08-2015, 09:43 AM)LocInt Wrote: You can use my A.I / mainframe as dialing computer as well. Its written in starfall. Just make mainframe and screen and stargate and it should work.

No offense, but firstly I just need a dialing computer, not a whole AI and secondly, again no offense, I said E2, not Starfall.


RE: SG Dialing Computer? - Blackhawk - 23-08-2015

Skyteks has been working on an awesome looking e2 dialing computer and he searched beta tester some time ago. Maybe you could ask him. Take a look at the last few posts: http://teamscm.co.uk/showthread.php?tid=457&page=2


RE: SG Dialing Computer? - Destiny's Player - 23-08-2015

There's this old thing I made a long time ago. I don't know if it's optimized or anything, but it works allright.
Code:
@name EGP Stargate @inputs E:wirelink Gate:wirelink User:entity @outputs @persist Page Add Cursor=E:egpCursor(User) Addresses=Gate:stargateAddressList() if(Addresses[Add,string]:explode(" ")[1,string]=="1") { DialAdd=Addresses[Add,string]:explode(" ")[2,string] } else { DialAdd=Addresses[Add,string]:explode(" ")[1,string] } if(Add>Addresses:count() | Add==0) { Add=1 } Gate["Dial String",string]=DialAdd interval(500) function number wirelink:button(Cursor:vector2,ID:number){ local BPos = This:egpPos(ID) local BSize = This:egpSize(ID) local Pressed = inrange(Cursor,BPos-BSize,BPos+BSize) return Pressed } if(first() | dupefinished()) { Page=1 E:egpClear() #E:mainmenu(0) #STARGATE E:egpRoundedBox(90,vec2(256,256),vec2(285,285)) E:egpColor(90,vec(100,100,100)) E:egpCircle(11,vec2(256,240),vec2(100,100)) E:egpColor(11,vec(50,50,100)) E:egpCircle(12,vec2(256,240),vec2(80,80)) E:egpColor(12,vec(50,50,50)) E:egpCircleOutline(13,vec2(256,240),vec2(100,100)) E:egpCircleOutline(14,vec2(256,240),vec2(80,80)) #ButForw E:egpCircle(20,vec2(342,350),vec2(20,20)) E:egpColor(20,vec(70,70,70)) E:egpCircleOutline(21,vec2(342,350),vec2(20,20)) E:egpText(24,">",vec2(342,350)) E:egpAlign(24,1,1) E:egpSize(24,30) #ButBack E:egpCircle(22,vec2(170,350),vec2(20,20)) E:egpColor(22,vec(70,70,70)) E:egpCircleOutline(23,vec2(170,350),vec2(20,20)) E:egpText(25,"<",vec2(170,350)) E:egpAlign(25,1,1) E:egpSize(25,30) #Address E:egpBox(26,vec2(256,365),vec2(100,30)) E:egpColor(26,vec(70,70,70)) E:egpBoxOutline(27,vec2(256,365),vec2(100,30)) E:egpLine(28,vec2(190,355),vec2(207,365)) E:egpLine(29,vec2(322,355),vec2(305,365)) E:egpText(30,"ADDRESS01",vec2(256,365)) E:egpAlign(30,1,1) E:egpSize(30,18) E:egpRoundedBoxOutline(100,vec2(256,256),vec2(285,285)) } if(Page==1) { if(Gate["Open",number]==1) { Tint=random(150,200) E:egpColor(11,vec(20,20,Tint)) E:egpColor(12,vec(30,Tint,Tint)) } elseif(Gate["Active",number]==1 & Gate["Open",number]==0) { E:egpColor(11,vec(20,20,random(100,150))) } else { E:egpColor(11,vec(50,50,100)) E:egpColor(12,vec(50,50,50)) } BPlu=E:button(Cursor,20) BMin=E:button(Cursor,22) GDial=E:button(Cursor,12) if(changed(BPlu) & BPlu==1) { E:egpColor(20,vec(120,120,120)) Add=Add+1 } else { E:egpColor(20,vec(70,70,70)) } if(changed(BMin) & BMin==1) { E:egpColor(22,vec(120,120,120)) Add=Add-1 } else { E:egpColor(22,vec(70,70,70)) } if(changed(GDial) & GDial==1 & Gate["Open",number]==0) { E:egpColor(26,vec(120,120,120)) Gate["Start String Dial",number]=1 } elseif(changed(GDial) & GDial==1 & Gate["Open",number]==1) { Gate["Close",number]=1 } else { E:egpColor(26,vec(70,70,70)) Gate["Start String Dial",number]=0 Gate["Close",number]=0 } E:egpSetText(30,DialAdd) }



RE: SG Dialing Computer? - The_Doctor - 23-08-2015

(23-08-2015, 11:36 AM)Destinys Player Wrote: There's this old thing I made a long time ago. I don't know if it's optimized or anything, but it works allright.
Code:
@name EGP Stargate @inputs E:wirelink Gate:wirelink User:entity @outputs @persist Page Add Cursor=E:egpCursor(User) Addresses=Gate:stargateAddressList() if(Addresses[Add,string]:explode(" ")[1,string]=="1") { DialAdd=Addresses[Add,string]:explode(" ")[2,string] } else { DialAdd=Addresses[Add,string]:explode(" ")[1,string] } if(Add>Addresses:count() | Add==0) { Add=1 } Gate["Dial String",string]=DialAdd interval(500) function number wirelink:button(Cursor:vector2,ID:number){ local BPos = This:egpPos(ID) local BSize = This:egpSize(ID) local Pressed = inrange(Cursor,BPos-BSize,BPos+BSize) return Pressed } if(first() | dupefinished()) { Page=1 E:egpClear() #E:mainmenu(0) #STARGATE E:egpRoundedBox(90,vec2(256,256),vec2(285,285)) E:egpColor(90,vec(100,100,100)) E:egpCircle(11,vec2(256,240),vec2(100,100)) E:egpColor(11,vec(50,50,100)) E:egpCircle(12,vec2(256,240),vec2(80,80)) E:egpColor(12,vec(50,50,50)) E:egpCircleOutline(13,vec2(256,240),vec2(100,100)) E:egpCircleOutline(14,vec2(256,240),vec2(80,80)) #ButForw E:egpCircle(20,vec2(342,350),vec2(20,20)) E:egpColor(20,vec(70,70,70)) E:egpCircleOutline(21,vec2(342,350),vec2(20,20)) E:egpText(24,">",vec2(342,350)) E:egpAlign(24,1,1) E:egpSize(24,30) #ButBack E:egpCircle(22,vec2(170,350),vec2(20,20)) E:egpColor(22,vec(70,70,70)) E:egpCircleOutline(23,vec2(170,350),vec2(20,20)) E:egpText(25,"<",vec2(170,350)) E:egpAlign(25,1,1) E:egpSize(25,30) #Address E:egpBox(26,vec2(256,365),vec2(100,30)) E:egpColor(26,vec(70,70,70)) E:egpBoxOutline(27,vec2(256,365),vec2(100,30)) E:egpLine(28,vec2(190,355),vec2(207,365)) E:egpLine(29,vec2(322,355),vec2(305,365)) E:egpText(30,"ADDRESS01",vec2(256,365)) E:egpAlign(30,1,1) E:egpSize(30,18) E:egpRoundedBoxOutline(100,vec2(256,256),vec2(285,285)) } if(Page==1) { if(Gate["Open",number]==1) { Tint=random(150,200) E:egpColor(11,vec(20,20,Tint)) E:egpColor(12,vec(30,Tint,Tint)) } elseif(Gate["Active",number]==1 & Gate["Open",number]==0) { E:egpColor(11,vec(20,20,random(100,150))) } else { E:egpColor(11,vec(50,50,100)) E:egpColor(12,vec(50,50,50)) } BPlu=E:button(Cursor,20) BMin=E:button(Cursor,22) GDial=E:button(Cursor,12) if(changed(BPlu) & BPlu==1) { E:egpColor(20,vec(120,120,120)) Add=Add+1 } else { E:egpColor(20,vec(70,70,70)) } if(changed(BMin) & BMin==1) { E:egpColor(22,vec(120,120,120)) Add=Add-1 } else { E:egpColor(22,vec(70,70,70)) } if(changed(GDial) & GDial==1 & Gate["Open",number]==0) { E:egpColor(26,vec(120,120,120)) Gate["Start String Dial",number]=1 } elseif(changed(GDial) & GDial==1 & Gate["Open",number]==1) { Gate["Close",number]=1 } else { E:egpColor(26,vec(70,70,70)) Gate["Start String Dial",number]=0 Gate["Close",number]=0 } E:egpSetText(30,DialAdd) }

It does not seem to work alright. The EGP stays at the "EGP 3" screen, nothing happens.


RE: SG Dialing Computer? - Destiny's Player - 23-08-2015

(23-08-2015, 01:47 PM)The_Doctor Wrote:
(23-08-2015, 11:36 AM)Destinys Player Wrote: There's this old thing I made a long time ago. I don't know if it's optimized or anything, but it works allright.
Code:
@name EGP Stargate @inputs E:wirelink Gate:wirelink User:entity @outputs @persist Page Add Cursor=E:egpCursor(User) Addresses=Gate:stargateAddressList() if(Addresses[Add,string]:explode(" ")[1,string]=="1") { DialAdd=Addresses[Add,string]:explode(" ")[2,string] } else { DialAdd=Addresses[Add,string]:explode(" ")[1,string] } if(Add>Addresses:count() | Add==0) { Add=1 } Gate["Dial String",string]=DialAdd interval(500) function number wirelink:button(Cursor:vector2,ID:number){ local BPos = This:egpPos(ID) local BSize = This:egpSize(ID) local Pressed = inrange(Cursor,BPos-BSize,BPos+BSize) return Pressed } if(first() | dupefinished()) { Page=1 E:egpClear() #E:mainmenu(0) #STARGATE E:egpRoundedBox(90,vec2(256,256),vec2(285,285)) E:egpColor(90,vec(100,100,100)) E:egpCircle(11,vec2(256,240),vec2(100,100)) E:egpColor(11,vec(50,50,100)) E:egpCircle(12,vec2(256,240),vec2(80,80)) E:egpColor(12,vec(50,50,50)) E:egpCircleOutline(13,vec2(256,240),vec2(100,100)) E:egpCircleOutline(14,vec2(256,240),vec2(80,80)) #ButForw E:egpCircle(20,vec2(342,350),vec2(20,20)) E:egpColor(20,vec(70,70,70)) E:egpCircleOutline(21,vec2(342,350),vec2(20,20)) E:egpText(24,">",vec2(342,350)) E:egpAlign(24,1,1) E:egpSize(24,30) #ButBack E:egpCircle(22,vec2(170,350),vec2(20,20)) E:egpColor(22,vec(70,70,70)) E:egpCircleOutline(23,vec2(170,350),vec2(20,20)) E:egpText(25,"<",vec2(170,350)) E:egpAlign(25,1,1) E:egpSize(25,30) #Address E:egpBox(26,vec2(256,365),vec2(100,30)) E:egpColor(26,vec(70,70,70)) E:egpBoxOutline(27,vec2(256,365),vec2(100,30)) E:egpLine(28,vec2(190,355),vec2(207,365)) E:egpLine(29,vec2(322,355),vec2(305,365)) E:egpText(30,"ADDRESS01",vec2(256,365)) E:egpAlign(30,1,1) E:egpSize(30,18) E:egpRoundedBoxOutline(100,vec2(256,256),vec2(285,285)) } if(Page==1) { if(Gate["Open",number]==1) { Tint=random(150,200) E:egpColor(11,vec(20,20,Tint)) E:egpColor(12,vec(30,Tint,Tint)) } elseif(Gate["Active",number]==1 & Gate["Open",number]==0) { E:egpColor(11,vec(20,20,random(100,150))) } else { E:egpColor(11,vec(50,50,100)) E:egpColor(12,vec(50,50,50)) } BPlu=E:button(Cursor,20) BMin=E:button(Cursor,22) GDial=E:button(Cursor,12) if(changed(BPlu) & BPlu==1) { E:egpColor(20,vec(120,120,120)) Add=Add+1 } else { E:egpColor(20,vec(70,70,70)) } if(changed(BMin) & BMin==1) { E:egpColor(22,vec(120,120,120)) Add=Add-1 } else { E:egpColor(22,vec(70,70,70)) } if(changed(GDial) & GDial==1 & Gate["Open",number]==0) { E:egpColor(26,vec(120,120,120)) Gate["Start String Dial",number]=1 } elseif(changed(GDial) & GDial==1 & Gate["Open",number]==1) { Gate["Close",number]=1 } else { E:egpColor(26,vec(70,70,70)) Gate["Start String Dial",number]=0 Gate["Close",number]=0 } E:egpSetText(30,DialAdd) }

It does not seem to work alright. The EGP stays at the "EGP 3" screen, nothing happens.

That's what I mean by "old and not optimized". After you wire it to the screen, you need to reload the chip. I would fix it, but I completely forgot all of E2.