Does anyone have a way to keep Excelsior Bridge from rotating on restarts?

DangerRuss

OpenDayZ Rockstar!
Ive tried Excelsior Bridge in my root missions/init.sqf method, and in my root server/ server_functions.sqf and it seems fine for a couple days but then inevitably starts rotating after server restarts and becomes unusable. Does anyone else have this issue, if so did you correct it, and if so how? Thanks
 
I could try that method but its the only one that gives me trouble and I almost don't care enough haha. Maybe I will. I think I read somewhere that it happens on vilayer servers for some reason, I don't know if that's true or not. Guess I'll give it a shot at some point. It usually fine for the first few days after I put it on the server and then a few days later it starts turning after the restarts. It seems to start doing it infrequently but it begins to happen more and more often.
 
i tried this posted by AlienX and it seems to work for me the bridge don't rotate or sink here it is
Code:
// Excelsior Bridge
// The land_nav_pier_m_2 is the double fenced bridge floor. These can be changed to land_nav_pier_m_1 and spun 180 if you wanted only 1 fence.

// Installation
// Make sure to make a folder inside the mission file called "buildings" and save this file in there as "excbridge.sqf"
// Then add the following line as the VERY LAST line in in the "init.sqf" file.
// [] execVM "buildings\excbridge.sqf";

// Props to Rossymond for pointing out the new install method.

// Excelsior
// Server: Death DealerZ - DayzChernarus

if (isServer) then {

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13225.278, 3431.5159, -6.0489159], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13225.278, 3431.5159, -6.0489159];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13247.008, 3398.5906, -6.1535072], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13247.008, 3398.5906, -6.1535072];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_1", [13203.401, 3464.7751, -6.2994447], [], 0, "CAN_COLLIDE"];
_bldObj setDir 236.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13203.401, 3464.7751, -6.2994447];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13181.671, 3497.7451, -6.1785541], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setPos [13181.671, 3497.7451, -6.1785541];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13159.978, 3530.6299, -6.3031154], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setPos [13159.978, 3530.6299, -6.3031154];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13138.261, 3563.5496, -5.9914126], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setPos [13138.261, 3563.5496, -5.9914126];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13116.587, 3596.4583, -6.1611514], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setPos [13116.587, 3596.4583, -6.1611514];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13094.851, 3629.364, -6.0637994], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setPos [13094.851, 3629.364, -6.0637994];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_1", [13073.158, 3662.2742, -6.1899328], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13073.158, 3662.2742, -6.1899328];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13051.535, 3695.0833, -6.376471], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13051.535, 3695.0833, -6.376471];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13029.813, 3728.052, -6.1521502], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13029.813, 3728.052, -6.1521502];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

// Control Tower near land (non-lootable) (blinking light). Zombies and loot will not spawn over water.
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_Mil_ControlTower_EP1", [13067.721, 3647.5923, 4.2818656], [], 0, "CAN_COLLIDE"];
_bldObj setDir -303.12695;
_bldObj setPos [13067.721, 3647.5923, 4.2818656];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, 3.8];
};

// Cement block under Control Tower near coast
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_c", [13061.675, 3654.853, 0.13833603], [], 0, "CAN_COLLIDE"];
_bldObj setDir -33.287552;
_bldObj setPos [13061.675, 3654.853, 0.13833603];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

// Grocery on land (lootable)
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_A_GeneralStore_01", [13062.828, 3825.6414, 0.34161228], [], 0, "CAN_COLLIDE"];
_bldObj setDir -32.551853;
_bldObj setPos [13062.828, 3825.6414, 0.34161228];
};

_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_m_2", [13260.079, 3378.8081, -3.0727394], [], 0, "CAN_COLLIDE"];
_bldObj setDir 56.571701;
_bldObj setVehicleLock "LOCKED";
_bldObj setPos [13260.079, 3378.8081, -3.0727394];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

// Industrial Hangar on land
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_Hangar_2", [13013.877, 3793.1804, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
_bldObj setDir -33.153507;
_bldObj setPos [13013.877, 3793.1804, 3.8146973e-006];
};

// Control Tower near Island (non-lootable) (blinking light at night). Zombies and loot will not spawn over water.
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_Mil_ControlTower_EP1", [13209.424, 3478.5696, 2.103996], [], 0, "CAN_COLLIDE"];
_bldObj setDir -484.14117;
_bldObj setPos [13209.424, 3478.5696, 2.103996];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, 3.8];
};

// Cement block under Control Tower near Island
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["land_nav_pier_c", [13214.373, 3472.0823, -3.8479133], [], 0, "CAN_COLLIDE"];
_bldObj setDir -213.288;
_bldObj setPos [13214.373, 3472.0823, -3.8479133];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, -2.5];
};

