Jump to content

FAILIX

Member
  • Content Count

    89
  • Joined

  • Last visited

  • Medals

Posts posted by FAILIX


  1. So the Huron has to be changed on top of the list. That is a special case. The rest will go to each respective paragraph. The Helis and assets in base chimera are in the mission.Sqm AFAIK. They will not change with the extension (except for the huron). As I did this for rhs, also with ch53 as Huron, it worked. I maybe post your extension code here?


  2. I have enabled filepatching on my test server and my client. After that, when I try to host a local LAN game, my game crashes instantly when I click OK to get to the mission selection screen. I get the message "cannot find outlw_magrepack/outlw_magrepack.cpp". I had used that script in the mission while I had filepatching enabled. It must have somehow been added to the init of the local server, if something like that exists. Can someone help me where to find the file that has been altered to change it? I already deactivated all mods and checked the game files via Steam.


  3. We still encounter the issue that some of the militia men that guard the towns, spawn without weapons. But they count towards the occupying force. Yesterday we captured the hotel complex with three human players and no friendly AI. We saw at least 4 militia men who had no weapons. In the end we had to kill one of them to conquer the sector. The others then turned into hostages. We do not use any weapon mods or custom factions. There is also no error message that e.g. a weapon could not be loaded.

    Did anyone else see this happen, too? It's really annoying.


  4. I tried using the HLC (NIARMS) replacements packs well doing the campaign but couldn't load a save because of these packs doing something. Is this going to be fixed because would be great to do single player player missions with these, and not have to worry about doing a full mission restart if I die.

    Is your savegame from before update to 1.58? The recent arma update was announced to corrupt campaign savegame.

  5. Hey eduardcomando... I want to use this mod as well as your NATO mod for zbugs liberation mission. Since the all civil sectors are guarded by csat fia troops (O_G_F), do you plan to do a replacement mod for those as well? Or can you provide a hint what must be done to do this for another faction?

    *edit: just found your fia replacement. Didn't know it is already available. So above is solved *


  6. Isn't it thirdPersonView instead of 3rdPersonView, along with what lala14 said, should work.

    hint str (difficultyOption "thirdPersonView")
    

    Returns 1 for me, means activated.

    Yes, that is true. I've actually tried both. Now having "thirdPersonView", while checking it in game it also returns 1. But the script still doesn't work :(

     

    Here is what the script looks like now:

    if (!isDedicated) then { //preventing start on server
    
    	waitUntil {!isNull (findDisplay 46)}; //making sure player is spawned
    
    	if (difficultyOption "thirdPersonView") then 
    	{
    		while {1} do {
    
    			waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"};
    
    			if  ((vehicle player) == player) then {
    				player switchCamera "INTERNAL";
    			};
    			
    		};
    	};
    
    };
    

  7. Hi Guys,

    I've added a small script to the mission on our dedicated server, that only allows a player to switch to 3rd Person view while in a vehicle.

    While on food it disables 3rdpersonView.

    The changes to difficulty options in 1.58 screwed up the script.

    Here is what is in the script now:

    if (!isDedicated) then { //preventing start on server
    
    	waitUntil {!isNull (findDisplay 46)}; //making sure player is spawned
    //changed from "if (difficultyEnabled "3rdPersonView") then" to adjust for difficulty changes in v1.58	
    	if (difficultyOption "3rdPersonView") then 
    	{
    		while {true} do {
    
    			waitUntil {cameraView == "EXTERNAL" || cameraView == "GROUP"};
    
    			if  ((vehicle player) == player) then {
    				player switchCamera "INTERNAL";
    			};
    			
    		};
    	};
    
    };
    

    As I understood it, I just need to change difficultyEnabled to difficultyOption. But this does nothing right now.

    I've also tried to replace "3rdPersonView" with "thirdPersonView", but that also didn't help.

    Does anyone has an idea how to fix the script?

     


  8. Hi Guys,

    I'm still trying to get this mission running with VCOM_AI on our dedicated server. 

    But some things seem to go wrong. Somehow the enemies have an abnormally bad aim and the rpt is throwing up some weird errors.

    Maybe someone has an idea how to fix it? 

    Here's the link to the VCOM_AI thread where I've posted details and rpt log snippets:

    https://forums.bistudio.com/topic/166374-vcom-ai-v20-ai-overhaul/?p=3011948


  9. Hi again,

    we still have the VCOM_AI script version added to the Liberation mission from zbug (link). When I host the exact same pbo locally (with same vcom ai settings in "userconfig" folder, it works like a charm.

    I assume all the AI that defends towns or attacks our FOBs should be spawned on the server.

    After adding "-filepatching" to the server startup parameters and adding the  VCOM_AI Folder to our Userconfig Folder in "C:\Games\ArmA3\A3Server\userconfig" (there we also have the config for TFAR, which is working), we still have some issues.

    The VCOM_AI is not isntalled on any client. So far we did not add "allowedFilePatching = 2;" to the config_server.cfg. So clients cannot enable file patching. 

     

    But we encounter some issues:

     

    1. AI has more or less no aim...you can stand 10m in front of them and they spray 2 mags at you and hit you maybe once.

    This are our accuracy settings in "AISettingsV2.hpp" in "userconfig" folder: 
     

    _Unit setSkill ["aimingAccuracy",(0.6 + (random 0.1))];
    _Unit setSkill ["aimingShake",(0.6 + (random 0.1))];
    _Unit setSkill ["spotDistance",1];
    _Unit setSkill ["spotTime",1];
    _Unit setSkill ["courage",(0.7 + (random 0.3))];
    _Unit setSkill ["commanding",1.0];
    _Unit setSkill ["aimingSpeed",1];
    _Unit setSkill ["general",1.0];
    _Unit setSkill ["endurance",1.0];
    _Unit setSkill ["reloadSpeed",(0.2 + (random 0.3))];
    

    Also we have some weird rpt errors related to vcom:

    19:01:11 Error in expression <VCOM_HasMine",true,false];
    };
    } forEach _magazinesAmmo;
    
    
    
    >
    19:01:11   Error position: <_magazinesAmmo;
    
    
    
    >
    19:01:11   Error Undefined variable in expression: _magazinesammo
    19:01:11 File mpmissions\__cur_mp.Altis\VCOMAI\Functions\VCOMAI_HasMine.sqf, line 39
    19:01:11 Error in expression < getvariable "VCOM_AssignedEnemy";
    
    if (_TargetPosition isEqualTo [0,0,0]) then
    >
    19:01:11   Error position: <_TargetPosition isEqualTo [0,0,0]) then
    >
    19:01:11   Error Undefined variable in expression: _targetposition
    19:01:11 File mpmissions\__cur_mp.Altis\VCOMAI\Functions\VCOMAI_FocusedAccuracy.sqf, line 9
    

    This is the first part of our "AISettingsV2.hpp":

    VCOMAI_Func = 
    {
    //Variable for finding out which config was loaded.
    VCOM_AIConfig = "Userconfig folder";
    //Turn this on to see certain debug messages
    VCOM_AIDEBUG = 1;
    //Turn on map markers that track AI movement
    VCOM_UseMarkers = false;
    //Turns off VCOMAI for AI units in a players squad
    NOAI_FOR_PLAYERLEADERS = 1;
    //Will AI garrison static weapons nearby?
    VCOM_STATICGARRISON = 1;
    //How far can the AI hear gunshots from?
    VCOM_HEARINGDISTANCE = 400;
    //Should AI be able to call for artillery. 1 = YES 0 = NO
    VCOM_Artillery = 0;
    //Should we let AI use flanking manuevers? false means they can flank
    VCOM_NOPATHING = false;
    //Should AI use smoke grenades? Besides default A3 behavior?
    VCOM_USESMOKE = true;
    //Chance of AI using grenades
    VCOM_GRENADECHANCE = 30;
    //Should the AI lay mines?
    VCOM_MineLaying = true;
    //Chance of AI to lay a mine.
    VCOM_MineLayChance = 40;
    
    //The longer an AI's target stays in 1 location, the more accurate and aware of the target the AI becomes.DEFAULT = [WEST,EAST,CIVILIAN,RESISTANCE];
    VCOM_IncreasingAccuracy = true;
    //VCOM_SideBasedMovement- Remove sides from the array below to force that specific AI side to not execute any advance movement code. (I.E. Moving to reinforce allies, being alerted by distant gunshots and etc). AI with this will still react normally in combat. DEFAULT = [WEST,EAST,CIVILIAN,RESISTANCE];
    VCOM_SideBasedMovement = [EAST, RESISTANCE];
    //VCOM_SideBasedExecution- Remove sides from the array below to remove that specific AI side from executing any of the VCOMAI scripts at all. DEFAULT = [WEST,EAST,CIVILIAN,RESISTANCE];
    VCOM_SideBasedExecution = [EAST,RESISTANCE];
    //Distance AI will respond to call of help from each other
    VCOM_Unit_AIWarnDistance = 600;
    

    Can someone help me to find out where I made the mistake?

     

    @twakkie:

    To make the prisoners respond to orders, I've just removed WEST completely from VCOM_AI SideBasedExecution to make sure it works. 

    I will try to see if your tweak works as well if we get vcom_ai running at all.


  10. As far as I know:

    1) Wherever VCOM is running, filepatching must be enabled.

    2) Same place as where it is in your local pc, root of arma

    3) Wherever AI needs to be spawned, there vcom must be in the userconfig and filepatching enabled i.e. Gamemasters etc.

    4) "this setVariable ["NOAI",1,false];" is the incorrect syntax and gives rpt error spam of "Integer detected, bool expected" and will not work. Change it to "this setVariable ["NOAI",true,false];" and it should work.

    Thanks a lot for clarifying this twakkie.

    So, since I suppose that ai is only spawned by the server (as long as no hc is c connected), only the server needs the userconfig and file patching enabled. This would be good since the players do not have to setup a lot of stuff. That's also why I preferred the script version over Mod version.


  11. Hi, a few quick questions;

    I've added the script version to the Liberation mission from Zbug, that we run on our dedicated server.

    1. Do I have to enable file patching on server/client/both?

    2. Where do I need to put the userconfig folder on the server?

    3. Do all clients also need vcomai in userconfig folder?

    4. *quote from my question in liberation thread*: Hi,

    I have just tried to add the script version of vcom ai to your mission.

    One thing happened: The Captured enemy troops could not be commanded after capturing them.

    In the vcom ai description it reads: this setVariable ["NOAI",1,false];

    - This will turn off the VCOM AI on the given unit

    So i suppose I should add this line to the prisonner_ai.sqf file in server\ai folder of your mission.

    Do you think it should work like this (see last line):

    if ( ( random 100 ) > GRLIB_surrender_chance ) exitWith {};params [ "_unit" ];if ( (_unit isKindOf "Man") && ( alive _unit ) && (side group _unit == EAST) ) then {	if ( vehicle _unit != _unit ) then { deleteVehicle _unit };	sleep (random 5);	if ( alive _unit ) then {		removeAllWeapons _unit;		removeHeadgear _unit;		removeBackpack _unit;		removeVest _unit;		_unit unassignItem "NVGoggles_OPFOR";		_unit removeItem "NVGoggles_OPFOR";		_unit unassignItem "NVGoggles_INDEP";		_unit removeItem "NVGoggles_INDEP";		_unit setUnitPos "UP";		sleep 1;		_unit disableAI "ANIM";		_unit disableAI "MOVE";		_unit playmove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon" ;		sleep 2;		_unit setCaptive true;		waitUntil { sleep 1;			!alive _unit || side group _unit == WEST					};		if ( alive _unit ) then {			_unit enableAI "ANIM";			_unit enableAI "MOVE";			sleep 1;			[ [ _unit ], "remote_call_prisonner", _unit ] call bis_fnc_mp;			_unit setVariable ["NOAI",1,false];		};	};};

  12. Hi, 

    I have just tried to add the script version of vcom ai to your mission.

    One thing happened: The Captured enemy troops could not be commanded after capturing them.

    In the vcom ai description it reads: this setVariable ["NOAI",1,false]; - This will turn off the VCOM AI on the given unit

     

    So i suppose I should add this line to the prisonner_ai.sqf file in server\ai folder of your mission.

     

    Do you think it should work like this (see last line):

     if ( ( random 100 ) > GRLIB_surrender_chance ) exitWith {};
    
    params [ "_unit" ];
    
    if ( (_unit isKindOf "Man") && ( alive _unit ) && (side group _unit == EAST) ) then {
    
    	if ( vehicle _unit != _unit ) then { deleteVehicle _unit };
    
    	sleep (random 5);
    
    	if ( alive _unit ) then {
    
    		removeAllWeapons _unit;
    		removeHeadgear _unit;
    		removeBackpack _unit;
    		removeVest _unit;
    		_unit unassignItem "NVGoggles_OPFOR";
    		_unit removeItem "NVGoggles_OPFOR";
    		_unit unassignItem "NVGoggles_INDEP";
    		_unit removeItem "NVGoggles_INDEP";
    		_unit setUnitPos "UP";
    		sleep 1;
    		_unit disableAI "ANIM";
    		_unit disableAI "MOVE";
    		_unit playmove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon" ;
    		sleep 2;
    		_unit setCaptive true;
    
    		waitUntil { sleep 1;
    			!alive _unit || side group _unit == WEST
    			
    		};
    
    		if ( alive _unit ) then {
    			_unit enableAI "ANIM";
    			_unit enableAI "MOVE";
    			sleep 1;
    			[ [ _unit ], "remote_call_prisonner", _unit ] call bis_fnc_mp;
    			_unit setVariable ["NOAI",1,false];
    		};
    	};
    };
    

  13. I think liberation should work with asr ai. I've just tested it yesterday with vcom ai directly via script that I added to the modified pbo and it definitely worked. Got flanked and rushed while longer in a house. So if vcom works, I suppose asr ai should as well. Did you try it via script or addon?

×