[Simple Tutorial] Dogs on Taviana

Discussion in 'Tutorials' started by marvel, Jun 16, 2013.

  1. Vilemouse

    Vilemouse Well-Known Member

    Joined:
    Jan 15, 2013
    Messages:
    137
    Likes Received:
    6
    Give me abit and ill put together my 100% working dogs and upload them
     
  2. GaryG

    GaryG Well-Known Member

    Joined:
    Feb 28, 2013
    Messages:
    256
    Likes Received:
    3
    Thank you!
     
  3. Dusty Nuttles

    Dusty Nuttles Well-Known Member

    Joined:
    May 5, 2013
    Messages:
    305
    Likes Received:
    21
    You ain't kidding...
     
  4. Timmy_kirton

    Timmy_kirton Well-Known Member

    Joined:
    Apr 3, 2013
    Messages:
    151
    Likes Received:
    8
    Dusty Hijacking threads again.
     
  5. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    Okay so i tried to install this mod on dayzcc 1.7.7.1 chernarus from dayzpriv (without base build)

    i have a working mission.pbo with a few mods working without any hickups. then i copied that and added dogs to it.
    I have read all posts in this topic and followed the editing so it should work on 1.7.7.1 (edit plrInit.sqf)
    i have gone over the code alot and i can't seem to find the issue. I'm sure that i have placed the spawn location in the right spot since i didn't have the "class Vehicle" i created it myself as a sub class to "class Mission". I'm getting "Cannot Load Mission" after the client download it. Been looking at the log and compared it to the working log (right after they both booted up and i tried to login)

    Here is the important part of mission.sqf
    Code:
    version=11;
    class Mission
    {
        addOns[]=
        {
            "chernarus",
            "ca_modules_animals",
            "dayz_code",
            "dayz_weapons",
            "dayz_equip",
            "dayz_vehicles",
            "cacharacters_pmc",
            "ca_modules_functions"       
        };
        addOnsAuto[]=
        {
            "dayz_weapons",
            "ca_modules_functions",
            "chernarus"
        };
        randomSeed=11171215;
        class Intel
        {
            briefingName="DayZ Chernarus";
            briefingDescription="DayZ";
            startWeather=0.067362607;
            forecastWeather=0.52341133;
            year=2008;
            month=10;
            day=1;
            hour=12;
        };
        class Groups
        {
            items=2;
            class Item0
            {
                side="WEST";
                class Vehicles
                {
                    items=108;
                    class Item0
                    {
                        position[]={-18709.713,379.10086,25923.943};
                        azimut=-17.0839;
                        id=11;
                        side="WEST";
                        vehicle="Survivor1_DZ";
                        player="PLAY CDG";
                        skill=0.60000002;
                        init="this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
                    };
     
    ... (alot of items)               
     
                                    class Item99
                    {
                        position[]={-18725.248,379.55328,25889.797};
                        azimut=-17.0839;
                        id=95;
                        side="WEST";
                        vehicle="Survivor1_DZ";
                        player="PLAY CDG";
                        skill=0.60000002;
                        init="this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
                    };
                };
            };
            class Item1
            {
                side="LOGIC";
                class Vehicles
                {
                    items=1;
                    class Item0
                    {
                        position[]={708.96582,35.858719,3533.1272};
                        id=50;
                        side="LOGIC";
                        vehicle="FunctionsManager";
                        leader=1;
                        lock="UNLOCKED";
                        skill=0.60000002;
                    };
                };
            };
        };
        class Vehicles
        {
            items=8;
            class Item0
            {
                position[]={6141.9155,300.98511,7764.6313};
                //placement=70;
                id=1;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog1";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item1
            {
                position[]={1766.7173,5.8767557,2211.48};
                //placement=70;
                id=2;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog2";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item2
            {
                position[]={3627.8162,6.9299998,2480.4895};
                //placement=70;
                id=3;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog3";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item3
            {
                position[]={4536.9912,5.9927816,2394.5864};
                //placement=70;
                id=4;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog4";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item4
            {
                position[]={6862.9141,5.9699998,3119.5625};
                //placement=70;
                id=5;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog5";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item5
            {
                position[]={10432.236,6.0003505,2398.645};
                //placement=70;
                id=6;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog6";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item6
            {
                position[]={13416.39,5.6741199,6254.0874};
                //placement=70;
                id=7;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog7";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
            class Item7
            {
                position[]={11956.598,53.990517,9178.7852};
                //placement=70;
                id=8;
                side="EMPTY";
                vehicle="Land_psi_bouda";
                text="dog8";
                init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
            };
        };
        class Markers
        {
            items=7;
            class Item0
            {
                position[]={7839.6055,381.33774,8414.7324};
                name="center";
                type="Empty";
            };
            class Item1
            {
                position[]={-18697.58,379.53012,25815.256};
                name="respawn_west";
                type="Empty";
            };
            class Item2
            {
                position[]={4932.3345,0.39950246,1989.1094};
                name="spawn0";
                type="Empty";
            };
            class Item3
            {
                position[]={2236.0391,0.63119155,1923.3735};
                name="spawn1";
                type="Empty";
            };
            class Item4
            {
                position[]={8738.1328,0.45720705,2122.1082};
                name="spawn2";
                type="Empty";
            };
            class Item5
            {
                position[]={10909.267,0.57597214,2422.3096};
                name="spawn3";
                type="Empty";
            };
            class Item6
            {
                position[]={13510.764,0.44504455,5249.3027};
                name="spawn4";
                type="Empty";
            };
        };
    };

    The only difference is the following (from the dog mission that dosen't work):
    Code:
    20:42:41 Warning Message: Cannot load mission
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Type  is not VehicleType
    20:42:42 Side !!!
    20:42:42 Side 1852795251
    Code:
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 Vehicle type  does not exist
    20:48:21 NetServer::SendMsg: cannot find channel #1264824066, users.card=0
    20:48:21 NetServer: users.get failed when sending to 1264824066
    20:48:21 Message not sent - error 0, message ID = ffffffff, to 1264824066 ([NRR] GeekGarage)
     
    ... (this goes on forever)
    
    20:48:23 NetServer::SendMsg: cannot find channel #1264824066, users.card=0
    20:48:23 NetServer: users.get failed when sending to 1264824066
    20:48:23 Message not sent - error 0, message ID = ffffffff, to 1264824066 ([NRR] GeekGarage)
     
    20:59:04 Warning Message: Cannot load mission
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Type  is not VehicleType
    20:59:04 Side !!!
    20:59:04 Side 1852795251
     
    20:59:07 Server error: Player without identity [NRR] GeekGarage (id 99103930)
     
    ...(this goes on forever)
     
    20:59:07 Server error: Player without identity [NRR] GeekGarage (id 99103930)
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
    20:59:16 Vehicle type  does not exist
     
    21:02:19 Client: Remote object 2:13 not found
    21:02:19 Client: Remote object 2:14 not found
     
  6. Timmy_kirton

    Timmy_kirton Well-Known Member

    Joined:
    Apr 3, 2013
    Messages:
    151
    Likes Received:
    8
    you changed the Side West items to 108 put it back to 100 should work then

    items=2;
    class Item0
    {
    side="WEST";
    class Vehicles
    {
    items=108; <-------- HERE
    class Item0
    {
    position[]={-18709.713,379.10086,25923.943};
    azimut=-17.0839;
    id=11;
    side="WEST";
    vehicle="Survivor1_DZ";
    player="PLAY CDG";
    skill=0.60000002;
    init="this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
    };
     
  7. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    OMG, going to try that out, thx mate, forgot to edit that back to a 100 after i misplaced the spots the first time. starring myself blind for over a day.
     
  8. Timmy_kirton

    Timmy_kirton Well-Known Member

    Joined:
    Apr 3, 2013
    Messages:
    151
    Likes Received:
    8
    let us know if this solves it =)
     
  9. AngryBoddah

    AngryBoddah New Member

    Joined:
    Sep 3, 2013
    Messages:
    5
    Likes Received:
    0
    Im having an issue where the dogs just stop doing anything after a min or so and wont take commands at first i thought they were getting stuck on objects but it seems that isnt the case :(,anyone else having this issue or know of a work around for it ?
     
  10. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    okay so i can load now with the dog mission file YAY!! :D, i'm using the cords from this post
    http://opendayz.net/threads/simple-tutorial-dogs-on-taviana.11278/page-2#post-62184

    But i have no idea where that is on chernarus. The reason i use those is, when i try to follow the tut in the first post i'm not getting the cords i need.

    What i'm doing is:
    open up arma 2 oa
    press alt + e
    choosing chernarus
    adding center -> group -> unit (else i can't save the mission)
    pressing F6 an double click where i want a doghouse
    in the window that pop up i only edit name to "dog1"
    save as user mission and when i open up the missin file it looks like this:
    Code:
    activateAddons [
    ];
     
    activateAddons [];
    initAmbientLife;
     
    _this = createMarker ["dog1", [7127.3789, 7761.4233, 0]];
    _this setMarkerType "Flag";
    _this setMarkerBrush "Solid";
    _marker_0 = _this;
     
    _this = createCenter west;
    _center_0 = _this;
     
    _group_0 = createGroup _center_0;
     
    _unit_0 = objNull;
    if (true) then
    {
      _this = _group_0 createUnit ["USMC_Soldier_AA", [7151.314, 7748.0273, 0], [], 0, "CAN_COLLIDE"];
      _unit_0 = _this;
      _this setUnitAbility 0.60000002;
      if (true) then {_group_0 selectLeader _this;};
      if (true) then {selectPlayer _this;};
    };
     
    processInitCommands;
    runInitScript;
    finishMissionInit;
    As you can see the cords isn't right and i don't know how to fix that. i think it's becaus the markers don't have direction

    and if you put down a dog house in the map editor and see the coords from that mission file they look like this:
    7151.314, 7748.0273, 3275.15621e005
     
  11. AngryBoddah

    AngryBoddah New Member

    Joined:
    Sep 3, 2013
    Messages:
    5
    Likes Received:
    0
    thry this theres 6 on there with one at myshinko and one at the town below nwaf (forgot the name sorry) as for the others i made them random but its a good way to test if its working here it is just be sure to alter to your own needs :


    class Markers
    {
    items=6;
    class Item18
    {
    position[]={5395.8818,330.89996,8583.6729};
    //placement=100;
    id=19;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_1";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    class Item19
    {
    position[]={2041.626,257.29398,7334.0405};
    //placement=100;
    id=20;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_2";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    class Item20
    {
    position[]={5893.6255,143.01645,4735.4058};
    //placement=100;
    id=21;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_3";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    class Item21
    {
    position[]={10352.979,128.76962,9843.7637};
    //placement=100;
    id=22;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_4";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    class Item22
    {
    position[]={11241.159,255.48581,5483.4614};
    //placement=100;
    id=23;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_5";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    class Item23
    {
    position[]={6889.7637,391.93942,11508.84};
    //placement=100;
    id=24;
    side="EMPTY";
    vehicle="Land_psi_bouda";
    text="dog_6";
    init="_nul = [this]execVM ""addin\dogInit.sqf""; _dogSound = createSoundSource [""Sound_LittleDog"", getPosATL this, [], 0];";
    };
    };

    i know this works im just having issues with the dog not doing anything after a min or so ..
     
  12. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    I found a dog house with the settings i have at solnichy. should you be able to see dogs out side the dog house that barks or should it only be a doghouse that barks?
     
  13. AngryBoddah

    AngryBoddah New Member

    Joined:
    Sep 3, 2013
    Messages:
    5
    Likes Received:
    0
    so far on my test server the dog only spawns when i walk up to the dog house (almost touching it) and then it appears
     
  14. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    good then it works for me, running with the dog, and see if i can replicate your issue :)
     
  15. AngryBoddah

    AngryBoddah New Member

    Joined:
    Sep 3, 2013
    Messages:
    5
    Likes Received:
    0
    yea it seems to just stop following me after a while although im now wondering if its because im running around in a small town with lots of clutter
     
  16. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    i can't replicate the issue but from what i can see if you run more than 40 meters away from you dog, you can't give it commands and then it have trouble finding you. so if your dog get stucked in debri and then get free when you are more than 40 meters away it's having issue with finding you again
     
  17. AngryBoddah

    AngryBoddah New Member

    Joined:
    Sep 3, 2013
    Messages:
    5
    Likes Received:
    0
    ahh ok ill test some more thanks for that though
     
  18. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    any one know how to get correct Xpos, Ypos and Rotation?
    I constantly get contradicting info from google. What is the position info order?
    Xpos, Ypos, Rotation (this looks like the one i get)
    or
    Xpos, Rotation, Ypos

    if i place map marker directly on 2D map my coords look like this
    1894.5867, 2218.4902, 0

    if i place them in 3D it looks like this
    3614.0464, 2428.0286, -5.7220459e-006

    But it's nothing like the cord's i see in tut and others use
    they look like this
    10352.979, 128.76962, 9843.7637
    This looks like Xpos, height, Ypos
     
  19. Timmy_kirton

    Timmy_kirton Well-Known Member

    Joined:
    Apr 3, 2013
    Messages:
    151
    Likes Received:
    8
    This is because you are using the 3d editor you need to use 2d in single player look at tut again and read it
     
  20. geekgarage

    geekgarage New Member

    Joined:
    Aug 25, 2013
    Messages:
    21
    Likes Received:
    1
    Thank you for trying, but your answer doesn't give me any answer on what i'm asking.

    I have already tried 2D if you read the post

    quote: "...if i place map marker directly on 2D map my coords look like this
    1894.5867, 2218.4902, 0
    ..."

    see the number "0" every one else have 3 numbers. i do also, but the 3'rd is a zero


    i did follow the tut so no need to read it again, i'm asking because i followed the tut and didn't get the result that i hoped for. I tried to follow it multiple times without luck, that's why i'm asking here.
    Maybe you should read my post again and read what it is that i'm asking for.
    - A better TUT that precisely show how to do it
    - And what is the correct order of the "position"
     

Share This Page