Jump to content

Sarge AI


Dango

Recommended Posts

Not sure why but when I add the updated version the players no longer get the option in the top menu to enter or drive any of their own vehicles. The ai are spawning ok though, I like the mix of friendly and enemy. :)

 

Not sure if these errors are related to the option to enter and to drive are not there

 

Thanks for your work on this

 

Spoiler

21:15:24 Error in expression <UPSMON_GUER_Total = UPSMON_GUER_Total + count (units _npc)>
21:15:24   Error position: <UPSMON_GUER_Total + count (units _npc)>
21:15:24   Error Undefined variable in expression: upsmon_guer_total
21:15:24 "Sarge AI System: Weapons array is [""arifle_MX_F"",""""]"
21:15:24 No speaker given for Adil Rahimi
21:15:25 "Sarge AI System: Weapons array is [""arifle_Mk20_F"",""""]"
21:15:25 No speaker given for Mahmood Kushan
21:15:25 Error in expression <UPSMON_GUER_Total = UPSMON_GUER_Total + count (units _npc)>
21:15:25   Error position: <UPSMON_GUER_Total + count (units _npc)>
21:15:25   Error Undefined variable in expression: upsmon_guer_total
21:15:25 "Sarge AI System: Weapons array is [""arifle_MX_F"",""""]"
21:15:25 No speaker given for Edward Miller
21:15:26 "Sarge AI System: Weapons array is [""arifle_MXC_F"",""""]"
21:15:27 Error in expression <UPSMON_GUER_Total = UPSMON_GUER_Total + count (units _npc)>
21:15:27   Error position: <UPSMON_GUER_Total + count (units _npc)>
21:15:27   Error Undefined variable in expression: upsmon_guer_total
21:15:29 No speaker given for Abdul-Basir Mohammadi
21:15:29 "DEBUG: loaded player B Alpha 1-6:1 with new schema Version 1"
21:15:33 Speaker Male01_F not found in CfgVoiceTypes
21:15:55 "<infiSTAR.de FNC_AH_KICKLOGSPAWN> [""i7yw511b2ti5wv"",[""[TG] Razor"",""76561198142834414"",""ALOG"",[84,101,108,101,112,111,114,116,32,116,111,32,91,49,54,55,53,51,46,53,44,49,51,54,51,52,46,53,44,48,93,40,71,80,83,58,32,49,54,55,49,51,54,41]],""2:3484""]"
21:15:55 "<infiSTAR.de FNC_AH_KICKLOGSPAWN> [TG] Razor(76561198142834414) Token i7yw511b2ti5wv - objByNetID B Alpha 2-6:1 ([TG] Razor) REMOTE"
21:15:55 "<infiSTAR.de>ADMINLOG| 0h 29min | [TG] Razor(76561198142834414) | Teleport to [16753.5,13634.5,0](GPS: 167136)   [16-12-2017 18-08-39 - v258]"
21:15:56 "[EPOCH VGS]: RequestKey _data = [B Alpha 1-6:1 (Jason BOURNE) REMOTE,""efhkgm""]"
21:15:56 "[EPOCH VGS] Client Jason BOURNE requested his/her vgsKey. Result: EPOCH_vgsKey_3220qV29bJwZkY51aUiMsS"

21:15:57 Server: Object 2:3404 not found (message Type_93)
21:15:57 Server: Object 2:3403 not found (message Type_93)
21:16:06 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:06   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:06   Error Undefined variable in expression: sar_heli_type
21:16:06 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:16:06 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:16:06 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:06   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:06   Error Undefined variable in expression: sar_heli_type
21:16:06 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28
21:16:13 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:13   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:13   Error Undefined variable in expression: sar_heli_type
21:16:13 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:16:13 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:16:13 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:13   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:13   Error Undefined variable in expression: sar_heli_type
21:16:13 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28
21:16:42 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:42   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:42   Error Undefined variable in expression: sar_heli_type
21:16:42 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:16:42 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:16:42 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:16:42   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:16:42   Error Undefined variable in expression: sar_heli_type
21:16:42 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28

21:16:53 Client: Remote object 6:0 not found
21:17:00 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:17:00   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:17:00   Error Undefined variable in expression: sar_heli_type
21:17:00 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:17:00 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:17:00 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:17:00   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:17:00   Error Undefined variable in expression: sar_heli_type
21:17:00 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28
21:17:05 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:17:05   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:17:05   Error Undefined variable in expression: sar_heli_type
21:17:05 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:17:05 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:17:05 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:17:05   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:17:05   Error Undefined variable in expression: sar_heli_type
21:17:05 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28
21:23:24 Error in expression <UPSMON_GUER_Total = UPSMON_GUER_Total + count (units _npc)>
21:23:24   Error position: <UPSMON_GUER_Total + count (units _npc)>
21:23:24   Error Undefined variable in expression: upsmon_guer_total


