+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Space build EGP srceen.

  1. #1
    Wire Noob x410x's Avatar
    Join Date
    Jan 2010
    Posts
    15

    Post Space build EGP srceen.

    This is what i have been using EGP for and have decided to release the E2 I use for the EGP, controlling all of the life support and the ships movements but I will not be releasing the ship itself. I have tried my best to make the E2 universal so it can be fitted to almost any ship. On the video the only thing you can not see is that I have a water pump with a hydro-generator welded to the underside of the ship but I have made it invisible so not to stick out. To wire it up is very simple, just connect everything with wirelinks to the E2, the only things not done with wirelinks is if you have more than one fusion generator and the entity of the one EGP screen. All you have to do for the other EGP srceen is use an entity marker on the sreen that you want two of and wire the entity marker to the E2. Fell free to let me know if I've done something silly or if you have any questions! Oh and you will not be able to copy and paste this into an E2 editor, so make a txt in Steam\steamapps\username\garrysmod\garrysmod\data\ Expression2 with this code inside the txt.



    User-message test.



    Edited for EGP v2, please let me know of any bugs as I haven't had a chance to fully test everything.

    Code:
    @name EGP Ship Monitor EGP v2
    @inputs [EGP EGP2 AdvancedPodController AdvancedGyroPod Cache SteamTank AtmosphericProbe ClimateRegulator ShipCore SteamTurbine WaterSplitter FusionReactor]:wirelink
    @inputs [WaterPump WaterSensor HeavyWaterElectrolyzer Turret1 Turret2 Turret3 Turret4 Turret5 Turret6 Turret7 Turret8]:wirelink
    @outputs [OtherFusionReactors]:number
    @persist [Exe Wfr A B T X T1D T2D T3D T4D T5D T6D T7D T8D Tl2wf Cod Codd End Endd O2d Codr Hprd Fusd Cprd Sprd Hwprd H2prd Cpr Tl2wfd O2lwfd Number Nlwfd Tlwfd Ealwfd Glwfd Multiplier]:number
    @persist [O2dd Watersend Capacitorn Hulln Shieldn Armorn Enpr H2pr Hwpr Opr Hwgenond H2d H2dd Hwd Hwdd Hd Hdd Nd Ndd Std Stdd Alt2d O2d2 Cod2 Nd2 Hd2 Pd Ed H2osplond Td Gd Shieldnd Armornd Hullnd Capacitornd]:number
    @persist [Endr Watersen O2dr H2dr Hwdr Hdr Ndr Stdr O2lr Co2lr Nlr Hlr Pre Ealr Tlr Gravity Enwfd Owfd H2wfd Nwfd Hwfd Hwwfd H2osplonb Waterpumponb Waterpumpond Steamteronb Clregonb Steamtond Clregond]:number
    @persist [Dupwait WFon Enprd Oprd Nprd Shieldwf Shieldp Armorp Hullp Capacitorp Armorwf Hullwf Capacitorwf Shieldpd Armorpd Hullpd Capacitorpd Fusgenonb Prewfd H2ospl_power Fusgen_power Clreg_power]:number
    @trigger none
    
    
    ########################################################################################################################################################################################################################
    ####################################################################################///Made By Codec 3-15-10\\\#########################################################################################################
    ########################################################################################################################################################################################################################
    
    
    interval(100)
    
    if (first()) {Mb = 1 Wfr = 0 Exe = 10 Fusgen_power = 0 OtherFusionReactors = 0 Clreg_power = 0 H2ospl_power = 0 Dupwait = 0   WFon = 1}
    if (duped()) {Mb = 1 Wfr = 0 Exe = 10 Fusgen_power = 0 OtherFusionReactors = 0 Clreg_power = 0 H2ospl_power = 0 Dupwait = 150 WFon = 1}
    
    Dupwait--
    
    if (Dupwait == -15) {WFon = 0}
    
    if (Dupwait == 0) {reset() EGP:egpClear()}
    
    if (EGP:egpCanDraw() & EGP2:egpCanDraw() & Dupwait < 0) {
        
        Act = AdvancedPodController["Active",number]
        Space = AdvancedPodController["Space",number]
        Shift = AdvancedPodController["Shift",number]
    
        Exe--
        
        if (!Act | Space) {Freeze = 1} else {Freeze = 0}
        
        if (Shift) {AngMultiplier = 10 TMultiplier = 5} else {AngMultiplier = 2 TMultiplier = 2}
        
        AdvancedGyroPod["PitchMult",number] = AngMultiplier
        AdvancedGyroPod["YawMult",number] = AngMultiplier
        AdvancedGyroPod["RollMult",number] = AngMultiplier
        AdvancedGyroPod["ThrustMult",number] = TMultiplier
        AdvancedGyroPod["Freeze",number] = Freeze
        AdvancedGyroPod["Forward",number] = AdvancedPodController["W",number]
        AdvancedGyroPod["Back",number] = AdvancedPodController["S",number]
        AdvancedGyroPod["YawLeft",number] = AdvancedPodController["A",number]
        AdvancedGyroPod["YawRight",number] = AdvancedPodController["D",number]
        AdvancedGyroPod["MoveUp",number] = AdvancedPodController["Mouse1",number]
        AdvancedGyroPod["MoveDown",number] = AdvancedPodController["Mouse2",number]
        AdvancedGyroPod["Activate",number] = Act
        AdvancedGyroPod["Level",number] = Act
        
        if (Exe == 0) {
        
    
            Max_Energy = Cache["Max Energy",number]
            Clregrad = 1000
            ClregO2level = 10
            Multiplier = Max_Energy/15000
            WaterSplitter["Multiplier",number] = Multiplier
            WaterPump["Multiplier",number] = Multiplier*0.2
            SteamTurbine["Multiplier",number] = 6
            HeavyWaterElectrolyzer["Multiplier",number] = Multiplier*0.4
            WaterSplitter["Mute",number] = 1
            WaterPump["Mute",number] = 1
            SteamTurbine["Mute",number] = 1
            HeavyWaterElectrolyzer["Mute",number] = 1
            Watersen = WaterSensor["Out",number]
            Atmopower = AtmosphericProbe["On",number]
            Oxygen = Cache["Oxygen",number]
            Water = Cache["Water",number]
            Energy = Cache["Energy",number]
            Hydrogen = Cache["Hydrogen",number]
            Nitrogen = Cache["Nitrogen",number]
            Co2 = Cache["Co2",number]
            Steam = SteamTank["Steam",number]
            Max_Steam = SteamTank["Max Steam",number]
            ClimateRegulator["Radius",number] = Clregrad
            ClimateRegulator["Max O2 level",number] = ClregO2level
            Max_Oxygen = Cache["Max Oxygen",number]
            Max_Water = Cache["Max Water",number]
            Max_Energy = Cache["Max Energy",number]
            Max_Hydrogen = Cache["Max Hydrogen",number]
            Max_Nitrogen = Cache["Max Nitrogen",number]
            Max_Co2 = Cache["Max Co2",number]
            Max_Hvy_Water = Cache["Max Hvy Water",number]
            Hvy_Water = Cache["Hvy Water",number]
            Shieldp = ShipCore["% Shield",number]
            Armorp = ShipCore["% Armor",number]
            Hullp = ShipCore["% Hull",number]
            Capacitorp = ShipCore["% Capacitor",number]
            Shieldn = ShipCore["Shield",number]
            Armorn = ShipCore["Armor",number]
            Hulln = ShipCore["Hull",number]
            Capacitorn = ShipCore["Capacitor",number]
        
            Enpr = round(Energy/Max_Energy*100,2)
            Opr = round(Oxygen/Max_Oxygen*100,2)
            H2pr = round(Water/Max_Water*100,2)
            Hpr = round(Hydrogen/Max_Hydrogen*100,2)
            Npr = round(Nitrogen/Max_Nitrogen*100,2)
            Cpr = round(Co2/Max_Co2*100,2)
            Hwpr = round(Hvy_Water/Max_Hvy_Water*100,2)
            Spr = round(Steam/Max_Steam*100,2)
            
            End = Energy
            Endr = $End
            O2d = Oxygen
            O2dr = $O2d
            H2d = Water
            H2dr = $H2d
            Hwd = Hvy_Water
            Hwdr = $Hwd
            Nd = Nitrogen
            Ndr = $Nd
            Hd = Hydrogen
            Hdr = $Hd
            Cod = Co2
            Codr = $Cod
            Std = Steam
            Stdr = $Std
            
            O2_Level = AtmosphericProbe["O2 Level",number]
            Co2_Level = AtmosphericProbe["CO2 Level",number]
            Nitrogen_Level = AtmosphericProbe["Nitrogen Level",number]
            Hydrogen_Level = AtmosphericProbe["Hydrogen Level",number]
            Temperature = AtmosphericProbe["Temperature",number]
            Pressure = AtmosphericProbe["Pressure",number]
            Gravity = AtmosphericProbe["Gravity",number]
            Eal = AtmosphericProbe["Empty Air Level",number]
            
            O2lr = round(O2_Level,1)
            Co2lr = round(Co2_Level,1)
            Nlr = round(Nitrogen_Level,1)
            Hlr = round(Hydrogen_Level,1)
            Tlr = round(Temperature,1)
            Pre = round(Pressure,1)
            Ealr = round(Eal,1)
        
            AtmosphericProbe["On",number] = Enpr > 0
            
            if (Opr > 10 & H2pr > 10 & Enpr > 10) {Clreg_power = 1}
            if (!Opr | !H2pr | !Enpr) {Clreg_power = 0}
            if (Steam > 300) {Steamter_power = 1}
            if (Opr < 99 & H2pr > 10 & Watersen & Enpr > 10) {H2ospl_power = 1} else {H2ospl_power = 0}
            if (Opr < 10 & Enpr > 10 & H2pr > 10) {H2ospl_power = 1}
            if (Enpr < 95 & Watersen == 1 & H2pr > 5) {Fusgen_power = 1}
            if (Enpr < 50 & H2pr > 1) {Fusgen_power = 1}
            if (Enpr > 99) {Fusgen_power = 0}
            if (Hwpr < 99 & Enpr > 10 & H2pr > 5 & Watersen == 1) {Hwgen_power = 1} else {Hwgen_power = 0}
            if (Enpr > 0.5 & H2pr < 99 & Watersen) {Waterpump_power = 1} else {Waterpump_power = 0}
            if (Opr > 90 & Enpr > 15) {HeavyWaterElectrolyzer["Multiplier",number] = Multiplier*2} else {HeavyWaterElectrolyzer["Multiplier",number] = Multiplier*0.5}
            
            HeavyWaterElectrolyzer["On",number] = Hwgen_power
            ClimateRegulator["On",number] = Clreg_power
            SteamTurbine["On",number] = Steamter_power
            WaterSplitter["On",number] = H2ospl_power
            FusionReactor["On",number] = Fusgen_power
            WaterPump["On",number] = Waterpump_power
            OtherFusionReactors = Fusgen_power
            
            if (Opr>10 & H2pr>10 & Enpr>10 & Hwpr>10) {WFon = 1}
            
            PressureR = round(Pressure * 100,2)
            GravityR = round(Gravity * 100,2)
            
            if (!->SteamTank) {Spr = 0}
            if (!->Cache) {Opr = 0 Enpr = 0 Hpr = 0 Npr = 0 H2pr = 0 Hwpr = 0 Cpr = 0}
        
            Exe = 10
        }
    
        Clregonb = ClimateRegulator["On",number]
        H2osplonb = WaterSplitter["On",number]
        Fusgenonb = FusionReactor["On",number]
        Steamteronb = SteamTurbine["On",number]
        Waterpumponb = WaterPump["On",number]
        Hwgenonb = HeavyWaterElectrolyzer["On",number]
        
        if (WFon) {WFYN = 1} else {WFYN = 0}
        SetFont = "arial"
        Txtr = 0
        Txtg = 0
        Txtb = 0
        Index = 0
        if (->EGP & ->EGP2) {A = 1} else {A = 0}
        A2 = $A
        if (A2 == 1) {
            EGP:egpBox(Index,vec2(15,15),vec2(480,480))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBox(Index,vec2(15,15),vec2(480,480))
            EGP:egpColor(Index,vec(250,250,250),200)
            EGP:egpMaterial(Index,"gui/center_gradient") Index++
            EGP:egpText(Index,"Resources",vec2(75,15))
            EGP:egpColor(Index,vec(0,0,0),255)
            EGP:egpSetFont(Index,SetFont,30) Index++
            EGP:egpBox(Index,vec2(15,45),vec2(480,5))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBox(Index,vec2(15,225),vec2(480,5))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBox(Index,vec2(256,15),vec2(5,480))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBox(Index,vec2(15,257),vec2(480,5))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(29,59),vec2(202,37))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(29,99),vec2(202,37))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(29,139),vec2(202,37))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(29,179),vec2(202,37))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpText(Index,"Resource Usage",vec2(280,18))
            EGP:egpColor(Index,vec(0,0,0),255)
            EGP:egpSetFont(Index,SetFont,28) Index++
            EGP:egpText(Index,"Atmospheric Conditions",vec2(30,233))
            EGP:egpColor(Index,vec(0,0,0),255)
            EGP:egpSetFont(Index,SetFont,20) Index++
            EGP:egpText(Index,"System Status",vec2(290,230))
            EGP:egpColor(Index,vec(0,0,0),255)
            EGP:egpSetFont(Index,SetFont,25) Index++
            EGP:egpBoxOutline(Index,vec2(266,269),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,299),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,329),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,359),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,389),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,419),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP:egpBoxOutline(Index,vec2(266,449),vec2(217,27))
            EGP:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBox(Index,vec2(15,15),vec2(480,480))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBox(Index,vec2(15,15),vec2(480,480))
            EGP2:egpColor(Index,vec(250,250,250),200)
            EGP2:egpMaterial(Index,"gui/center_gradient") Index++
            EGP2:egpText(Index,"Ship Core Status",vec2(120,18))
            EGP2:egpColor(Index,vec(0,0,0),255)
            EGP2:egpSetFont(Index,SetFont,35) Index++
            EGP2:egpBox(Index,vec2(15,50),vec2(480,5))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(29,69),vec2(452,37))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(29,109),vec2(452,37))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(29,149),vec2(452,37))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(29,189),vec2(452,37))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBox(Index,vec2(15,240),vec2(480,5))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBox(Index,vec2(15,280),vec2(480,5))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpText(Index,"Ship Defenses",vec2(130,245))
            EGP2:egpColor(Index,vec(0,0,0),255)
            EGP2:egpSetFont(Index,SetFont,35) Index++
            EGP2:egpBoxOutline(Index,vec2(29,189),vec2(452,37))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(34,299),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(124,299),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(34,389),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(124,389),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(309,299),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(399,299),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(309,389),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            EGP2:egpBoxOutline(Index,vec2(399,389),vec2(77,77))
            EGP2:egpColor(Index,vec(0,0,0),255) Index++
            
            O2lr = 1 Co2lr = 1 Nlr = 1 Hlr = 1 Pre = 1 Ealr = 1 Tlr = 300 Gravity = 1 Enpr = 100 H2pr = 50 Hwpr = 25 Opr = 75
            Waterpumponb = 1 Steamteronb = 1 Fusgenonb = 1 H2osplonb = 1 Clregonb = 1 Hwgenonb = 1 Watersen = 1
            Shieldp = 100 Armorp = 75 Hullp = 50 Capacitorp = 25 Shieldn = 1 Armorn = 1 Hulln = 1 Capacitorn = 1
            Stdr = 10 Hwdr = 10 O2dr = 10 H2dr = 10 Endr = 10
        }
        
        Index = 40
        
        if (Wfr == 0) {B = 1}
        if (Wfr == 120) {B = 0}
        if (B == 1) {Wfr = Wfr+30}
        if (B == 0) {Wfr = Wfr-30}
        
        
        if (Exe == 10 | Enwfd == 0){
            if (Enpr < 10 & ->Cache & WFYN) {Enwfd = 0 EGP:egpBox(Index,vec2(30,60),vec2(200,35)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {Enwfd = 1} 
            Enrwf = $Enwfd
            if(Enrwf == 1) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
            Enprd = Enpr
            Engo = $Enprd
            if (Engo != 0) {
                if(Enpr>=50) {
                    Eng = 255
                    Enr = 5.1*(100-Enpr)
                        }elseif(Enpr<50 & Enpr>=0){
                            Eng = 5.1*Enpr
                            Enr = 255}
                EGP:egpBox(Index,vec2(30,60),vec2(Enpr*2,35)) EGP:egpColor(Index,vec(Enr,Eng,0),255) Index++
                EGP:egpBox(Index,vec2(30,60),vec2(Enpr*2,35)) EGP:egpColor(Index,vec(Enr,Eng,0),255)
                EGP:egpMaterial(Index,"vgui/zoom") Index++
                EGP:egpText(Index,"Energy    "+Enpr+"%",vec2(35,65)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index+3}}  else {Index = Index+4}
        
        if (Exe == 9 | Owfd == 0) {
            if (Opr < 10 & ->Cache & WFYN) {Owfd = 0 EGP:egpBox(Index,vec2(30,100),vec2(200,35)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {Owfd = 1} 
            Orwf = $Owfd
            if(Orwf == 1) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
            Oprd = Opr
            O2go = $Oprd
            if (O2go != 0) {
                if(Opr>=50){
                Og = 255
                Or = 5.1*(100-Opr)
                    }elseif(Opr<50 & Opr>=0){
                        Og = 5.1*Opr
                        Or = 255}
            EGP:egpBox(Index,vec2(30,100),vec2(Opr*2,35)) EGP:egpColor(Index,vec(Or,Og,0),255) Index++
            EGP:egpBox(Index,vec2(30,100),vec2(Opr*2,35)) EGP:egpColor(Index,vec(Or,Og,0),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Oxygen    "+Opr+"%",vec2(35,105)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index+3}} else {Index = Index+4}
        
        
        if (Exe == 8 | H2wfd == 0){
            if (H2pr < 10 & ->Cache & WFYN) {H2wfd = 0 EGP:egpBox(Index,vec2(30,140),vec2(200,35)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {H2wfd = 1} 
            H2rwf = $H2wfd
            if(H2rwf == 1) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
            H2prd = H2pr
            H2go = $H2prd
            if (H2go != 0) {
                if(H2pr>=50){
                H2g = 255
                H2r = 5.1*(100-H2pr)
                    }elseif(H2pr<50 & H2pr>=0){
                        H2g = 5.1*H2pr
                        H2r = 255}
            EGP:egpBox(Index,vec2(30,140),vec2(H2pr*2,35)) EGP:egpColor(Index,vec(H2r,H2g,0),255) Index++
            EGP:egpBox(Index,vec2(30,140),vec2(H2pr*2,35)) EGP:egpColor(Index,vec(H2r,H2g,0),255) 
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Water     "+round(H2pr,2)+"%",vec2(35,145)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index+3}} else {Index = Index+4}
        
        
        if (Exe == 7 | Hwwfd == 0){
            if (Hwpr < 10 & ->Cache & WFYN) {Hwwfd = 0 EGP:egpBox(Index,vec2(30,180),vec2(200,35)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {Hwwfd = 1}
            Hwrwf = $Hwwfd
            if(Hwrwf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
            Hwprd = Hwpr
            Hwgo = $Hwprd
            if (Hwgo != 0) {
                if(Hwpr>=50){
                Hwg = 255
                Hwr = 5.1*(100-Hwpr)
                    }elseif(Hwpr<50 & Hwpr>=0){
                        Hwg = 5.1*Hwpr
                        Hwr = 255}
            EGP:egpBox(Index,vec2(30,180),vec2(Hwpr*2,35)) EGP:egpColor(Index,vec(Hwr,Hwg,0),255) Index++
            EGP:egpBox(Index,vec2(30,180),vec2(Hwpr*2,35)) EGP:egpColor(Index,vec(Hwr,Hwg,0),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Hvy Water "+round(Hwpr,2)+"%",vec2(35,185)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index+3}} else {Index = Index+4}
        
        if (Exe == 6){
            Endd = Endr
            Enddr = $Endd
            if (Enddr != 0) {
                EGP:egpText(Index,"Energy    "+round(Endr)+"",vec2(280,60)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}} else {Index++}
        
        if (Exe == 5){
            O2dd = O2dr
            O2ddr = $O2dd
            if (O2ddr != 0) {
                EGP:egpText(Index,"Oxygen    "+round(O2dr)+"",vec2(280,90)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}} else {Index++}
        
        if (Exe == 4){
            H2dd = H2dr
            H2ddr = $H2dd
            if (H2ddr != 0) {
            EGP:egpText(Index,"Water     "+round(H2dr)+"",vec2(280,120)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}} else {Index++}
    
        if (Exe == 3){
            Hwdd = Hwdr
            Hwddr = $Hwdd
            if (Hwddr != 0) {
                EGP:egpText(Index,"Hvy Water "+round(Hwdr)+"",vec2(280,150)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}} else {Index++}
        
        if (Exe == 2) {
            Stdd = Stdr
            Stddr = $Stdd
            if (Stddr != 0) {
                EGP:egpText(Index,"Steam     "+round(Stdr)+"",vec2(280,180)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}} else {Index++}
        
        
        O2d2 = O2lr
        O2d2r = $O2d2
        if (O2lr < 10 & ->AtmosphericProbe & Enpr>0) {O2lwfd = 0 EGP:egpBox(Index,vec2(25,270),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {O2lwfd = 1} 
        O2lwf = $O2lwfd
        if(O2lwf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        if (O2d2r != 0) {
            EGP:egpText(Index,"O2 Levels   "+O2lr+"%",vec2(25,270)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        
        Cod2 = Co2lr
        Cod2r = $Cod2
        if (Cod2r != 0) {
            EGP:egpText(Index,"CO2 Levels  "+Co2lr+"%",vec2(25,297)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        if (Nlr < 0 & ->AtmosphericProbe & Enpr>0) {Nlwfd = 0 EGP:egpBox(Index,vec2(25,324),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)} else {Nlwfd = 1} 
        Nlwf = $Nlwfd
        if(Nlwf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        Nd2 = Nlr
        Nd2r = $Nd2
        if (Nd2r != 0) {
            EGP:egpText(Index,"N2 Levels   "+Nlr+"%",vec2(25,324)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        
        Hd2 = Hlr
        Hd2r = $Hd2
        if (Hd2r != 0) {
            EGP:egpText(Index,"H2 Levels   "+Hlr+"%",vec2(25,351)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        if (Pre < 0.5 | Pre > 1.5) {if(->AtmosphericProbe & Enpr>0) {Prewfd = 0 EGP:egpBox(Index,vec2(25,378),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)}} else {Prewfd = 1} 
        Prewf = $Prewfd
        if(changed(Prewfd)) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        Pd = Pre
        Pdr = $Pd
        if (Pdr != 0) {
            EGP:egpText(Index,"Pressure    "+Pre*100+"%",vec2(25,378)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        if (Ealr > 50) {if(->AtmosphericProbe & Enpr>0) {Ealwfd = 0 EGP:egpBox(Index,vec2(25,405),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)}} else {Ealwfd = 1} 
        Ealwf = $Ealwfd
        if(Ealwf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        Ed = Ealr
        Edr = $Ed
        if (Edr != 0) {
            EGP:egpText(Index,"Vacuum      "+Ealr+"%",vec2(25,405)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        if (Tlr < 260 | Tlr > 310) {if(->AtmosphericProbe & Enpr>0) {Tl2wfd = 0 EGP:egpBox(Index,vec2(25,432),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)}} else {Tl2wfd = 1} 
        Tl2wf = $Tl2wfd
        if(Tl2wf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        Td = Tlr
        Tdr = $Td
        if (Tdr != 0) {
            EGP:egpText(Index,"Temperature "+Tlr+"",vec2(25,432)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        if (Gravity < 0.6 | Gravity > 1.4) {if(->AtmosphericProbe & WFYN & Enpr>0) {Glwfd = 0 EGP:egpBox(Index,vec2(25,459),vec2(225,22)) EGP:egpColor(Index,vec(255,0,0),Wfr)}} else {Glwfd = 1} 
        Glwf = $Glwfd
        if(Glwf != 0) {EGP:egpColor(Index,vec(255,0,0),0)} Index++
        Gd = Gravity
        Gdr = $Gd
        if (Gdr != 0) {
            EGP:egpText(Index,"Gravity     "+Gravity*100+"%",vec2(25,459)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,25) Index++} else {Index++}
        
        
        Clregond = Clregonb
        Clregondr = $Clregond
        if (Clregondr != 0) { 
            if (Clregonb == 1) { Clregr = 0 Clregg = 255 } else {Clregr = 255 Clregg = 0 }
            EGP:egpBox(Index,vec2(267,270),vec2(215,25)) EGP:egpColor(Index,vec(Clregr,Clregg,0),255) Index++
            EGP:egpBox(Index,vec2(267,270),vec2(215,25))  EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Climate Regulator",vec2(272,272)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        
        Fusd = Fusgenonb
        Fusdr = $Fusd
        if (Fusdr != 0) { 
            if (Fusgenonb == 1) { Fusr = 0 Fusg = 255 } else {Fusr = 255 Fusg = 0 }
            EGP:egpBox(Index,vec2(267,300),vec2(215,25)) EGP:egpColor(Index,vec(Fusr,Fusg,0),255) Index++
            EGP:egpBox(Index,vec2(267,300),vec2(215,25))  EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Fusion Reactors",vec2(285,302)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        Steamtond = Steamteronb
        Steamtondr = $Steamtond
        if (Steamtondr != 0) { 
            if (Steamteronb == 1) { Steamr = 0 Steamg = 255 } else {Steamr = 255 Steamg = 0 }
            EGP:egpBox(Index,vec2(267,330),vec2(215,25)) EGP:egpColor(Index,vec(Steamr,Steamg,0),255) Index++
            EGP:egpBox(Index,vec2(267,330),vec2(215,25))  EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Steam Turbines",vec2(295,332)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        Waterpumpond = Waterpumponb
        Waterpumpondr = $Waterpumpond
        if (Waterpumpondr != 0) { 
            if (Waterpumponb == 1) { Waterpumpr = 0 Waterpumpg = 255 } else {Waterpumpr = 255 Waterpumpg = 0 }
            EGP:egpBox(Index,vec2(267,360),vec2(215,25)) EGP:egpColor(Index,vec(Waterpumpr,Waterpumpg,0),255) Index++
            EGP:egpBox(Index,vec2(267,360),vec2(215,25))  EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Water Pump",vec2(315,362)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        Watersend = Watersen
        Watersendr = $Watersend
        if (Watersendr != 0) { 
            if (Watersen == 1) { Watersenr = 0 Waterseng = 255 } else {Watersenr = 255 Waterseng = 0 }
            EGP:egpBox(Index,vec2(267,390),vec2(215,25)) EGP:egpColor(Index,vec(Watersenr,Waterseng,0),255) Index++
            EGP:egpBox(Index,vec2(267,390),vec2(215,25)) EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Pump In Water",vec2(295,392)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        H2osplond = H2osplonb
        H2ospldr = $H2osplond
        if (H2ospldr != 0) { 
            if (H2osplonb == 1) { H2osplr = 0 H2osplg = 255 } else {H2osplr = 255 H2osplg = 0 }
            EGP:egpBox(Index,vec2(267,420),vec2(215,25)) EGP:egpColor(Index,vec(H2osplr,H2osplg,0),255) Index++
            EGP:egpBox(Index,vec2(267,420),vec2(215,25)) EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"H2O Splitter",vec2(305,422)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        Hwgenond = Hwgenonb
        Hwgendr = $Hwgenond
        if (Hwgendr != 0) { 
            if (Hwgenonb == 1) { Hwgenr = 0 Hwgeng = 255 } else {Hwgenr = 255 Hwgeng = 0 }
            EGP:egpBox(Index,vec2(267,450),vec2(215,25)) EGP:egpColor(Index,vec(Hwgenr,Hwgeng,0),255) Index++
            EGP:egpBox(Index,vec2(267,450),vec2(215,25)) EGP:egpColor(Index,vec(255,255,255),255)
            EGP:egpMaterial(Index,"vgui/zoom") Index++
            EGP:egpText(Index,"Hvy Water Gen",vec2(295,452)) EGP:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP:egpSetFont(Index,SetFont,23) Index++} else {Index = Index + 3} 
        
        if (Exe == 2 | Shieldwf == 0) {
            if (Shieldp < 25 & ->ShipCore) {Shieldwf = 0 EGP2:egpBox(Index,vec2(30,70),vec2(450,35)) EGP2:egpColor(Index,vec(255,0,0),Wfr)} else {Shieldwf = 1} 
            Shieldrwf = $Shieldwf
            if(Shieldrwf == 1) {EGP2:egpColor(Index,vec(255,0,0),0)} Index++
            Shieldpd = Shieldp
            Shieldgo = $Shieldpd
            Shieldnd = Shieldn
            ShieldgoNum = $Shieldnd
            if (Shieldgo != 0 | ShieldgoNum != 0) {
                if(Shieldp>=50){
                    Shg = 255
                    Shr = 5.1*(100-Shieldp)
                        }elseif(Shieldp<50 & Shieldp>=0){
                            Shg = 5.1*Shieldp
                            Shr = 255}
                EGP2:egpBox(Index,vec2(30,70),vec2(Shieldp*4.5,35)) EGP2:egpColor(Index,vec(Shr,Shg,0),255) Index++
                EGP2:egpBox(Index,vec2(30,70),vec2(Shieldp*4.5,35)) EGP2:egpColor(Index,vec(Shr,Shg,0),255)
                EGP2:egpMaterial(Index,"vgui/zoom") Index++
                EGP2:egpText(Index,"Shield                     "+Shieldp+"%",vec2(35,75)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++
                EGP2:egpText(Index,"               "+round(Shieldn)+"",vec2(35,75)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++} else {Index = Index+4}} else {Index = Index+5}
        
        
        if (Exe == 3 | Armorwf == 0) {
            if (Armorp < 50 & ->ShipCore) {Armorwf = 0 EGP2:egpBox(Index,vec2(30,110),vec2(450,35)) EGP2:egpColor(Index,vec(255,0,0),Wfr)} else {Armorwf = 1} 
            Armorrwf = $Armorwf
            if(Armorrwf == 1) {EGP2:egpColor(Index,vec(255,0,0),0)} Index++
            Armorpd = Armorp
            Armorgo = $Armorpd
            Armornd = Armorn
            ArmorgoNum = $Armornd
            if (Armorgo != 0 | ArmorgoNum != 0) {
                if(Armorp>=50){
                    Arg = 255
                    Arr = 5.1*(100-Armorp)
                        }elseif(Armorp<50 & Armorp>=0){
                            Arg = 5.1*Armorp
                            Arr = 255}
                EGP2:egpBox(Index,vec2(30,110),vec2(Armorp*4.5,35)) EGP2:egpColor(Index,vec(Arr,Arg,0),255) Index++
                EGP2:egpBox(Index,vec2(30,110),vec2(Armorp*4.5,35)) EGP2:egpColor(Index,vec(Arr,Arg,0),255) 
                EGP2:egpMaterial(Index,"vgui/zoom") Index++
                EGP2:egpText(Index,"Armor                      "+Armorp+"%",vec2(35,115)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++
                EGP2:egpText(Index,"               "+round(Armorn)+"",vec2(35,115)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++} else {Index = Index+4}} else {Index = Index+5}
        
        if (Exe == 2 | Hullwf == 0) {
            if (Hullp < 100 & ->ShipCore) {Hullwf = 0 EGP2:egpBox(Index,vec2(30,150),vec2(450,35)) EGP2:egpColor(Index,vec(255,0,0),Wfr)} else {Hullwf = 1} 
            Hullrwf = $Hullwf
            if(Armorrwf == 1) {EGP2:egpColor(Index,vec(255,0,0),0)} Index++
            Hullpd = Hullp
            Hullgo = $Hullpd
            Hullnd = Hulln
            HullgoNum = $Hullnd
            if (Hullgo != 0 | HullgoNum != 0) {
                if(Hullp>=50){
                    Hullg = 255
                    Hullr = 5.1*(100-Hullp)
                        }elseif(Hullp<50 & Hullp>=0){
                            Hullg = 5.1*Hullp
                            Hullr = 255}
                EGP2:egpBox(Index,vec2(30,150),vec2(Hullp*4.5,35)) EGP2:egpColor(Index,vec(Hullr,Hullg,0),255) Index++
                EGP2:egpBox(Index,vec2(30,150),vec2(Hullp*4.5,35)) EGP2:egpColor(Index,vec(Hullr,Hullg,0),255) 
                EGP2:egpMaterial(Index,"vgui/zoom") Index++
                EGP2:egpText(Index,"Hull                       "+Hullp+"%",vec2(35,155)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++
                EGP2:egpText(Index,"               "+round(Hulln)+"",vec2(35,155)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++} else {Index = Index+4}} else {Index = Index+5}
            
        
        
        if (Exe == 1 | Capacitorwf == 0) {
            if (Capacitorp < 50 & ->ShipCore) {Capacitorwf = 0 EGP2:egpBox(Index,vec2(30,190),vec2(450,35)) EGP2:egpColor(Index,vec(255,0,0),Wfr)} else {Capacitorwf = 1} 
            Capacitorrwf = $Capacitorwf
            if(Capacitorrwf == 1) {EGP2:egpColor(Index,vec(255,0,0),0)} Index++
            Capacitorpd = Capacitorp
            Capacitorgo = $Capacitorpd
            Capacitornd = Capacitorp
            CapacitorgoNum = $Capacitornd
            if (Capacitorgo != 0 | CapacitorgoNum != 0) {
                if(Capacitorp>=50){
                    Capacitorg = 255
                    Capacitorr = 5.1*(100-Capacitorp)
                        }elseif(Capacitorp<50 & Capacitorp>=0){
                            Capacitorg = 5.1*Capacitorp
                            Capacitorr = 255}
                EGP2:egpBox(Index,vec2(30,190),vec2(Capacitorp*4.5,35)) EGP2:egpColor(Index,vec(Capacitorr,Capacitorg,0),255) Index++
                EGP2:egpBox(Index,vec2(30,190),vec2(Capacitorp*4.5,35)) EGP2:egpColor(Index,vec(Capacitorr,Capacitorg,0),255) 
                EGP2:egpMaterial(Index,"vgui/zoom") Index++
                EGP2:egpText(Index,"Capacitor                  "+Capacitorp+"%",vec2(35,195)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++
                EGP2:egpText(Index,"               "+round(Capacitorn)+"",vec2(35,195)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
                EGP2:egpSetFont(Index,SetFont,25) Index++} else {Index = Index+4}} else {Index = Index+5}
        
        T1D = ->Turret1
        T1go = $T1D
        if (A2) {T1go = 1}
        if (T1go != 0) { 
            if (->Turret1) { T1r = 0 T1g = 255 T1s = "Online"} else {T1r = 255 T1g = 0 T1s = "Offline"}
            EGP2:egpBox(Index,vec2(35,300),vec2(75,75)) EGP2:egpColor(Index,vec(T1r,T1g,0),255) Index++
            EGP2:egpBox(Index,vec2(35,300),vec2(75,75)) EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(42,302)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"1",vec2(62,325)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T1s+"",vec2(40,355)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        
        T2D = ->Turret2
        T2go = $T2D
        if (A2) {T2go = 1}
        if (T2go != 0) { 
            if (->Turret2) { T2r = 0 T2g = 255 T2s = "Online"} else {T2r = 255 T2g = 0 T2s = "Offline"}
            EGP2:egpBox(Index,vec2(125,300),vec2(75,75)) EGP2:egpColor(Index,vec(T2r,T2g,0),255) Index++
            EGP2:egpBox(Index,vec2(125,300),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(132,302)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"2",vec2(152,325)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T2s+"",vec2(130,355)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        T3D = ->Turret3
        T3go = $T3D
        if (A2) {T3go = 1}
        if (T3go != 0) { 
            if (->Turret3) { T3r = 0 T3g = 255 T3s = "Online"} else {T3r = 255 T3g = 0 T3s = "Offline"}
            EGP2:egpBox(Index,vec2(35,390),vec2(75,75)) EGP2:egpColor(Index,vec(T3r,T3g,0),255) Index++
            EGP2:egpBox(Index,vec2(35,390),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(42,392)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"3",vec2(62,415)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T3s+"",vec2(40,445)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
            
        T4D = ->Turret4
        T4go = $T4D
        if (A2) {T4go = 1}
        if (T4go != 0) { 
            if (->Turret4) { T4r = 0 T4g = 255 T4s = "Online"} else {T4r = 255 T4g = 0 T4s = "Offline"}
            EGP2:egpBox(Index,vec2(125,390),vec2(75,75)) EGP2:egpColor(Index,vec(T4r,T4g,0),255) Index++
            EGP2:egpBox(Index,vec2(125,390),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(132,392)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"4",vec2(152,415)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T4s+"",vec2(130,445)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        T5D = ->Turret5
        T5go = $T5D
        if (A2) {T5go = 1}
        if (T5go != 0) { 
            if (->Turret5) { T5r = 0 T5g = 255 T5s = "Online"} else {T5r = 255 T5g = 0 T5s = "Offline"}
            EGP2:egpBox(Index,vec2(310,300),vec2(75,75)) EGP2:egpColor(Index,vec(T5r,T5g,0),255) Index++
            EGP2:egpBox(Index,vec2(310,300),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(317,302)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"5",vec2(337,325)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T5s+"",vec2(315,355)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        T6D = ->Turret6
        T6go = $T6D
        if (A2) {T6go = 1}
        if (T6go != 0) { 
            if (->Turret6) { T6r = 0 T6g = 255 T6s = "Online"} else {T6r = 255 T6g = 0 T6s = "Offline"}
            EGP2:egpBox(Index,vec2(400,300),vec2(75,75)) EGP2:egpColor(Index,vec(T6r,T6g,0),255) Index++
            EGP2:egpBox(Index,vec2(400,300),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(407,302)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"6",vec2(429,325)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T6s+"",vec2(405,355)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        T7D = ->Turret7
        T7go = $T7D
        if (A2) {T7go = 1}
        if (T7go != 0) { 
            if (->Turret7) { T7r = 0 T7g = 255 T7s = "Online"} else {T7r = 255 T7g = 0 T7s = "Offline"}
            EGP2:egpBox(Index,vec2(310,390),vec2(75,75)) EGP2:egpColor(Index,vec(T7r,T7g,0),255) Index++
            EGP2:egpBox(Index,vec2(310,390),vec2(75,75))  EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(317,392)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"7",vec2(337,415)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T7s+"",vec2(315,445)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        T8D = ->Turret8
        T8go = $T8D
        if (A2) {T8go = 1}
        if (T8go != 0) { 
            if (->Turret8) { T8r = 0 T8g = 255 T8s = "Online"} else {T8r = 255 T8g = 0 T8s = "Offline"}
            EGP2:egpBox(Index,vec2(400,390),vec2(75,75)) EGP2:egpColor(Index,vec(T8r,T8g,0),255) Index++
            EGP2:egpBox(Index,vec2(400,390),vec2(75,75)) EGP2:egpColor(Index,vec(255,255,255),255)
            EGP2:egpMaterial(Index,"vgui/zoom") Index++
            EGP2:egpText(Index,"Turret ",vec2(407,392)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++
            EGP2:egpText(Index,"8",vec2(429,415)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,30) Index++
            EGP2:egpText(Index,""+T8s+"",vec2(405,445)) EGP2:egpColor(Index,vec(Txtr,Txtg,Txtb),255)
            EGP2:egpSetFont(Index,SetFont,20) Index++} else {Index = Index + 5} 
        
        EGP:egpDraw() 
        EGP2:egpDraw()  
    }
    Last edited by x410x; 03-15-2010 at 01:43 PM. Reason: Code update, added boxoutlines around the turrets and system status.

  2. #2
    Wire Sofaking Wizard of Ass's Avatar
    Join Date
    May 2009
    Location
    Germany Bremerhaven
    Posts
    1,044

    Default Re: Space build EGP srceen.

    How much usermessage does it use?
    seriously getting serious

  3. #3
    Wire Noob x410x's Avatar
    Join Date
    Jan 2010
    Posts
    15

    Default Re: Space build EGP srceen.

    Quote Originally Posted by Wizard of Ass View Post
    How much usermessage does it use?
    It uses the most while fulling up and even then I never see a spike over 500-600, where as my old crappy console screens would go up to 2-3k lol. If you want I could make another video with net_graph 2.

    Edit: I made made a short video at 1920*1200 with net_graph 2 so you can see the user messages. i will edit the first post once its done converting and uploading.
    Last edited by x410x; 03-12-2010 at 12:56 PM.

  4. #4
    goluch
    Guest goluch's Avatar

    Default Re: Space build EGP srceen.

    Nice!

  5. #5
    Wire Amateur GmodAce's Avatar
    Join Date
    Jan 2010
    Posts
    33

    Default Re: Space build EGP srceen.

    I've always wanted a ship where you can get out of your seat and not teleport outside it. Of course im only good at wireing not building. Can you at least just release the frame? Its so awesome! Either way nice job.

  6. #6
    goluch
    Guest goluch's Avatar

    Default Re: Space build EGP srceen.

    Its called a set exit point. (look in entities)
    About the USM display if that was EGP2 the usm count will reduce significantly.

  7. #7
    Wire Noob x410x's Avatar
    Join Date
    Jan 2010
    Posts
    15

    Default Re: Space build EGP srceen.

    Quote Originally Posted by GmodAce View Post
    I've always wanted a ship where you can get out of your seat and not teleport outside it. Of course im only good at wireing not building. Can you at least just release the frame? Its so awesome! Either way nice job.
    Here is just the hull with doors!



    For some reason there is an extra "." in the dup file name, just remove it and it should work.
    &#112;&#104;&#120;&#32;&#104;&#117;&#108;&#108;&#46;.txt
    Last edited by x410x; 03-13-2010 at 07:30 AM.

  8. #8
    Lifetime Supporter dracotonisamond's Avatar
    Join Date
    Jun 2009
    Location
    127.0.0.1
    Posts
    376

    Default Re: Space build EGP srceen.

    wow... this is absolutely amazing... those screens put all my previous egp work to shame... too shame. you just gone and made me want to go play spacebuild. hmm, i might drop by your server there.
    and this kind of stuff is proof that egp isnt a waste, but an improvement and successor to gpu. so simple, yet so elegant.

    Quote Originally Posted by JatGoodwin in wiremod IRC
    <JatGoodwin> ITSBTH, the point of rainmeter is to impress the lamers with your leet computer
    <JatGoodwin> software equivalent of putting lights in your computer

  9. #9
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: Space build EGP srceen.

    Hey, is that the drone I helped you to build ? anyway, this is the coolest LS info chip i ever seen.
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

  10. #10
    Wire Noob x410x's Avatar
    Join Date
    Jan 2010
    Posts
    15

    Default Re: Space build EGP srceen.

    Quote Originally Posted by Unsmart View Post
    Hey, is that the drone I helped you to build ? anyway, this is the coolest LS info chip i ever seen.
    Somewhat, I've changed it to use driver():eyeAngles() and use propcore for movement. The only reason I've droped the eyepod is if you are getting less than about 20-25 fps they just stop working and in space combat with lager ships, you can drop to only 5-10 fps. And I've changed it from appyforce to propcore just to keep the ops low as before it could hit up to 800 ops in flight. With setAng and setPos it only uses about 150 ops in flight, can now go faster than the source speed limit and is far more accurate at high speeds but it no longer seems as smooth.

+ Reply to Thread
Page 1 of 3 123 LastLast

LinkBacks (?)

  1. 06-11-2010, 01:19 AM
  2. 03-12-2010, 11:42 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots