Page MenuHomeFeedback Tracker

Position coordinates in Eden does not match in-game (and setPos) coordinates for some objects.
New, WishlistPublic

Description

When placing certain objects at specific coordinates using the Attributes->Transformation->Position interface in Eden, some objects seem to spawn at an offset. When checking the coordinates ingame they clearly do not match those set in the object's Eden attributes. Using setPos with the same coordinates as in the object's Eden attributes will move such objects significantly, to a position that is fairly accurate.

Details

Legacy ID
494873965
Severity
None
Resolution
Open
Reproducibility
Sometimes
Category
Eden Editor
Steps To Reproduce
  1. Open Altis with Eden editor.
  2. Place object (Land_BarGate_F is a very good example).
  3. Open the object's attributes and input a new set of numbers for position.
  4. Compare the numbers you typed in to those that show up when you use getPos Object ingame.
  5. Use setPos on the object, and supply it with the exact same numbers that you typed into the object's attributes in Eden back at step 3. Observe how different the position is visually before and after setPos.
  6. Check object position again with getPos Object and you will see that these now seem to match with the ones from step 3, yet there is a difference between where it is shown in Eden vs. ingame.
Additional Information

Not sure if this applies to all objects and to what extend, but some have minimal or practically no offseting (i.e. Land_CnCBarrier_F), whilst others have huge offsets (i.e. Land_BarGate_F). It seems to mostly apply on the X and Y axis, at least on the objects that I have tested.

If you want a quick way of checking this out, I suggest using the same test parameters as I did in the screenshots. Place the aforementioned Land_BarGate_F, placing it at the coordinates [14480.037, 16828.01, 0] (Altis Internation Airport parking lot) in Eden, use 134.82 for Z rotation, and putting the following in its Init field:

  • cut here ---

editorPos = getPos this;
plannedPos = [14470.71, 16832.11, 0];
this setPos plannedPos;
newPos = getPos this;
hint format["editorPos: %1\n\nplannedPos: %2\n\nnewPos: %3", editorPos, plannedPos, newPos];

  • cut here ---

You'll see clearly that it moves from partially on the grass in the editor, to moving onto the actual driveway ingame.

Event Timeline

Kresjah edited Steps To Reproduce. (Show Details)Feb 6 2016, 1:37 AM
Kresjah edited Additional Information. (Show Details)
Kresjah set Category to Eden Editor.
Kresjah set Reproducibility to Sometimes.
Kresjah set Severity to None.
Kresjah set Resolution to Open.
Kresjah set Legacy ID to 494873965.May 8 2016, 1:39 PM
Bohemia added a subscriber: Kresjah.Feb 6 2016, 1:37 AM