Excelsior Bridge v1.2 - Chernarus

Discussion in 'Map Additions' started by Excelsior, Jun 1, 2013.

  1. n3rdnl

    n3rdnl New Member

    Joined:
    Aug 3, 2013
    Messages:
    4
    Likes Received:
    0
    @Danny Boy yeah I have done evertyhing but still nothing seen to work
    Anyone els that use dayzcc got the sam eproblem and maybe know how to fix this ?!
     
  2. New Calpis

    New Calpis Well-Known Member

    Joined:
    Aug 1, 2013
    Messages:
    157
    Likes Received:
    8
    Works awesome!!!
     
  3. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6
    I modded the bridge and added some ladders, so you can access the bridge from the water.

    Some more screens here http://steamcommunity.com/id/fully/screenshots/?appid=33930


    [​IMG]


    [​IMG]


    Here is the code. Sorry we used it in the mission file on our Wasteland Server =)

    Code:
    /*
    Fully's Skalisty Island Bridge and Resort =)
    */
     
     
    class Vehicles
        {
            items=32;
     
            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[]={13204.383, -6.2994447, 3463.1067};
                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 [13204.383, 3463.1067, -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[]={13095.668, -6.0637994, 3628.1086};
                vehicle="land_nav_pier_m_2";
                azimut=56.571701;
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13095.668, 3628.1086, -3.1];";
            };
            class Item8
            {
                side="EMPTY";
                id=8;
                position[]={13072.242, -6.1899328, 3663.6763};
                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 [13072.242, 3663.6763, -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, 0]; this setpos [13260.079, 3378.8081, -3.1];";
            };
            class Item12
            {
                side="EMPTY";
                id=12;
                position[]={13187.395, 10.240207, 3465.2446};
                vehicle="Land_Mil_ControlTower_EP1";
                azimut=58.91835;
                lock="LOCKED";
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 3.6]; this setpos [13187.395, 3465.2446, 2.6];";
            };
            class Item13
            {
                side="EMPTY";
                id=13;
                position[]={13091.64, 3.5703375, 3659.1794};
                vehicle="Land_Mil_ControlTower_EP1";
                azimut=-124.88541;
                lock="LOCKED";
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 3.6]; this setpos [13091.64, 3659.1794, 2.6];";
            };
            class Item14
            {
                side="EMPTY";
                id=14;
                position[]={13196.056, 0.0039503872, 3482.4629};
                vehicle="Land_ladder_half";
                azimut=235.49071;
                init="this setpos [13196.056, 3482.4629, 0.0039503872];";
            };
            class Item15
            {
                side="EMPTY";
                id=15;
                position[]={13080.641, 0.071379468, 3643.5676};
                vehicle="Land_ladder_half";
                azimut=56.085899;
                init="this setpos [13080.641, 3643.5676, 0.071379468];";
            };
            class Item16
            {
                side="EMPTY";
                id=16;
                position[]={13184.587, -2.7749407, 3467.9561};
                vehicle="land_nav_pier_c2";
                azimut=56.841351;
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13184.587, 3467.9561, -3.1];";
            };
            class Item17
            {
                side="EMPTY";
                id=17;
                position[]={13093.887, -2.8723419, 3655.3301};
                vehicle="land_nav_pier_c2";
                azimut=56.115559;
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13093.887, 3655.3301, -3.1];";
            };
            class Item18
            {
                side="EMPTY";
                id=18;
                position[]={13188.284, -2.9236996, 3476.3335};
                vehicle="land_nav_pier_c2_end";
                azimut=147.32655;
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13188.284, 3476.3335, -3.099];";
            };
            class Item19
            {
                side="EMPTY";
                id=19;
                position[]={13091.201, -2.7878892, 3646.1941};
                vehicle="land_nav_pier_c2_end";
                azimut=-33.070965;
                init="this setPosASL [getposASL this select 0, getposASL this select 1, 0]; this setpos [13091.201, 3646.1941, -3.099];";
            };
            
     
    Mr.Weegley likes this.
  4. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6
    Code for the buildings as reached max char.

    Code:
    class Item20
            {
                position[]={13062.828,0.34161228,3825.6414};
                azimut=-32.551899;
                id=20;
                side="EMPTY";
                vehicle="Land_Hangar_2";
                init="this setPos [getPos this select 0,getPos this select 1,+0.1]; this setVectorUp [0,0,1];";
            };
            class Item21
            {
                position[]={13016.004,0.34161228,3794.7749};
                azimut=-33.153507;
                id=21;
                side="EMPTY";
                vehicle="Land_A_GeneralStore_01";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item22
            {
                position[]={12974.602,18.058041,3768.7766};
                azimut=-31.780602;
                id=22;
                side="EMPTY";
                vehicle="Land_Panelak2";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item23
            {
                position[]={12957.086,4.9728718,3758.3596};
                azimut=-31.780602;
                id=23;
                side="EMPTY";
                vehicle="Land_Panelak2";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item24
            {
                position[]={12998.558,16.50111,3737.1746};
                azimut=-31.780602;
                id=24;
                side="EMPTY";
                vehicle="Land_Panelak2";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item25
            {
                position[]={13033.547,16.910454,3758.7688};
                azimut=-31.780602;
                id=25;
                side="EMPTY";
                vehicle="Land_Panelak2";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item26
            {
                position[]={13054.127,11.41189,3771.0652};
                azimut=-31.7806;
                id=26;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item27
            {
                position[]={13071.55,10.93996,3781.8215};
                azimut=-31.7806;
                id=27;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item28
            {
                position[]={13088.295,3.221014,3791.9504};
                azimut=-31.7806;
                id=28;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item29
            {
                position[]={12979.228,11.302477,3724.948};
                azimut=-31.7806;
                id=29;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item30
            {
                position[]={12961.565,3.8287158,3714.1167};
                azimut=-31.7806;
                id=30;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
            class Item31
            {
                position[]={12943.924,4.0242872,3703.5093};
                azimut=-31.7806;
                id=31;
                side="EMPTY";
                vehicle="Land_Panelak";
                init="this setPos [getPos this select 0,getPos this select 1,0]; this setVectorUp [0,0,1];";
            };
        };
     
    Mr.Weegley likes this.
  5. Dr No

    Dr No Member

    Joined:
    May 23, 2013
    Messages:
    50
    Likes Received:
    5
    Nice install method...
     
  6. Innuce

    Innuce Well-Known Member

    Joined:
    Jun 23, 2013
    Messages:
    238
    Likes Received:
    6
    Tried the version from post #63-64, didn't work for me at all on my DayZ.st server.

    So I tried the earlier one from post #37 (AlienX's), and that worked first try! Only downside is, I noticed zombies in the water as I ran on foot across the bridge. Did they spawn under it? I suppose if the ladders were there (like post #63-64), they'd have something to climb up to you with. I like the flashing lights on the control towers, nice touch.
    Also added the Skalisty Castle. Works great!
     
  7. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6
    There are 3 things you will need to change =)
    To match stuff in your mission file.

    Total items value
    Class item#
    Id#
     
  8. Innuce

    Innuce Well-Known Member

    Joined:
    Jun 23, 2013
    Messages:
    238
    Likes Received:
    6
    Found a strange bug today.
    The last piece of bridge (on the island end) broke off and slid down under the bridge. Basically makes the bridge unusable.
    Any thoughts why this might be, and is there a fix?
     
  9. New Calpis

    New Calpis Well-Known Member

    Joined:
    Aug 1, 2013
    Messages:
    157
    Likes Received:
    8
    just restart bugs happen all the time
     
  10. Innuce

    Innuce Well-Known Member

    Joined:
    Jun 23, 2013
    Messages:
    238
    Likes Received:
    6
    Restart doesn't count as a fix... :p
    But yeah, that works. Sometimes it does it, sometimes it doesn't. Could it be a clipping issue?
     
  11. New Calpis

    New Calpis Well-Known Member

    Joined:
    Aug 1, 2013
    Messages:
    157
    Likes Received:
    8
  12. Innuce

    Innuce Well-Known Member

    Joined:
    Jun 23, 2013
    Messages:
    238
    Likes Received:
    6
    Hmm, wonder if there's a way to ramp that last piece upward to match up to the hill better?
     
  13. pinhead

    pinhead New Member

    Joined:
    Apr 24, 2013
    Messages:
    2
    Likes Received:
    0
    HI love this bridge you done, awesome job can this also be used to make a small bridge to connect to small island behind second Lighthouse between Elctro and Cherno ?
     
  14. Mr.Weegley

    Mr.Weegley Member

    Joined:
    Dec 24, 2013
    Messages:
    60
    Likes Received:
    8
    Have installed version from ##63-64, just inserted before
    Code:
    class Intro
    
    in mission.sqm, and looks like all works fine. Didn't check other buildings for interference :)
    Thanks!
    Just thinking about moving this stuff to server.pbo
     
  15. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6
    I would do it Mr Weeglley.

    But I would optimize first.
    Use notepad++
    You can replace the vehicle_xxx with a simple command using notepad++

    Make sure you have regular expression selected in Notepad++.
    search for: _vehicle_(\d+)= objNull;

    and replace with: _bldObj = objNull;

    • replace _vehicle_xxx with _bldObj
    • delete line _vehicle_xxx = _this;
    • replace _this with _bldObj
    Would look like this;

    Code:
    _bldObj = objNull;
    if(true)then
    {
    _bldObj = createVehicle ["land_nav_pier_m_2",[13247.008, -6.1535072, 3398.5906],[],0,"CAN_COLLIDE"];
    _bldObj setDir 56.571701;
    _bldObj setPos [13247.008, -6.1535072, 3398.5906];
    _bldobj setVectorUp [0, 0, 1];
    };
    
    _bldObj = objNull;
    ....etc
    

    add to your server_functions.sqf

    call compile preProcessFileLineNumbers
    "\z\addons\dayz_server\MAP ADDON FOLDER\bridge.sqf";

    Just to cap what you need to edit/- how
     
    Last edited: Feb 5, 2014
  16. EscapeGoat

    EscapeGoat New Member

    Joined:
    Jan 25, 2014
    Messages:
    9
    Likes Received:
    0
    Is there anyway to stop this thing from rotating 90 degrees on some server restarts?
     
  17. Sandbird

    Sandbird Valued Member!

    Joined:
    Feb 1, 2013
    Messages:
    182
    Likes Received:
    39

    Fully you seem to have a handle on these things. Do you know why this damn thing is not working ?
    I am making an object (all is done in my dayz_server.pbo files), like this:

    Code:
    _vehicle_18 = objNull;
    if (true) then
    {
      _this = createVehicle ["land_nav_pier_c_270", [5974.354,3693.311,0], [], 0, "CAN_COLLIDE"];
      _vehicle_18 = _this;
      _this setVehicleVarName "cor3";
      cor3 = _this;
      _this setVehicleInit "this setposASL [getPosASL this select 0,getPosASL this select 1,(getPosASL this select 2)+40]; this setVectorUp [0, 0, 1];";
      _this setPos [5974.354,3693.311,0];
    };
    
    then further down based on the cor3 i want to spawn an object like this:

    Code:
    _vehicle_66 = objNull;
    if (true) then
    {
      _this = createVehicle ["land_nav_pier_c", [5905.8784,3678.33,0], [], 0, "CAN_COLLIDE"];
      _vehicle_31 = _this;
      _this setVehicleVarName "ceil1_1";
      ceil1_1 = _this;
      _this setVehicleInit "this setposASL [getPosASL this select 0,getPosASL this select 1,(getPosASL cor3 select 2)+30]; this setVectorDirAndUp [[0, 1, 0],[-1, 0, 0]];";
      _this setPos [5905.8784,3678.33,0];
    };
    
    I've tried your way making them blobs but its not working..
    Whatever i do i get this error :

    Code:
    Error in expression <this setposASL [getPosASL this select 0,getPo>
      Error position: <setposASL [getPosASL this select 0,getPo>
      Error Type Any, expected Number
    Even changing this values to the varnames of the current object..I've tried everything....This works fine in the editor...but when i move the sqf to the server....bam....
    Actually although i do get the error for all objects...the 1st one spawns just fine....the 2nd one is that doesnt spawn at all. (or it does but i cant see it cause its underground).
    I am using the rotation on it cause its like a helipad roof from the side...big and nice.

    How can i reference by name other objects ? why is this working in the editor and not in MP...I am using setVehicleVarName correctly (i think).
    -Thanks
     
  18. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6
    Ok - Here is a file that I just tested on my Epoch Server.
    [​IMG]

    http://pastebin.com/9FVS2CGU

    I called this building.sqf
    and put this in my mapaddons folder inside my server pbo
    Then open system\system_monitor.sqf and call the file from there
    Code:
    call complie preProcessFileLineNumbers "\z\addons\dayz_server\mapaddons\buildings.sqf";
    
     
    Last edited: Feb 22, 2014
  19. Fully

    Fully Member

    Joined:
    Feb 4, 2013
    Messages:
    33
    Likes Received:
    6

    Link me to the file I can test it for you.
     
  20. Sandbird

    Sandbird Valued Member!

    Joined:
    Feb 1, 2013
    Messages:
    182
    Likes Received:
    39
    Thanks,
    Here is what i am trying to do :

    http://pastebin.com/0txRQfkx

    You'll notice that all the secondary buildings refer to the 1st building....but although it works...i get errors on the client side.
     

Share This Page