// Spinning Radar on coast
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["TK_GUE_WarfareBAntiAirRadar_Base_EP1", [13293.171, 3955.2397, 0.016692447], [], 0, "CAN_COLLIDE"];
_bldObj setDir -323.84015;
_bldObj setPos [13293.171, 3955.2397, 0.016692447];
};

// Pallet of boards on bridge (mid way protection)
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_Ind_BoardsPack1", [13158.683, 3537.4517, 3.5], [], 0, "CAN_COLLIDE"];
_bldObj setDir -35.139294;
_bldObj setPos [13158.683, 3537.4517, 3.5];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, 3.5];
};

// Pallet of boards on bridge (mid way protection)
_bldObj = objNull;
if (true) then
{
_bldObj = createVehicle ["Land_Ind_BoardsPack1", [13111.459, 3599.3118, 3.5], [], 0, "CAN_COLLIDE"];
_bldObj setDir -215.18845;
_bldObj setPos [13111.459, 3599.3118, 3.5];
_bldObj setPosASL [getposASL _bldObj select 0, getposASL _bldObj select 1, 3.5];
};

};

was called server side with [] execVM "\z\addons\dayz_server\map\excbridge.sqf";
i hope it helps you out.
 
Last edited:
I have this in my mission.sqm and it has never rotated. This is just a simple bridge. No stupid AC towers.
Code:
    class Vehicles
    {
        items=12;
        class Item0
        {
            side="EMPTY";
            id=0;
            position[]={13225.278, -6.0489159, 3431.5159};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13225.278, 3431.5159, -3.1];";
        };
        class Item1
        {
            side="EMPTY";
            id=1;
            position[]={13247.008, -6.1535072, 3398.5906};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13247.008, 3398.5906, -3.1];";
        };
        class Item2
        {
            side="EMPTY";
            id=2;
            position[]={13203.401, -6.2994447, 3464.7751};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13203.401, 3464.7751, -3.1];";
        };
        class Item3
        {
            side="EMPTY";
            id=3;
            position[]={13181.671, -6.1785541, 3497.7451};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13181.671, 3497.7451, -3.1];";
        };
        class Item4
        {
            side="EMPTY";
            id=4;
            position[]={13159.978, -6.3031154, 3530.6299};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13159.978, 3530.6299, -3.1];";
        };
        class Item5
        {
            side="EMPTY";
            id=5;
            position[]={13138.261, -5.9914126, 3563.5496};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13138.261, 3563.5496, -3.1];";
        };
        class Item6
        {
            side="EMPTY";
            id=6;
            position[]={13116.587, -6.1611514, 3596.4583};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13116.587, 3596.4583, -3.1];";
        };
        class Item7
        {
            side="EMPTY";
            id=7;
            position[]={13094.851, -6.0637994, 3629.364};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13094.851, 3629.364, -3.1];";
        };
        class Item8
        {
            side="EMPTY";
            id=8;
            position[]={13073.158, -6.1899328, 3662.2742};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13073.158, 3662.2742, -3.1];";
        };
        class Item9
        {
            side="EMPTY";
            id=9;
            position[]={13051.535, -6.376471, 3695.0833};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13051.535, 3695.0833, -3.1];";
        };
        class Item10
        {
            side="EMPTY";
            id=10;
            position[]={13029.813, -6.1521502, 3728.052};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13029.813, 3728.052, -3.1];";
        };
        class Item11
        {
            side="EMPTY";
            id=11;
            position[]={13260.079, -3.0727394, 3378.8081};
            vehicle="land_nav_pier_m_2";
            azimut=56.571701;
            lock="LOCKED";
            init="this setPosASL [getposASL this select 0, getposASL this select 1, -2.5]; this setpos [13260.079, 3378.8081, -3.0727394];";
        };
    };
 
mission.sqm is only place where it doesn't rotate.

You mean the 'mission.sqf'?

I run the ExcelsiorBridge.sqf from my dayz_server.pbo and initialize it through server_functions.sqf and have never had an issue with it.
 
You mean the 'mission.sqf'?

I run the ExcelsiorBridge.sqf from my dayz_server.pbo and initialize it through server_functions.sqf and have never had an issue with it.
no he means there mission.sqm which is in the root of your missions folder. There are 3 ways off the top of my head to add buildings to the map. 1.server_functions.sqf 2. init.sqf 3. mission.sqm

Ive tried all but the mission.sqm cause its a pain in the ass and the bridge eventually rotates. I think it has something to do with my server host.
 
Back
Top