+ Reply to Thread
Results 1 to 6 of 6

Thread: Need help with my expressions for Asgard Transporter

  1. #1
    Lurker alteron is on a distinguished road alteron's Avatar
    Join Date
    May 2007
    Posts
    19

    Question Need help with my expressions for Asgard Transporter

    Hi, I hope someone can help me with this, thanks.
    I have tried to make 2 expression chips for the asgard transporter from the stargate pack one of them work very good ( "asgard transporter locals database fornlorn rl2") the other one i'm not very shure it seems to be uncomplete or incorrect since it does not work every time ("teleporter target switch").
    The expression "asgard transporter locals database fornlorn rl2" is merely a database of coordinates, the seconde expressin is intended to work with 2 target finders and one laser receiver, one of the target finders is set to only track me, the second to only track other player within a small radius and the laser receiver with the laser pointer.
    Sometimes and I'm unnable to understand why, when annother player enters the specified radius he and I get teleported together even if I'm very far away from him....
    I would like to ask some of you who are far more skilled with expressions and wiremod then I am, if you could take a look at my codes and contraption and tell me how to fix this.
    I will post my the two expressions and one adv. duplicater file since some features of of my contrapion use the more simple standart chips, this way you can have a better look and understanding of my contraption.
    Below are the current expressions I use.

    Code:
    N@Fornlorn_rl2_database
    I@A B C D E F G H I J GPSX GPSY GPSZ GPSX1 GPSY1 GPSZ1
    O@SENDX SENDY SENDZ Teleport
    Teleport = SENDY = YCoord = SENDZ = 0
    If A == 1 -> SENDX = GPSX, SENDY = GPSY, SENDZ = GPSZ, Teleport = 1;
    If B == 1 -> SENDX = GPSX1, SENDY = GPSY1, SENDZ = GPSZ1, Teleport = 1;
    If C == 1 -> SENDX = 9968, SENDY = -5684, SENDZ = -11517, Teleport = 1;
    If D == 1 -> SENDX = 7664, SENDY = -10924, SENDZ = -8988, Teleport = 1;
    If E == 1 -> SENDX = 11016, SENDY = 9975, SENDZ = -8988, Teleport = 1;
    If F == 1 -> SENDX = 9433, SENDY = 9978, SENDZ = 310, Teleport = 1;
    If G == 1 -> SENDX = -8667, SENDY = 10556, SENDZ = 7092, Teleport = 1;
    If H == 1 -> SENDX = 5877, SENDY = -3675, SENDZ = 6425, Teleport = 1;
    If I == 1 -> SENDX = -8087, SENDY = -9276, SENDZ = 575, Teleport = 1;
    If J == 1 -> SENDX = 13528, SENDY = 12149, SENDZ = 12627, Teleport = 1;
    
    Note: the inputs GPSX to GPSZ and GPSX1 to GPSZ1 are intend to use the two difrent GPS beacons or custom coordinates.

    Code:
    N@ORIGIN SWITCH CONTROL
    I@BASE_INSRUDER IR FRIENDX FRIENDY FRIENDZ FOEX FOEY FOEZ IRX IRY IRZ
    O@ORIX ORIY ORIZ
    ORIX = FRIENDX
    ORIY = FRIENDY
    ORIZ = FRIENDZ
    If BASE_INSRUDER == 1 -> ORIX = FOEX, ORIY = FOEY, ORIZ = FOEZ;
    If IR == 1 -> ORIX = IRX, ORIY = IRY, ORIZ = IRZ;
    
    P.S.: when another player is within the specified radius and at the same time i want to use the teleporter, it should allways track down the other player rather then me or the input from the laser receiver.
    Attached Files
    Last edited by alteron; 09-12-2009 at 06:17 AM.

  2. #2
    billywitchdoctor.com Whosdr has a spectacular aura about Whosdr has a spectacular aura about Whosdr has a spectacular aura about Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,120

    Default Re: Need help with my expressions for Asgard Transporter

    Its your choice, but I would suggest E2 for its overall better layout and functions. I would use an array in this case.
    .siht daer ot gniyrt emit detsaw ev'uoY

  3. #3
    Expressionism 2.0

    Syranide has disabled reputation Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,504

    Default Re: Need help with my expressions for Asgard Transporter

    "ORIX = FRIENDx" note the lowercase x there, should be uppercase or it will always be 0.
    Also, I would recommend not writing everything in CAPS but use FriendX, SendX, etc.

  4. #4
    Lurker alteron is on a distinguished road alteron's Avatar
    Join Date
    May 2007
    Posts
    19

    Thumbs up Re: Need help with my expressions for Asgard Transporter

    Quote Originally Posted by Whosdr View Post
    Its your choice, but I would suggest E2 for its overall better layout and functions. I would use an array in this case.
    The problem is that I don't understand enough of E2 coding, and it was already complicated for me to code this ones... But i agree E2 would be better.

    Quote Originally Posted by Syranide View Post
    "ORIX = FRIENDx" note the lowercase x there, should be uppercase or it will always be 0.
    Also, I would recommend not writing everything in CAPS but use FriendX, SendX, etc.
    Thanks, but it still has the same bug when teleporting other players.

  5. #5
    billywitchdoctor.com Whosdr has a spectacular aura about Whosdr has a spectacular aura about Whosdr has a spectacular aura about Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,120

    Default Re: Need help with my expressions for Asgard Transporter

    And make sure teleport everything is 0. But people too close to you get teleported.
    .siht daer ot gniyrt emit detsaw ev'uoY

  6. #6
    Lurker alteron is on a distinguished road alteron's Avatar
    Join Date
    May 2007
    Posts
    19

    Cool Re: Need help with my expressions for Asgard Transporter

    Quote Originally Posted by Whosdr View Post
    And make sure teleport everything is 0. But people too close to you get teleported.
    That I allready set to 0, but what happens is that when it teleports other players it also teleports me, and i'm not even close to the other players...
    I'm not shure but it could just be a question of getting the wright timming...

+ Reply to Thread

Similar Threads

  1. [Request]Transporter
    By mattwd0526 in forum Wiremod Addons
    Replies: 30
    Last Post: 09-14-2009, 10:32 PM
  2. [E2 Help] Asgard Transporter
    By Milo in forum Technical Support
    Replies: 6
    Last Post: 07-24-2009, 01:02 PM
  3. How to add glow to the model of Asgard Transporter ?
    By lotus006 in forum Technical Support
    Replies: 1
    Last Post: 04-19-2009, 12:36 AM
  4. Asgard Transporter - Origins and Destinations
    By Cpt. Archie in forum Wiremod Tutorials
    Replies: 3
    Last Post: 07-30-2008, 07:52 AM
  5. Multi-Targeting Transporter Control Setup
    By cbale2000 in forum Finished contraptions
    Replies: 6
    Last Post: 07-18-2007, 01:54 PM

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