H

highhead

Administrator

Last active 5 years ago

  1. 6 years ago
    Mon Aug 21 19:32:00 2017

    Hi!

    I have provided a sample init.sqf for you, with included documentation - In this example a side chat info is given, when an objective is reserved by side west! Open for better readability, but below i pasted whats inside.

    http://s000.tinyupload.com/index.php?file_id=22219349752712892355

    ///////////////////////////////////////////////////////////////////////////////////////////////////
    //Put in init.sqf
    //only use on an ALiVE mission with virtual AI module placed
    waituntil {!isnil "ALiVE_eventLog"};
    
    //Leave alone
    _fnc_custom = {
    
        //Do not touch that
        params ["_logic","_operation","_args"];
    
        //Also do not touch that
        switch (_operation) do {
            case "handleEvent": {
                _event = _args;
                
                _event params ["_id","_data"];
                _id = [_event, "id"] call ALIVE_fnc_hashGet;
                _data = [_event, "data"] call ALIVE_fnc_hashGet;
                
                _data params ["_side","_objective"];
    
    
                ///////////////////////////////////////////////////////////////////////////
                /////
                /////
                /////
                //// This is the part you can put your code in
                /////
                //
                //
                /* Example objective data from _objective call ALiVE_fnc_InspectHash;
                ---------------- Inspecting Hash --------------------
                k [0]: objectiveID v: OPCOM_2390318919_objective_0
                k [1]: center v: [23334.9,19291.6,0]
                k [2]: size v: 50
                k [3]: objectiveType v: MIL
                k [4]: priority v: 50
                k [5]: opcom_state v: idle
                k [6]: clusterID v: CUSTOM_42626
                k [7]: opcomID v: 2390318919
                k [8]: _rev v:
                k [9]: opcom_orders v: none
                k [10]: danger v: -1
                k [11]: sectionAssist v: ["BLU_F-entity_12"]
                k [12]: section v: ["BLU_F-entity_12"]
                k [13]: tacom_state v: reserve
                ---------------- Inspection Complete --------------------
                */
    
                //Get objective id and position
                private _objectiveID = [_objective,"objectiveID","empty"] call ALiVE_fnc_hashGet;
                private _objectivePos = [_objective,"center",[]] call ALiVE_fnc_hashGet;
    
                //If objective is of side east ("GUER" for resistance)
                if (_side == "EAST") then {
                    ["ALiVE - objective %1 reserved at position %2 side %3 - id %4!",_objectiveID,_objectivePos,_side,_id] call ALiVE_fnc_DumpR;
                };
    
                ////
                ///////////////////////////////////////////////////////////////////////////
            };
        };
    };
    
    //Register function
    _listener = [nil,"create"] call ALiVE_fnc_baseClass;
    _listener setVariable ["class",_fnc_custom];
    
    //Will always fire the function above if one of the events below is fired
    //Possible values are: "OPCOM_RESERVE","OPCOM_RECON","OPCOM_CAPTURE","OPCOM_DEFEND","OPCOM_TERRORIZE"
    _listenerID =   [ALiVE_eventLog,"addListener",[_listener, ["OPCOM_RESERVE"]]] call ALIVE_fnc_eventLog;
    
    //
    ///////////////////////////////////////////////////////////////////////////////////////////////////

    enjoy

  2. Tue Jul 18 17:09:36 2017
    H highhead posted in need help.

    beautiful response and truly correct! let the Customer Support handle this!

  3. Tue Jul 18 17:06:53 2017
    H highhead posted in ORBAT: Exporting Help & More.

    fuck win10

    joking! guess its just a different location! anyways the crash dumps wont help, we need the .rpt which is prolly in your users folder! or in arma root if you specifed a certail server profile

  4. Tue Jul 18 17:02:15 2017
    H highhead posted in Trigger to start OPCOM.

    it works and has been done int the Sabotage mission! In this mission a custom objective is added to the enemy OPCOM whixh he then is attacking via trigger! Ill take a look at your specific case though!

  5. Tue Jul 18 16:55:30 2017
    H highhead posted in Plane dropping bomb before takeOFF.

    oh - sry! AI did that by its own? can you try that without ALiVE (place some flying AI and some planes on ground) since im afraid its an A3 issue with laser targets!

  6. Tue Jul 18 16:52:35 2017

    Chernarus :)

  7. Tue Jul 18 16:51:15 2017

    thx - yeah

  8. Tue Jul 18 16:50:25 2017
    H highhead posted in Plane dropping bomb before takeOFF.

    i have seen AI getting crazy on lasermarkers - make sure they are disabled on takeoff or another friendly jet or Chopper will bomb you!

  9. Tue Jul 18 16:07:46 2017

    Hi!

    Thanks for the structured report! We can work with that!

    Please check for the following:

    • Is virtual AI restored (turn on admin/modules/vAIC debug before save and after reload)
    • Is player logistics restored (put down a weapon on ground and see if it gets restored)
    • is player restored (no according to your Message, try disconnecting via "abort"-button not "player exit "and rejoin, we fixed some stuff in there which is not yet live)
    • is markers restored (put down a marker with ctrl+click and save it)

    with these information we can trace it down a lot easier!

    Thanks
    HH

  10. 7 years ago
    Mon Mar 20 16:36:15 2017

    LOL

View more