Group Structures

  1. ‹ Older
  2. 7 years ago

    // UNSUNG_E

    UNSUNG_E_mappings = [] call ALIVE_fnc_hashCreate;

    UNSUNG_E_factionCustomGroups = [] call ALIVE_fnc_hashCreate;

    [UNSUNG_E_mappings, "Side", "EAST"] call ALIVE_fnc_hashSet;
    [UNSUNG_E_mappings, "GroupSideName", "EAST"] call ALIVE_fnc_hashSet;
    [UNSUNG_E_mappings, "FactionName", "UNSUNG_E"] call ALIVE_fnc_hashSet;
    [UNSUNG_E_mappings, "GroupFactionName", "UNSUNG_E"] call ALIVE_fnc_hashSet;

    UNSUNG_E_typeMappings = [] call ALIVE_fnc_hashCreate;

    [UNSUNG_E_mappings, "GroupFactionTypes", UNSUNG_E_typeMappings] call ALIVE_fnc_hashSet;

    [UNSUNG_E_factionCustomGroups, "Infantry", ["vc_eightmansquad","vc_fourmancell","vc_sixmancell","vc_mainweaponsquadone","vc_mainriflesquadthree","vc_mainriflesquadtwo","vc_mainriflesquadone","vc_mainweaponsquadtwo"]] call ALIVE_fnc_hashSet;
    [UNSUNG_E_factionCustomGroups, "Motorized", ["UNSNVALightPatrolElement1","UNSNVALightPatrolElement2","UNSNVALightPatrolElement5"]] call ALIVE_fnc_hashSet;
    [UNSUNG_E_factionCustomGroups, "Mechanized", ["UNSNVALightPatrolElement3","UNSNVALightPatrolElement8"]] call ALIVE_fnc_hashSet;
    [UNSUNG_E_factionCustomGroups, "Armored", ["UNSNVALightPatrolElement4"]] call ALIVE_fnc_hashSet;
    [UNSUNG_E_factionCustomGroups, "Air", ["uns_nvaf_pilot5"]] call ALIVE_fnc_hashSet;
    [UNSUNG_E_factionCustomGroups, "SpecOps", ["vc_recriflesquadone","vc_recriflesquadtwo","vc_recsappersquad"]] call ALIVE_fnc_hashSet;

    [UNSUNG_E_mappings, "Groups", UNSUNG_E_factionCustomGroups] call ALIVE_fnc_hashSet;

    [ALIVE_factionCustomMappings, "UNSUNG_E", UNSUNG_E_mappings] call ALIVE_fnc_hashSet;

    [ALIVE_factionDefaultSupports, "UNSUNG_E", ["uns_dshk_armoured_VC","uns_dshk_high_VC","uns_dshk_twin_VC","uns_dshk_wheeled_VC","uns_dshk_bunker_closed_VC","uns_dshk_bunker_open_VC","uns_pk_tower_VC","uns_m1941_82mm_mortarVC","uns_mg42_low_VC","uns_pk_high_VC","uns_pk_low_VC","uns_pk_low_VC","uns_pk_bunker_open_VC","uns_pk_bunker_closed_VC","uns_pk_bunker_low_VC","uns_SPG9_73mm_VC","uns_spiderhole_VC","uns_spiderhole_leanto_VC"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultSupplies, "UNSUNG_E", ["uns_AmmoBoxVC","uns_EQPT_VC","uns_East_Sapper_crate","uns_HiddenAmmoBox","uns_HiddenAmmoBox_small1","uns_HiddenAmmoBox_small2","uns_HiddenAmmoBox_small3"]] call ALIVE_fnc_hashSet;
    [ALIVE_factionDefaultTransport, "UNSUNG_E", ["uns_nvatruck","uns_nvatruck_camo","uns_nvatruck_open"]] call ALIVE_fnc_hashSet;

    // ---------------------------------------------------------------------------------------------------------------------

  3. Edited 7 years ago by marceldev89

    @Opendome So how would I go about getting that to be used in a mission basis?

    Basically, create a new mission in Arma 3 and save it. Place the staticData.sqf in the root of the mission folder and create a new init.sqf file. Paste the code below in the init.sqf file and preview the mission.

    if (isServer) then {
        waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
        call compile (preprocessFileLineNumbers "staticData.sqf");
    };

    Then reload the mission in Arma 3 and hit preview.

  4. Ok thanks! I just tried it and I got the "No groups" error message :(

  5. Also in the config viewer they are listed under UNSUNG_E but it the notes it says VC are UNSUNG_EV, tried changing both UNSUNG_E to UNSUNG_EV and got the same error. They do spawn through the CQB populator though but I suspect that doesn't require defined groups

  6. Yeah, CQB doesn't use the CfgGroups entries.

    I haven't had a look at the CfgGroups in Unsung bravo yet but in alpha they were pretty "faulty".

  7. Yea same thing as in the arma 2 version, I ended up just making a reskin of russian insurgents with UNSUNG units to get it to work with MSO. I thought by doing the group mapping this way though that it should work? Using the config viewer those are the group names and they do match up with the groups themselves.

  8. For instance this is the groups in VC locals

    class CfgGroups
    {
    class East
    {
    name="$STR_EAST";
    class UNSUNG_E
    {
    name="UNSUNG";
    class vclocalInfantry
    {
    name="VC Local Guerilla Forces";
    class vc_fourmancell
    {
    name="VC (Local) 4-Man Cell";
    faction="UNSUNG_E";
    rarityGroup=0.69999999;
    class Unit0
    {
    side=0;
    vehicle="uns_men_VC_local_off";
    rank="CORPORAL";
    position[]={0,5,0};
    };
    class Unit1
    {
    side=0;
    vehicle="uns_men_VC_local_RF3";
    rank="PRIVATE";
    position[]={3,0,0};
    };
    class Unit2
    {
    side=0;
    vehicle="uns_men_VC_local_RF4";
    rank="PRIVATE";
    position[]={5,0,0};
    };
    class Unit3
    {
    side=0;
    vehicle="uns_men_VC_local_AS3";
    rank="CORPORAL";
    position[]={7,0,0};
    };
    };
    class vc_sixmancell
    {
    name="VC (Local) 6-Man Cell";
    faction="UNSUNG_E";
    rarityGroup=0.69999999;
    class Unit0
    {
    side=0;
    vehicle="uns_men_VC_local_nco";
    rank="SERGEANT";
    position[]={0,5,0};
    };
    class Unit1
    {
    side=0;
    vehicle="uns_men_VC_local_SAP";
    rank="CORPORAL";
    position[]={3,0,0};
    };
    class Unit2
    {
    side=0;
    vehicle="uns_men_VC_local_RF1";
    rank="PRIVATE";
    position[]={5,0,0};
    };
    class Unit3
    {
    side=0;
    vehicle="uns_men_VC_local_MRK";
    rank="CORPORAL";
    position[]={7,0,0};
    };
    class Unit4
    {
    side=0;
    vehicle="uns_men_VC_local_AS2";
    rank="CORPORAL";
    position[]={9,0,0};
    };
    class Unit5
    {
    side=0;
    vehicle="uns_men_VC_local_LMG";
    rank="PRIVATE";
    position[]={11,0,0};
    };
    };
    class vc_eightmansquad
    {
    name="VC (Local) 8-man Squad";
    faction="UNSUNG_E";
    rarityGroup=0.69999999;
    class Unit0
    {
    side=0;
    vehicle="uns_men_VC_local_off";
    rank="SERGEANT";
    position[]={0,5,0};
    };
    class Unit1
    {
    side=0;
    vehicle="uns_men_VC_local_RF4";
    rank="PRIVATE";
    position[]={3,0,0};
    };
    class Unit2
    {
    side=0;
    vehicle="uns_men_VC_local_MED";
    rank="PRIVATE";
    position[]={5,0,0};
    };
    class Unit3
    {
    side=0;
    vehicle="uns_men_VC_local_LMG";
    rank="PRIVATE";
    position[]={7,0,0};
    };
    class Unit4
    {
    side=0;
    vehicle="uns_men_VC_local_TRI";
    rank="PRIVATE";
    position[]={9,0,0};
    };
    class Unit5
    {
    side=0;
    vehicle="uns_men_VC_local_MTS";
    rank="PRIVATE";
    position[]={11,0,0};
    };
    class Unit6
    {
    side=0;
    vehicle="uns_men_VC_local_SAP";
    rank="PRIVATE";
    position[]={13,0,0};
    };
    class Unit7
    {
    side=0;
    vehicle="uns_men_VC_local_MRK";
    rank="PRIVATE";
    position[]={15,0,0};
    };
    };
    };
    };
    };
    };

  9. Edited 7 years ago by marceldev89

    If you upload the mission with the faction mapping somewhere, I can take a quick look and see if I spot something. :)

  10. Thatd be great thanks! Here it is http://www.filedropper.com/testdakrong

  11. Uhm just loaded the mission and it works? :D

  12. Edited 7 years ago by marceldev89

    -image-

  13. lol whaaaaaaaat, I keep getting that no groups error. Did you change anything or pack it into a pbo?

  14. Edited 7 years ago by marceldev89

    Did nothing special. Downloaded the mission, copied it to the missions folder, loaded it in the editor, pressed preview and that's it.

    Are you perhaps still running one of the modified PBOs from earlier in this thread?

  15. What mods do you have running? Which ALiVE do you have? I tried doing the same thing and I keep getting that same error lol

  16. Edited 7 years ago by marceldev89

    Oh I am running Arma 3 with the -filePatching flag (in Arma 3 Launcher -> Parameters -> Advanced -> Advanced -> Enable File Patching). Not sure if that's related but worth a try I guess.

    As for the mods I'm running (versions are as reported by PwS):
    CBA: v2.4.0.160530
    ALiVE: v1.0.6.1605301
    UNSUNG: v3.1

  17. Hmm I tried enabling filepatching but I still get that no group error. Which ALiVE are you using? Did you get it from github or the newest armaholic link? God damn Arma makes me close to having an aneurysm sometimes.

  18. @Opendome Hmm I tried enabling filepatching but I still get that no group error. Which ALiVE are you using? Did you get it from github or the newest armaholic link? God damn Arma makes me close to having an aneurysm sometimes.

    See previous post, updated it.

  19. ahhhh ok thanks! New problem, when I use the same mission file in the editor it works jsut like you, when I go to multiplayer, host, then use the same mission from there then the groups dont work. So this makes me think it won't be multiplayer compatbile. ANy idea on how to get it to work in MP? Would getting someone to add it to the framework be the solution?

    Thanks!

  20. also since unsung has ships, do I add them to a faction with

    [UNSUNG_E_factionCustomGroups, "Sea", []] call ALIVE_fnc_hashSet;

  21. @Opendome when I go to multiplayer, host, then use the same mission from there then the groups dont work.

    Yep can confirm... It's Arma being Arma.. :D

    Put the below code in the init field of the ALiVE (Required) module and remove it from the init.sqf (reason: https://community.bistudio.com/wiki/Initialization_Order ).

    0 = [] spawn {
        if (isServer) then {
            waitUntil {!isNil "ALiVE_STATIC_DATA_LOADED"};
            call compile (preprocessFileLineNumbers "staticData.sqf");
        };
    };

    @Opendome do I add them to a faction with

    [UNSUNG_E_factionCustomGroups, "Sea", []] call ALIVE_fnc_hashSet;

    Instead of "Sea" it should be "Naval".

  22. Newer ›
 

or Sign Up to reply!