Simple Coordinate display macro

Discussion in 'Basic Tutorials' started by GungnirIncarnate, Apr 13, 2013.

  1. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    As the title above says this is just a simple tutorial I threw together in 20 minutes so if there is something to do with making the label to display on the screen check out some of my other macro tutorials in our tutorial section on the forums.

    Ok so if you look up in the top right corner of the below screenshot you will see what our coordinate display is going to look like, or at least somewhat of what it should look like, remember you can place the label anywhere on the screen when you are creating it:
    [​IMG]

    1. So firstly we need to create the label that our coordinates are going to be displayed in, to do this while in-game hit your macro activate key (can be found in controls if you don't know what it is) and click the "edit GUI" button in the lower right corner of the screen, as shown below:
    [​IMG]

    Then if the screen that appears in the lower left corner click the "Button Panel Commands" button and click "add label":
    [​IMG]

    You can them place the label anywhere on that screen that you want to, personally I prefer the top right corner but that's just me. When you have placed the label where you want it a small window will appear asking you to set the details of the button, in this window you must set the "control name" to say "position" as shown below then hit "ok":
    [​IMG]

    2. Now we need to write the script that is going to make the label display our current position, to do this press your "macro activate" key while holding crouch to display another GUI if this one displays a keyboard for you then hit the right arrow next to "macro bindings: Keys" in the upper left corner to move to the events page. Then in the lower right corner hit the button labeled "..I" as shown in the screenshot below:
    [​IMG]

    in the screen that appears we need to create a new file and call it "coordinates" and hit "create" as show below:
    [​IMG]

    In the following screen you will need to copy paste the code (below) into the text field and then hit save in the lower right corner.
    Code:
    $${
    DO;
        SETLABEL(position,X: %XPOS% Y: %YPOS% Z: %ZPOS%,position)
        WAIT(20ms)
    LOOP;
    }$$
    [​IMG]

    Now that we have made that we need to have it run the script, to do this you need to return to your "macro bindings: events" screen and hit "onJoinGame", in the window that appears at the bottom of the screen in the text box write "$$<coordinates.txt>" if Like me you have multiple things that need to be assigned there you can do it like so "$$<balloop.txt>|$$<coordinates.txt>" in other words just separate it with a pipe "|", then you can just hit save in the lower right corner again.
    [​IMG]
    [​IMG]

    You will have to relog before the label will start to tell you coordinates but once you have done that it should do it without any problems, if you have difficulty or a problem please message me here on the forums instead of in game it makes it a lot easier to solve the problem person to person rather than around 200 people.
    Thanks and enjoy

    -Jakey
     
  2. Buddy_the_Turtle

    Builder ⛰️ Ex-Resident ⚒️

    Joined:
    Mar 14, 2013
    Messages:
    16
    Trophy Points:
    25,130
    Gender:
    Male
    Ratings:
    +1
    THANKS A MILLION!! :)
     
  3. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    I can't get the coordinates to show up unless I remove my $$<balloop.txt>
     
  4. AndroidNougat

    AndroidNougat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Feb 4, 2013
    Messages:
    552
    Trophy Points:
    27,240
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +126
    THANK YOU SO MUCH!!!
    Note: jakeyray18 i would like a xp macro! Just, i know as a supermod life is busy, and so yea, but when you get the chance, go ahead! Also i will pay $100 for a working exp tutorial!
     
  5. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    Try switching the order of the two and if it still doesn't work send me both the scripts and I'll combine them for you into one
     
  6. AndroidNougat

    AndroidNougat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Feb 4, 2013
    Messages:
    552
    Trophy Points:
    27,240
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +126
    you have to put the pipe in between |
     
  7. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    I've tried $$<balloop.txt>|$$<Coordinates> and $$<Coordinates.txt>|$$<balloop.txt>
     
  8. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    balloop:


    and coordinates:


     
  9. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    I have that.
     
  10. AndroidNougat

    AndroidNougat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Feb 4, 2013
    Messages:
    552
    Trophy Points:
    27,240
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +126
    odd. my friend Buddy_the_Turtle is having issues too
     
  11. AndroidNougat

    AndroidNougat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Feb 4, 2013
    Messages:
    552
    Trophy Points:
    27,240
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +126
    Make sure the .txt is
    Code:
    $${
    DO;
        SETLABEL(position,X: %XPOS% Y: %YPOS% Z: %ZPOS%,position)
        WAIT(20ms)
    LOOP;
    }$$
    And then make sure the [ON JOIN GAME] looks like
    If you have the Ballop.txt, and want the coordinates, it should look like
    Code:
    $<Balloop.txt>|$$<coordinates.txt>
    If you do not have the Balloop, then do
    Code:
    $$<Coordinates.txt>
     
  12. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    Lee1104 if that does not work delete both the balloop and the coordinates and create a new file called "Lee1104Login" and paste this script into the file and lpace in in your onJoinGame event and then relog, it should solve your problem:
    Code:
    $${
    IF(%SERVER% == "mc.ecocitycraft.com");
        DO;
            Echo("/bal");
            DO(90);
                SETLABEL(position,X: %XPOS% Y: %YPOS% Z: %ZPOS%,position);
                WAIT(100ms);
            LOOP;
        LOOP;
    }$$
     
  13. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    What do I put for the $$<_______ .txt> thing?
     
  14. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    you name it Lee1104Login so for the $$<_____.txt> you would put $$<Lee1104Login.txt>

    Lee1104
     
  15. Lee1104

    Lee1104 Builder
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️

    Joined:
    Oct 5, 2012
    Messages:
    1,913
    Trophy Points:
    31,940
    Gender:
    Male
    Ratings:
    +322
    Okay, now it says I am temporarily denied to join the server...

    Nevermind its fixed.

    Thanks for the help :D
     
    #15 Lee1104, Apr 13, 2013
    Last edited: Apr 13, 2013
  16. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    kicked for spamming?
     
  17. GungnirIncarnate

    Builder ⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Jul 18, 2012
    Messages:
    3,226
    Trophy Points:
    47,340
    Gender:
    Male
    Ratings:
    +481
    I tested it myself
     
  18. cbill101

    cbill101 Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Sep 1, 2012
    Messages:
    109
    Trophy Points:
    25,470
    Gender:
    Male
    Ratings:
    +23
    Can u make an exp display macro tutorial when you have time? That would be amazing.
     
    #18 cbill101, Apr 14, 2013
    Last edited: Apr 14, 2013
  19. AndroidNougat

    AndroidNougat Builder
    Builder ⛰️ Ex-Mayor ⚒️⚒️

    Joined:
    Feb 4, 2013
    Messages:
    552
    Trophy Points:
    27,240
    Gender:
    Male
    EcoDollars:
    $0
    Ratings:
    +126
    I asked jakeyray18 to do it, he will when he has time i belive
     
  20. AscorbicJo

    AscorbicJo Builder
    Builder ⛰️ Ex-President ⚒️⚒️

    Joined:
    Apr 20, 2013
    Messages:
    32
    Trophy Points:
    25,460
    Gender:
    Female
    Ratings:
    +14
    I'm pretty new to macro mod and I'm stuck at step 2 trying to pull up a second macro gui... when I press crouch + macroactivate (shift+~ for me) nothing happens. I've tried changing the hotkeys for sneak and macroactivate to see if it was just a weird thing with my keyboard, but nothing seems to work :/ Any advice would be much appreciated, thanks!