21:23:57 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:23:57   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:23:57   Error Undefined variable in expression: sar_heli_type
21:23:57 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:23:57 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:23:57 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:23:57   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:23:57   Error Undefined variable in expression: sar_heli_type
21:23:57 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28
21:24:02 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:24:02   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:24:02   Error Undefined variable in expression: sar_heli_type
21:24:02 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:24:13 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:24:13   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:24:13   Error Undefined variable in expression: sar_heli_type
21:24:13 File addons\sarge\code\functions\fn_AI_hit.sqf [SAR_fnc_AI_hit], line 26
21:24:13 "Sarge AI System: _ai_xp = 0; _ai_xp_type = Rookie"
21:24:13 Error in expression <alive _aiKiller) && !(_aikiller_type in SAR_heli_type) && !("LandVehicle" countT>
21:24:13   Error position: <SAR_heli_type) && !("LandVehicle" countT>
21:24:13   Error Undefined variable in expression: sar_heli_type
21:24:13 File addons\sarge\code\functions\fn_AI_killed.sqf [SAR_fnc_AI_killed], line 28

 

Link to comment
Share on other sites

The sar_heli_type variable is now fixed. I also removed some files I did not mean to upload. If I had to guess I would say this script was causing something else to fail. Lets see if this fixes it. As for the UPSMON_GUER_Total error, that is one of the known issues. That one shouldn't have any effect.

Link to comment
Share on other sites

Hi Dango,

I updated and still couldnt get into the vehicles so I changed the sides back to the old version and now I can access the vehicles

Would I have messed anything else up doing this, I still get friendly and enemy AI?

 

Thanks for your time

 

Spoiler

    case "epoch": {
    
    
         SAR_AI_friendly_side = WEST;
         SAR_AI_unfriendly_side = RESISTANCE;


        //SAR_AI_friendly_side = INDEPENDENT;
        //SAR_AI_unfriendly_side = WEST;
        
        //WEST setFriend [CIVILIAN, 0];
        //INDEPENDENT setFriend [CIVILIAN, 1];
    };
    default {
        diag_log "Sarge AI System: ERROR! The mod you are loading Sarge AI for is not supported!";
        breakOut "Main";

 

Link to comment
Share on other sites

On 11/29/2017 at 4:03 AM, Sneer said:

running it, so far so good. Getting this error though

23:02:58 Error in expression <tposATL (_units select 0);
_attackpos = _currpos;

If ("deletethis" in _bldpos) >
23:02:58   Error position: <_currpos;

If ("deletethis" in _bldpos) >
23:02:58   Error Undefined variable in expression: _currpos
23:02:58 File mpmissions\__cur_mp.Altis\Scripts\UPSMON\MODULES\FORTIFY\fnc\UPSMON_patrolBuilding.sqf, line 29

 

Hi,

Did this error go once you removed A3EAI?  As I am seeing similar logs in the rpt. 

Thanks

Link to comment
Share on other sites

4 hours ago, Razor1977 said:

Hi Dango,

I updated and still couldnt get into the vehicles so I changed the sides back to the old version and now I can access the vehicles

Would I have messed anything else up doing this, I still get friendly and enemy AI?

 

Thanks for your time

 

  Hide contents

    case "epoch": {
    
    
         SAR_AI_friendly_side = WEST;
         SAR_AI_unfriendly_side = RESISTANCE;


        //SAR_AI_friendly_side = INDEPENDENT;
        //SAR_AI_unfriendly_side = WEST;
        
        //WEST setFriend [CIVILIAN, 0];
        //INDEPENDENT setFriend [CIVILIAN, 1];
    };
    default {
        diag_log "Sarge AI System: ERROR! The mod you are loading Sarge AI for is not supported!";
        breakOut "Main";

 

Doh! I knew something was wrong about those sides lol. That will work fine I believe. If the bandits do not attack on sight then just add back in the setFriends but use the proper faction. I will update the repos with this as well.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • 4 weeks later...

Hello.  Just starting up an epoch server and I am trying to get Sarge to work.  It doesnt seem to be working, and in the server log it has the followin:

23:17:44 Warning Message: Script addons\sarge\init\fn_preInit.sqf not found
23:17:44 Warning Message: Script addons\sarge\init\fn_postInit.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_anim_heli.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_despawn.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_guards.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_heli.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_hit.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_hit_vehicle.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_infantry.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_interact.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_killed.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_refresh.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_spawn.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace_base.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace_vehicle.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_traders.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_vehicle.sqf not found
23:17:45 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.

I did everything in the installation instructions exactly.  Is there any other modifications I need to make to the server files??

Link to comment
Share on other sites

10 hours ago, webbie said:

and have you moved the scripts folder into the mission file and added it in the init?

Scripts folder? It needs to go in the mission file.

As your error is referencing that it can not find the scripts folder, double check the path it is in if you have indeed inserted it.

Link to comment
Share on other sites

On 2/22/2018 at 6:30 AM, Kenobi said:

Hi, players reported, that AI are sometimes spawned 20 meters behind his back. Is possible to change spawning system to prevent AI spawn if player is near?

I am unsure of a minimum distance from players but if you enter a square they shouldn't spawn behind you unless you teleported there or you are moving very fast like in a vehicle. 

Link to comment
Share on other sites

21 hours ago, datathoid said:

Hello.  Just starting up an epoch server and I am trying to get Sarge to work.  It doesnt seem to be working, and in the server log it has the followin:

23:17:44 Warning Message: Script addons\sarge\init\fn_preInit.sqf not found
23:17:44 Warning Message: Script addons\sarge\init\fn_postInit.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_anim_heli.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_despawn.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_guards.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_heli.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_hit.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_hit_vehicle.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_infantry.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_interact.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_killed.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_refresh.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_spawn.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace_base.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_trace_vehicle.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_traders.sqf not found
23:17:44 Warning Message: Script addons\sarge\code\functions\fn_AI_vehicle.sqf not found
23:17:45 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.

I did everything in the installation instructions exactly.  Is there any other modifications I need to make to the server files??

I cant think of what would cause it to not find the files other than them not existing where the server expects them to be. Have you verified the files are not actually missing?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...