• 0
Sign in to follow this  
Followers 0
riddler251

Object Coords changing when the initServer.sqf loads to the server

Question

Posted (edited)

Ok, I know, I am asking too much at this point, 3rd post in 3 days... Start a server they said, it will be easy they said, it totally won't make you want to blow your brains out they said! Short story: My objects are not placing on the server at the same spot as they are in the editor, despite having the same coords in both places.

This is another odd issue. We have the server working and I spent about 2 days familiarizing myself with the EDEN editor and building my first trade post. I used m3editor to export the object creation/coords and posted this in the initserver file. An example of it is below.

private _objects = [
    ["Land_PierWooden_02_16m_F",[9760.46,6375.51,0],[[-0.656375,-0.754435,0],[0,0,1]],[false,false]],
    ["Land_PierWooden_02_16m_F",[9750.03,6363.55,0],[[-0.656375,-0.754435,0],[0,0,1]],[false,false]],
    ["Land_PierWooden_02_barrel_F",[9768.5,6384.7,-0.0156841],[[0.663025,0.748597,0],[0,0,1]],[false,false]],
    ["Land_PierWooden_02_ladder_F",[9749.54,6356.69,0],[[0.676799,0.736168,0],[0,0,1]],[false,false]],
    ["Land_PierWooden_02_hut_F",[9744.09,6353.86,0],[[0.671325,0.741163,0],[0,0,1]],[false,false]],
    ["Land_PoleWall_01_6m_F",[9764.01,6381.57,2.40334],[[0.752256,-0.658871,0],[0,0,1]],[false,false]],
    ["Land_PoleWall_01_6m_F",[9760.05,6377.07,2.40334],[[0.752256,-0.658871,0],[0,0,1]],[false,false]]
];
{
    private _object = (_x select 0) createVehicle [0,0,0];
    _object setPosASL (_x select 1);
    _object setVectorDirAndUp (_x select 2);
    _object enableSimulationGlobal ((_x select 3) select 0);
    _object allowDamage ((_x select 3) select 1);
} forEach _objects;

 

This code created my pier and placed all the objects; however, when we launched the server the actual pier was not placed in the correct position as it showed in my editor. It moved the pier about 2m to the side and left the fence where it should be but lowered it by about .2m. Also, a sign I had placed was rotated into a building and my gas pumps were floating in the air and not on the actual platform I had them on.

Any Ideas?

 

Edited by riddler251

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted (edited)

Ok, so I have a bit more specific information. I built my trader using the Arma 3 editor, then used the m3editor file menu option to export the objects. I copied these coords into my initserver.sqf file for the objects. When the .sqf loads on the server, or even if I load it through the m3Editor in the Arma editor, it actually changes the position of the objects, not placing them at the specified coords. Generally this is a change resembling this:

the editor outputs and my .sqf file for the object reads these coords:
["Land_FuelStation_Build_F",[11808.2,11140.3,339.02],[[-0.905967,0.423349,0],[0,0,1]],[false,false]],

However, when u open this up in the game, the object is actually placed at the coords: [11808.4, 11140.3, 0.0236511]

As a result the building when it is generated on the server is a little tweaked from its placed position causing things to not line up and objects generating inside of walls, etc.

Please help, I don't wanna beg but I will if you want me to. ;)

Edited by riddler251

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.