INCON Scripts for ALiVE - Intel + AI teammate persistence

  1. ‹ Older
  2. 7 years ago

    The playable character needs to be the true side of the undercover unit. So if you are fighting for Blufor, the unit needs to be Blufor.

  3. hmm, yep thats how I had it set up. Had complete vanilla attire from an Altis civi (but as a blufor unit) but the Opfor would engage me at first sight. Does anyone have a bare bones mission using this so I can double check and see what I might be messing up?

  4. Could you post your debug feedback and I can hopefully tell you what is wrong (enable debug in the settings and let me know what it says on screen)? I could make a sample mission but I'm away from my Arma computer for a while.

  5. So 2 of my unit mates are working on missions and having issues with the UC scripts.
    Ony is having IndFor refuse to recognize them as enemies and the other is having OpFor OpFor discover them immediately regardless of what they are wearing as civilian garb.

    I have an older version of the script that is working and running in a Zeus template. But they are both using the newest version of the script you have on GitHub.
    I'll see if I can get them to relay me some screenshots or at least the debug error messages they are receiving.

  6. If you can post an example of their missions that would really help too. I have a working PC nearby for the time being and I'd be fascinated to see where / if they are going wrong. All I've heard so far is issues from people who haven't got it working (and not a single bloody debug report to determine what the issue is). In fact, yours might well be the first hint that anybody other than me has it working fine in any mission whatsoever! Which is pretty weird considering how much I tested it and how reliably it has been working for me so far. I guess this is the issue with not being in a unit as a modder though!

  7. OK, got an error that they are receiving:

    8:439 Error in expression <overUnit,_regEnySide,_asymEnySide] call INCON_fnc_undercoverDetect;

    sleep 2;

    >
    8:439 Error position: <INCON_fnc_undercoverDetect;

    sleep 2;

    >
    8:439 Error Undefined variable in expression: incon_fnc_undercoverdetect
    8:439 File C:\Users\AccuracyThruVolume\Documents\Arma 3\missions\16th_African_WetWork_ep1.pja305\INCON\INC_undercover\undercoverHandler.sqf, line 53
    8:439 "Advanced Towing Loading..."
    8:439 "Advanced Towing Loaded"
    8:439 "Advanced Sling Loading Loading..."
    8:439 "Advanced Sling Loading Loaded"
    8:43:16 Error in expression <ect;

    sleep 2;

    [_undercoverUnit] call INCON_fnc_undercoverArmedTracker;

    sleep>
    8:43:16 Error position: <INCON_fnc_undercoverArmedTracker;

    sleep>
    8:43:16 Error Undefined variable in expression: incon_fnc_undercoverarmedtracker
    8:43:16 File C:\Users\AccuracyThruVolume\Documents\Arma 3\missions\

  8. Thanks! I'll take a look in more detail tomorrow but it looks like the functions aren't being defined correctly. This could happen if they have already defined a cfgFunctions in the description.ext file before adding my script or have incorrectly added the undercover script files. In which case, can you ask them to verify their description.ext files are set up correctly? Or even paste them here and I'll troubleshoot?

    I'm more than happy to give them a hand setting it up if you want to PM me their missions.

  9. Thanks. Going to have one of them zip up their mission and send it to me. I'll send you a DL link in PM.
    It probably has to do with their use of Zenophon and Enigmas scripting, as both of those use a ton of scripts.

    My simple mission using your old code works just fine (pre backpack specification code).

  10. Okay, for anyone reading this now, the issue was an error in the instructions of setting up the mod (my bad) - the latest GitHub version has corrected that. Thanks again @ski2060!

  11. Incon Scripts V0.13

    This release adds a few cool features to the undercover mode:

    • Optional hints reveal when you are acting suspiciously, making it easier to see the magic at play.
    • Vehicles are now handled - get in a civilian vehicle and you will not be spotted instantly even if you aren't wearing incognito equipment.
    • Driving more than 50m offroad can blow your cover (optional).
    • Vehicle checks work on AI teammates too - if they drive off road like lunatics, they will be given the same treatment as the player.

    Download here .

  12. Edited 7 years ago by patpowercat

    How would I set up the group persist standalone (without the undercover script)?

    Can I do this with your airpower script as well?

    So I deleted the other folders in INCON (intel and undercover), as well as deleting them from the cfgFunctions and functionsWhitelist.

    My description.ext is this:

    class CfgFunctions
    {
    	#include "INC_airPower\cfgFunctions.hpp"
    	#include "INCON\cfgFunctions.hpp"
    };
    
    class CfgRemoteExec
    {
       class Functions
       {
           mode = 2;
           jip = 1;
           #include "INC_airPower\functionsWhitelist.hpp"
    	   #include "INCON\functionsWhitelist.hpp"
       };
    };

    And my initPlayerLocal.sqf is this:

    if (player getVariable ["APW_initRadioTrig",false]) then {[player,"createRadTrig"] call APW_fnc_APWMain;};
    
    if (player getVariable ["APW_initAddaction",false]) then {player addaction ["Request air support","INC_airpower\scripts\airpowerSpawn.sqf",[],1,false,true,"","(_this == _target) && !(missionNamespace getVariable ['APW_airAssetRequested',false])"];};

    I do not have initUnits.sqf as it seemed it was only for intel. I have iniDB2 running on server and client, and have ensured save mission time is on.

    When I restart the server, I persist as normal, however my group resets as they were at the beginning of the mission. Is this because they are editor placed units, and I need to use either player logistics or Spyder's recruitment module to make my squad?

  13. Edited 7 years ago by incontinenetia

    If you write the following into initPlayerLocal.sqf you should get group persistence:

    ["loadGroup",_unit] call INCON_fnc_groupPersist;
    ["saveGroup",_unit] call INCON_fnc_groupPersist;

    ["loadGroup",player] call INCON_fnc_groupPersist;
    ["saveGroup",player] call INCON_fnc_groupPersist;

    Just bear in mind that because I can't get ALiVE data functioning for now, it relies on the iniDbi database timestamp matching your ALiVE mission timestamp when you reload alive persistent data. This means if your play session end time and alive mission save time don't tally within a couple of minutes of each other, the group will not persist. Hope that helps!

    Edit: also, won't matter whether it is editor placed units or spawned ones, as long as they aren't playable, they will persist.

  14. No dice. Still doesn't persist my group.

    Here is my test mission setup.

    https://www.dropbox.com/sh/vtvbu5j2qffoh1g/AACutNTjrFl_hGSSJZEyD2sda?dl=0

  15. How long did you play for? Do you have inidbi2 loaded in your mod list on client and server? It doesn't start saving until 4 minutes have passed as otherwise it can cause issues when starting a mission fresh.

  16. Edited 7 years ago by patpowercat

    Still nothing. I have definitely played over 4 minutes in the mission now. is the correct inidbi2 correct?

    I have also tried using the full script package with intel and undercover scripts, in case I broke some dependency. Still doesn't seem to work. I just can't figure it out.

  17. I'll send you a PM!

  18. Edited 7 years ago by incontinenetia

    I'm an idiot. Meant to write that you should put this:

    ["loadGroup",player] call INCON_fnc_groupPersist;
    ["saveGroup",player] call INCON_fnc_groupPersist;

    In your initPlayerLocal.sqf.

    (Instead of this: ["loadGroup",_unit] call INCON_fnc_groupPersist; ["saveGroup",_unit] call INCON_fnc_groupPersist;).

    I haven't done a full play test but I tweaked the code slightly to run in SP for testing purposes and it works fine in your mission. To test if data is being saved, go into the @inidbi2 mod folder in your Arma 3 root, open database, and you should see a file called INC_groupPersDB.ini. In this file should be an entry beginning with your mission name. Let me know if that works (and apologies for giving the wrong instructions).

  19. This worked, thanks a ton! Great work by the way

  20. Thanks, great to hear it's working! I'm going to have another crack at using ALiVE persistent data in the near future which should make it possible to set and forget completely.

  21. Edited 7 years ago by gaZthme

    Hello! This looks awesome!

    But I encounter a little problem when launching the mission in MP from the editor. I get error "script unitInits.sqf missing". But I can find something called initUnits.sqf in the root of the mission folder.

    I have not edited anything else than true ->false or vica verca in the setup files, and I have left out the group persist folder (and set the "persist group" to false).

    I took the easy way and tried to rename the unitInits.sqf to initUnits and got the error the other way around when the mission loads "can't find script initUnits.sqf. Any ideas? I have checked and double checked the downloaded file to find the unitInits but can't find it...

    EDIT: In the initUnits.sqf in the .rar folder I downloaded it says that

    "...Must be defined in description.ext with

    //----------------------INIT EVENTHANDLERS--------------------------
    class Extended_Init_EventHandlers {
    class CAManBase {
    init = "_this call (compile preprocessFileLineNumbers 'unitInits.sqf')";" Just changed to initUnits and renamed the above mentioned to the same and it works fine now.

    Thanks

  22. Newer ›
 

or Sign Up to reply!