VanillaPlusPlus / VPP-Admin-Tools

The complete DayZ VanillaPlusPlus Administrator tools. This repository holds both client, and server side files.
99 stars 43 forks source link

[BUG] Position coordinates that you copy to the clipboard seem to be off. #57

Open gaveitatry2 opened 3 years ago

gaveitatry2 commented 3 years ago

I pressed 'P' to copy my position coordinates and this is what I got: <8040.685547, 347.467957, 7056.247070>

I died when I tried teleporting there, because I was way up in the air. I wanted to retrieve my corpse, so I teleported back there again, but I changed it to <8040, 20, 7056>. I was still too high up in the air, and almost died again. I blacked out. But I found the tool to give myself health, and so I recovered. I also turned god mode on for good measure. I retrieved all my items from my corpse.

Then after playing around, I found the correct coordinates (through trial and error): <8042.75, 3, 7053.25>

As you can see, the original coordinates that I copied and the ones that I found through trial and error are a lot different: <8040.69, 347.47, 7056.25> <8042.75, 3, 7053.25>

The obvious difference is the height coordinate. 3 and 347.47 aren't even close. I was on the second floor of a house. It's possible that the mod moves the decimal point over two spaces and that it really meant to output 3.47467957. But when I tried 3.47 I was actually up in the air and fell a ways (like if I were to jump really high but not hit my head on the ceiling). And you can see that the other coordinates are off a little too. Like 8040.69 and 8042.75 aren't the same. And 7056.25 and 7053.25 are also not the same.

It's still a useful tool, but it caught me off guard because of how imprecise it is.

GravityWolfNotAmused commented 3 years ago

Copy position copies the position of the object you are looking at, so if you wish to get the POS of yourself look down, and hit the keybinding. If where you are looking doesn't contain a Object, than it will return the players position. If this doesn't work for you please advise.

https://github.com/VanillaPlusPlus/VPP-Admin-Tools/blob/b803f060e21969b07417b1ebd2348fa83773be6d/5_Mission/missionGameplay.c#L131-L152

Here's the link to the source where it looks for an object, and copy's it's the position, or your own position.

gaveitatry2 commented 3 years ago

Btw, I got burned out testing things on my server so I haven't played DayZ in almost three weeks. I will eventually play again and I will re-test everything. But I am not sure how long that will be from now. Could be one month. Could be longer. Just not up to it right now.

Xenocide122 commented 1 year ago

I am currently having this issue, I copied the coords by looking down and get this: Position: <4977.228516, 9.512444, 2449.385010> Orientation: <112.057487, 0.000000, -0.000000> Config-Type: SurvivorM_Elias

Then I add it to a Saved Position in the Teleport Tools to test it and that places me in the sky and I fall and get hurt, I changed the coords to this: Position: <4977, 9.5, 2448.04>

Now I only fall a little and I am good, any idea what is going on?

Da0ne commented 1 year ago

Hi Xenocide122, you are correct. There is a bug within the teleport tool that enables you to save coordinates. The coordinates within the "copy to clipboard" is correct and accurate. The bug occurs ONLY after saving the coordinates into the teleport tool. For now you can avoid this by leaving the height axis to 0 (the second number within the copied coordinates e.g; 12354, 0, 12354)

The bug will be addressed in an upcoming patch.

Thanks.

Da0ne commented 1 year ago

As a another temporary solution, you can teleport to exact coordinates by utilizing the Commands Console menu, which contains shortcut commands in which include teleportation to coordinates, players & saved presets. These commands can also be used in direct game chat (only if you don't run other mods that modify the chat system due to an incomparability issue which is yet to be addressed.)

scottishcammy commented 2 months ago

SOLUTION FOUND

It copies the co-ordinates of the object you're looking at, not the location of your player. I just spent ages creating loads of spawn points before realising. So if you're looking at the ground in the big hanger at NWAF you'll get one co-ordinate no matter where u stand. Solution is to place a small object like a grenade on the ground and get it's co-ordinates.