This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Calculate coordinates from Adt  (Read 2437 times)

Fyrion

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 75
    • View Profile
Calculate coordinates from Adt
« on: May 13, 2012, 12:15:59 pm »
To calculate your coordinates from your .Adt, follow these steps.

The formula, to calculate your coordinates is the following:

$Mapname_x_y = (X - 32) * 533 + 266
$Mapname_x_y = (Y - 32) * 533 + 266

For example we are using the (EK - 29_51 / Westfall) adt.
(Eastern Kingdoms, Westfall 29_51)

Insert the x and y coordinate into the formular.

---------------X---Y-----X----Y
$Mapname_29_51 = (29 - 32) * 533 + 266
$Mapname_29_51 = (51 - 32) * 533 + 266
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
$Mapname_29_51 = -3 * 533 + 266
$Mapname_29_51 = 19 * 533 + 266
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
$Mapname_29_51 = -1.599 + 266
$Mapname_29_51 = 10.127 + 266
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
$Mapname_29_51 = -1.333
$Mapname_29_51 = 10.393

Subsidiary the x coordinate gets the negativ value and y the positiv value. That means:

$Mapname_29_51 = -1.333 * (-1) ==> - + - = +
$Mapname_29_51 = 10.393 * (-1) ==> - + + = -
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
$Mapname_29_51 = 1.333
$Mapname_29_51 = -10.393

switch them and insert them into the go command. You've to change the z_height!

.go -10393 1333 z_height
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Eluo

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 509
    • View Profile
Re: Calculate coordinates from Adt
« Reply #1 on: May 13, 2012, 02:36:47 pm »
:D kinda the same as i have here:
viewtopic.php?f=22&t=26&p=72#p72
At the end of the post in the spoilers.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
One is a genius, the other\'s insane!

Fyrion

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 75
    • View Profile
Re: Calculate coordinates from Adt
« Reply #2 on: May 13, 2012, 05:05:57 pm »
Ok ;) but i think, this is a practical evidence of working with.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Calculate coordinates from Adt
« Reply #3 on: May 13, 2012, 08:48:05 pm »
Or you just use noggit and read the cords :)

Or even use the function g that wirte the current pos into the ports.txt
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954