+ Reply to Thread
Results 1 to 5 of 5

Thread: Stargate Expression Dialer

  1. #1
    Inactive Brian4120 is on a distinguished road Brian4120's Avatar
    Join Date
    Jul 2007
    Posts
    1

    Default

    Ok, what I am trying to do is make a replica of a Interstellar Stargate bridge (In the show, a chain of Stargates connected to bridge the gap between galaxies. but since it would be silly to just have one gate "store" the player, I just place two infront of eachother and have the inertia of the player move him though to the other Stargate)
    Basically, I will have all the wired keyboard values in constant values, inputted into the expression gate. Then, using the interval, cycle though the six values in the constant and then end at the 7th with a dial command (toggle of 1) Hopefully, when the Stargate disengages, all values will reset and allow for another trip.

    In case you don't have any idea what I'm talking about.
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>
    >=======>->=======>->======> Flow of travel
    *0-----[0*0]-----[0*0]-----0 <endpoint
    ^ Startpoint ^ * = Dial controller
    </div>
    And the [0*0] Stands for two Stargates facing each other at a close distance, making the "bridge"

    Anyways, i attempted to write the code myself... with no luck whatsoever.

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Gatebrige_controller
    I@Gate_active Input1 Input2 Input3 Input4 Input5 Input6
    O@Dial_output Dial
    Time = 0, If Gate_active & Time <= 200 -> interval(100);
    clk() -> Time += 1;
    If Time == 1 -> Input1 = Dial_output;
    If Time == 2 -> Input2 = Dial_output;
    If Time == 3 -> Input3 = Dial_output;
    If Time == 4 -> Input4 = Dial_output;
    If Time == 5 -> Input5 = Dial_output;
    If Time == 6 -> Input6 = Dial_output;
    If Time >= 7 -> Dial = 1;
    If Gate_active == 0 -> Dial = 0;
    </div>

    If I could get the Gate_active to turn this on without a toggled button, that would be even better... Also, I found out that as long as I keep outputting the Dial Value, the gate will remain on, but it will automatically close after a while/someone goes though. So I would want a way for it to turn off the dial value once the other Stargate is closed.
    Oh, and I will be using one gate per way, just to keep the complexity down.

    Any help would be greatly appreciated Thanks! Sorry if my post makes absolutely no sense... its late.

  2. #2
    Lifetime Supporter DuFace is on a distinguished road DuFace's Avatar
    Join Date
    Aug 2007
    Posts
    210

    Default

    I know it's been over a month since you posted but have you made any progress with this? After I read this thread I thought I'd have a go myself and got it working quite well surprisingly quickly. I only created the one bridge and tested it on gm_solarsystem_v2 between Earth and the Moon

    I shouldn't be so impressed with it but I think it's awesome! Some pics for those who care:
    <div align="center">
    [attachment=1116:gm_solar...m_v20002.jpg]
    [attachment=1114:gm_solar...m_v20004.jpg]
    [attachment=1115:gm_solar...m_v20007.jpg]
    </div>

    I used three expression gates to handle the dialling. One had the following expression:
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Stargate Bridge Controller
    I@Inbound1 Inbound2
    O@Addr Dial1 Dial2
    # Two addresses supported by this bridge
    Addr1 = send(69, 65, 82, 84, 72, 49) # EARTH1
    Addr2 = send(69, 65, 82, 84, 72, 77) # EARTHM

    # Output appropriate address and dial command
    Addr = (Inbound1 ? Addr2 : (Inbound2 ? Addr1 : 0))
    Dial1 = Inbound2
    Dial2 = Inbound1
    </div>

    And the other two had this one:
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Stargate Dialler
    I@Address Dial
    O@GateDial KeyIn
    # Wait for the dial instruction
    Dial == 0 ->
    GateDial = 0
    KeyIn = 0
    Counter = 0
    end;

    # Schedule the first clock pulse
    ~Dial & Dial ->
    schedule(100);

    # Dial sequence
    clk() ->
    Counter += 1
    Counter < 7 ->
    KeyIn = recv(Address, Counter)
    schedule(100);
    Counter >= 7 ->
    KeyIn = 0
    GateDial = 1;
    ;
    </div>

    Hope this helps
    Attached Images
    Fields of Green

  3. #3
    Inactive nikomo is on a distinguished road nikomo's Avatar
    Join Date
    Jul 2007
    Posts
    1

    Default

    I know it's been over a month since you posted but have you made any progress with this? After I read this thread I thought I'd have a go myself and got it working quite well surprisingly quickly. I only created the one bridge and tested it on gm_solarsystem_v2 between Earth and the Moon

    I shouldn't be so impressed with it but I think it's awesome! Some pics for those who care:
    <div align="center">
    [attachment=1116:gm_solar...m_v20002.jpg]
    [attachment=1114:gm_solar...m_v20004.jpg]
    [attachment=1115:gm_solar...m_v20007.jpg]
    I used three expression gates to handle the dialling. One had the following expression:
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Stargate Bridge Controller
    I@Inbound1 Inbound2
    O@Addr Dial1 Dial2
    # Two addresses supported by this bridge
    Addr1 = send(69, 65, 82, 84, 72, 49) # EARTH1
    Addr2 = send(69, 65, 82, 84, 72, 77) # EARTHM

    # Output appropriate address and dial command
    Addr = (Inbound1 ? Addr2 : (Inbound2 ? Addr1 : 0))
    Dial1 = Inbound2
    Dial2 = Inbound1
    </div>

    And the other two had this one:
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'>N@Stargate Dialler
    I@Address Dial
    O@GateDial KeyIn
    # Wait for the dial instruction
    Dial == 0 ->
    GateDial = 0
    KeyIn = 0
    Counter = 0
    end;

    # Schedule the first clock pulse
    ~Dial & Dial ->
    schedule(100);

    # Dial sequence
    clk() ->
    Counter += 1
    Counter < 7 ->
    KeyIn = recv(Address, Counter)
    schedule(100);
    Counter >= 7 ->
    KeyIn = 0
    GateDial = 1;
    ;
    </div>

    Hope this helps [/b][/quote]
    Yeah.. would be nice to know how to wire that.

  4. #4
    Inactive Ctri is on a distinguished road Ctri's Avatar
    Join Date
    Oct 2007
    Location
    Edinburgh
    Posts
    66

    Default

    can anyone explain how it is exactly that you can define what gate address to dial, with Wire? it'd be useful to have radio controlled gates.
    If one wants to truly pwn. One must pwn in [i]all [/i]games.

  5. #5
    Inactive meeces2911 is on a distinguished road meeces2911's Avatar
    Join Date
    Sep 2007
    Location
    New Zealand
    Posts
    22

    Default

    Ok, i just found this out a few hour ago. To dial a gate, you need to have a timer 6 ascii values (the gate address) and a button or 2.

    Timer --> ascii[1] --> Stargate
    clk() --> ascii[2] --> Stargate
    etc.
    clk() --> fastdail = 1 --> Stargate

    Apparently the wire keyboard is fixed ?? so you can wire that up to the stargate (the wire keyboard still dosn't work on my pc) Under the wirekeyboard input.
    Then attach a button to either the fast of slow dial.
    type in the address you want to go THEN press the TOGGLE dial.

    have a look at the basic code im using to dial my gates.
    [ame="http://www.wiremod.com/showthread.php?t=3175"]http://www.wiremod.com/showthread.php?t=3175[/ame]

    Hope this helps

    [sorry if im slightly off topic, but i dont know how to wire up the above gates, or radio... but im working on it )
    [url="http://page81.no-ip.org:27015"]http://page81hl2.no-ip.org[/url]
    This is my Gmod server, but i am not online very often...
    I need someone with some patience to test my server, so i can see if i have
    port forwarded right. Please Pm me if you wish to help :)

+ Reply to Thread

Similar Threads

  1. Stargate Spammer/Auto Dialer
    By JonLeonTM in forum Custom & Advanced Gates
    Replies: 14
    Last Post: 08-13-2009, 10:19 AM
  2. E2 expression help(stargate)
    By iownuall123 in forum Expression Help
    Replies: 3
    Last Post: 01-09-2009, 11:54 PM
  3. Stargate Dialling Expression
    By TheRussian in forum Custom & Advanced Gates
    Replies: 6
    Last Post: 07-28-2008, 03:11 AM
  4. Stargate Auto Dialer Change Values
    By meeces2911 in forum Custom & Advanced Gates
    Replies: 4
    Last Post: 01-08-2008, 03:48 AM
  5. Gate Dialer - Need help
    By Aus_Karlos in forum Help & Support
    Replies: 1
    Last Post: 10-26-2007, 09:27 AM

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