Jump to content

blckeagls' AI Mission - Version 2.0.2 Release (1/2/2015)


blckeagls

Recommended Posts

Thanks for your description.

How can I change to Offroader?

I found a Script, that defines spawning a vehicle, but how can I activate this instead of static weapons?

On line 76 of AIConfig.sqf you can try replacing

 

["B_HMG_01_high_F","B_GMG_01_high_F"];

 

with ["I_G_Offroad_01_armed_F];

 

The spawnEmplaced.sqf code will not put  a driver in as written. Players may have difficulty using the HMG on the pickup, which is why I took these out a while ago. I would be interested to know how this works for you.

Link to comment
Share on other sites

Only for information:

On Altis coord 107105 often starts a mission (on our server).

Everytime on this coords, the box bugged into the ground.

I can only see the box by the construction marker on the map.

 

I solved this for me by blocking the coordinate with "blck_locationBlackList".

Link to comment
Share on other sites

Ghostrider

This may be the wrong place to ask but...

I'm trying to manipulate your vehicle code to put a couple of vehicles at static mission points I've written like this

http://pastebin.com/3Hv10Gx4

But I am receiving this

http://pastebin.com/QcEeMgwn

Seems like that line is what adds the vehicle to the vehicle limit so it does not despawn, otherwise when I walk up to it it disappears.

Any pointers would be very much appreciated.

Link to comment
Share on other sites

Only for information:

On Altis coord 107105 often starts a mission (on our server).

Everytime on this coords, the box bugged into the ground.

I can only see the box by the construction marker on the map.

 

I solved this for me by blocking the coordinate with "blck_locationBlackList".

Thanks for the info. I will look into spawning the box above ground and letting it fall. I knew it was bugged in some locations but did not know why.

Link to comment
Share on other sites

I'm getting this error from the fillboxes.sqf only thing i've changed is the aiconfig to include mas weapons in the lootboxes would that make this conflicting?

2:00:06 Error in expression <for "_i" from 1 to _wepCnt do {

_item = _a1 call BIS_fnc_selectRandom;

_crate ad>

 2:00:06   Error position: <_a1 call BIS_fnc_selectRandom;

_crate ad>

 2:00:06   Error Undefined variable in expression: _a1

 2:00:06 File q\addons\custom_server\AIMission\fillBoxes.sqf, line 24

 2:00:06 Error in expression <for "_i" from 1 to _wepCnt do {

_item = _a1 call BIS_fnc_selectRandom;

_crate ad>

 2:00:06   Error position: <_a1 call BIS_fnc_selectRandom;

_crate ad>

 2:00:06   Error Undefined variable in expression: _a1

 2:00:06 File q\addons\custom_server\AIMission\fillBoxes.sqf, line 24

 2:00:06 Error in expression <for "_i" from 1 to _wepCnt do {

_item = _a1 call BIS_fnc_selectRandom;

Most likely one of your changes caused an error.  If you like I can take a look at what you did.

Link to comment
Share on other sites

Ghostrider

This may be the wrong place to ask but...

I'm trying to manipulate your vehicle code to put a couple of vehicles at static mission points I've written like this

http://pastebin.com/3Hv10Gx4

But I am receiving this

http://pastebin.com/QcEeMgwn

Seems like that line is what adds the vehicle to the vehicle limit so it does not despawn, otherwise when I walk up to it it disappears.

Any pointers would be very much appreciated.

 

are you using the spawnVehicle.sqf that blckeagls wrote ? that depends on some other scripts that I removed at some point. That original script actually worked pretty well except that the AI are not included in the list of units to be cleaned up after mission completion. I have been mostly trying to keep up with the updates teh last few weeks and have not done much on this mission system. I do hope to resolve a few of the bugs you all have pointed out and have some improvements planned for the future as well.

Link to comment
Share on other sites

Most likely one of your changes caused an error.  If you like I can take a look at what you did.

Sorry with the issues I've been having on bornholm I switched to chernarus and everything runs better there. Haven't tried your script again yet, but like I said, it was still doing it with a fresh install from the github, the missions and everything works, but that error still happens on some of the lootcrates.  It basically never spawns and when you kill everything and run up to where it should be (near the stactic guns) nothing is there, and the mission never ends.

https://www.dropbox.com/s/72nd9jktfjw6cna/AIconfigs.sqf?dl=0

Link to comment
Share on other sites

Sorry with the issues I've been having on bornholm I switched to chernarus and everything runs better there. Haven't tried your script again yet, but like I said, it was still doing it with a fresh install from the github, the missions and everything works, but that error still happens on some of the lootcrates.  It basically never spawns and when you kill everything and run up to where it should be (near the stactic guns) nothing is there, and the mission never ends.

https://www.dropbox.com/s/72nd9jktfjw6cna/AIconfigs.sqf?dl=0

 

Could you send me your .RPT file please ? If crates do not spawn there is probably a script error someplace.

Thanks.

Link to comment
Share on other sites

Hey , Thanks a lot for this addon , great addition to my server.

 

But i am having this issue that its creating each mission twice on the map for example red is created twice , and only one marker on the map appears the one without a marker has the smoke and AI etc. Not really sure whats going on. If anyone could please assist me with this issue , i will be very grateful.

17:58:02 "[blckeagls] loading version 4-27-2015 build Build 3.0 ...... >>"
17:58:03 "[blckeagls] loading version 4-27-2015 build Build 3.0 ...... >>"
17:58:03 "[blckeagls] Configurations Loaded"
17:58:03 "A3EAI Extended Debug: Initialized static spawn at Sofia ([25680.5,21365.1,0]). GroupArray: [], PatrolDist: 250. unitLevel: 2. LocationArray 150 positions, MaxUnits [2,2], SpawnChance 0.5."
17:58:03 "[blckeagls] Configurations Loaded"

It seems that its launching it twice ?

 

And Also i added a off road armed , and it explodes when a player leaves the car ( exits ) 

 

blck_useStatic = true;
blck_staticWeapons = ["I_G_Offroad_01_armed_F"];  // [0.50 cal, grenade launcher]
Link to comment
Share on other sites

Could you explain to me how this works because im confused. If you go to the bottom of the weapon list there is the zafir with the tracer mag but it is not listed in the magazine section so therefore im assuming it will not spawn because it is not in the magazine section if that is the case why do you have magazine ID next to weapon ID.

 

If i am wrong in what i have assumed above and the ammo does spawn that is next to the weapon list shouldn't the other variation of ammo for that weapon be added so for instance

zafir has the 150Rnd_762x51_Box_Tracer and the 150Rnd_762x51_Box. As you can see i am confused on this and would like a simple explanation if possible lol

[// Weapons
// loaded by a distinct subroutine that looks for the weapon name and magazine type
["MultiGun","EnergyPackLg"],
["arifle_Katiba_F","30Rnd_65x39_caseless_green"],
["arifle_Katiba_GL_F","30Rnd_65x39_caseless_green"],
["arifle_Mk20_F","30Rnd_556x45_Stanag"],
["arifle_Mk20_plain_F","30Rnd_556x45_Stanag"],
["arifle_Mk20C_F","30Rnd_556x45_Stanag"],
["arifle_Mk20_GL_F","30Rnd_556x45_Stanag"],
["arifle_Mk20_GL_plain_F","30Rnd_556x45_Stanag"],
["arifle_MX_F","30Rnd_65x39_caseless_mag"],
["arifle_MX_GL_F","30Rnd_65x39_caseless_mag"],
["arifle_MX_SW_Black_Hamr_pointer_F","100Rnd_65x39_caseless_mag_Tracer"],
["arifle_MXC_F","30Rnd_65x39_caseless_mag"],
["arifle_MXM_F","30Rnd_65x39_caseless_mag"],
["arifle_SDAR_F","20Rnd_556x45_UW_mag"],
["arifle_TRG20_F","30Rnd_556x45_Stanag"],
["m16_EPOCH","30Rnd_556x45_Stanag"],
["m16Red_EPOCH","30Rnd_556x45_Stanag"],
["M14_EPOCH","20Rnd_762x51_Mag"],
["M14Grn_EPOCH","20Rnd_762x51_Mag"],
["m4a3_EPOCH","30Rnd_556x45_Stanag"],
["SMG_02_F", "30Rnd_9x21_Mag"],
["SMG_01_F", "30Rnd_45ACP_Mag_SMG_01"],
["Hgun_PDW2000_F", "30Rnd_9x21_Mag"],
["M14_EPOCH", "20Rnd_762x51_Mag"],
["M14Grn_EPOCH", "20Rnd_762x51_Mag"],
["arifle_MXM_F", "30Rnd_65x39_caseless_mag_Tracer"],
["arifle_MXM_Black_F", "30Rnd_65x39_caseless_mag_Tracer"],
["m107_EPOCH", "5Rnd_127x108_Mag"],
["m107Tan_EPOCH", "5Rnd_127x108_Mag"],
["srifle_DMR_01_F","10Rnd_762x51_Mag"],
["srifle_LRR_F","7Rnd_408_Mag"],
["srifle_EBR_F","20Rnd_762x51_Mag"],
["srifle_GM6_F","5Rnd_127x108_APDS_Mag"],
["m249_EPOCH", "200Rnd_556x45_M249"],
["m249Tan_EPOCH", "200Rnd_556x45_M249"],
["LMG_Mk200_F", "200Rnd_65x39_cased_Box_Tracer"],
["Arifle_MX_SW_F", "100Rnd_65x39_caseless_mag_Tracer"],
["Arifle_MX_SW_Black_F", "100Rnd_65x39_caseless_mag_Tracer"],
["LMG_Zafir_F", "150Rnd_762x51_Box_Tracer"]

 

Keep up the great work loving this system though best ive used yet.

FYI, the Zafir ammo classname has changed to: 

150Rnd_762x54_Box

150Rnd_762x54_Box_Tracer

 

You'll need to go into the files and change every instance to the name ammo type classname (unless/until the mod creators update the classnames in their mods)

 

Reference:

Link to comment
Share on other sites

FYI, the Zafir ammo classname has changed to: 

150Rnd_762x54_Box

150Rnd_762x54_Box_Tracer

 

You'll need to go into the files and change every instance to the name ammo type classname (unless/until the mod creators update the classnames in their mods)

 

Reference:

 

Thanks for pointing this out. I have made the change and incorporated it for the next update.

Link to comment
Share on other sites

 

Hey , Thanks a lot for this addon , great addition to my server.

 

But i am having this issue that its creating each mission twice on the map for example red is created twice , and only one marker on the map appears the one without a marker has the smoke and AI etc. Not really sure whats going on. If anyone could please assist me with this issue , i will be very grateful.

17:58:02 "[blckeagls] loading version 4-27-2015 build Build 3.0 ...... >>"
17:58:03 "[blckeagls] loading version 4-27-2015 build Build 3.0 ...... >>"
17:58:03 "[blckeagls] Configurations Loaded"
17:58:03 "A3EAI Extended Debug: Initialized static spawn at Sofia ([25680.5,21365.1,0]). GroupArray: [], PatrolDist: 250. unitLevel: 2. LocationArray 150 positions, MaxUnits [2,2], SpawnChance 0.5."
17:58:03 "[blckeagls] Configurations Loaded"

It seems that its launching it twice ?

 

And Also i added a off road armed , and it explodes when a player leaves the car ( exits ) 

blck_useStatic = true;
blck_staticWeapons = ["I_G_Offroad_01_armed_F"];  // [0.50 cal, grenade launcher]

 

I will look into the possibility that it is loading twice.

 

I took the Offroads out of the script a while back because of these sorts of issues. Face has a nice AI vehicle patrol in A3AI  so it can be done with proper coding. I just never put the time in to sort out how. You might want to look at how he has set this up. Sorry that I can't help you more with the Offroads.

Link to comment
Share on other sites

Update to Build 3.1.

 

Fixed: The correct Zafir ammo is loaded into crates.

Fixed: AI spawned with static weapons were not deleted when the mission was cleaned up.

Changed: a new method for spawning crates is used. This hopefully will reduce the number of times that crates are glitched, meaning spawned underground.

 

Known issues: On altis a mission often spawns at the same location as a helicrash when both systems are run together. The mission crate may be hidden. AI will not spawn. The mission can not be completed. The fix is to blacklist  the following that spawn location by adding the following to the list of black listed locations.

 

[[10846,10672,12.8],300]

 

The smoke is not cleared after a mission ends (working on this)

The missions do still sometimes spawn in a way that the crate is not visible and/or no AI are spawned.

AI do not use RPGs reliably.

 

Download link:

 

https://github.com/Ghostrider-DbD-/blckeagls-mission-system-v-2.0.2-updated

Link to comment
Share on other sites

Seen a typo unless you was supposed to do this for the marksmen DLC ammo

Yours:

["10Rnd_338_Mag",1,4],
["10Rnd_338_Mag",1,4],
["10Rnd_127x54_Mag" ,1,4],
["10Rnd_127x54_Mag",1,4],
["10Rnd_93x64_DMR_05_Mag" ,1,4],
["10Rnd_93x64_DMR_05_Mag" ,1,4]
 
What it should be:
["20Rnd_762x51_Mag",3,6],
["10Rnd_338_Mag",3,6],
["10Rnd_127x54_Mag",3,6], 
["150Rnd_93x64_Mag",3,6],
["10Rnd_93x64_DMR_05_Mag",3,6],
["130Rnd_338_Mag",3,6]
 
Sorry just realised you have randomised the list my bad lol
Link to comment
Share on other sites

AI are not spawning on the latest update for me i am getting this error in RPT

 

21:55:23 Error in expression <c_selectRandom;
 
 
 
_weapon = _whichweap select 0;
 
 
 
_ammo = _whichweap select 1>
21:55:23   Error position: <select 0;
 
 
 
_ammo = _whichweap select 1>
21:55:23   Error Generic error in expression
21:55:23 File q\addons\custom_server\AIMission\spawnGroup.sqf, line 68
Link to comment
Share on other sites

 

AI are not spawning on the latest update for me i am getting this error in RPT

 

21:55:23 Error in expression <c_selectRandom;
 
 
 
_weapon = _whichweap select 0;
 
 
 
_ammo = _whichweap select 1>
21:55:23   Error position: <select 0;
 
 
 
_ammo = _whichweap select 1>
21:55:23   Error Generic error in expression
21:55:23 File q\addons\custom_server\AIMission\spawnGroup.sqf, line 68

 

I may well have missed something but this did run fine on a test server for a while. By chance did you edit any tables in AIConfig.sqf ?

Thanks,

Ghost

Link to comment
Share on other sites

It has been running fine on our servers so I wonder if you have a typo in your changes.  I suggest you go back to the default files and run them first to see if you still get the error.

 

I had duplicated a few of the entries to increase the chance that those types of loot spawn as some of our players keep asking for more of that ammo.

 

Cheers,

Ghost

Link to comment
Share on other sites

Ok i have put default files in and changed nothing this time except for mission spawn time and this is what is coming up in the RPT

 

"[blckeagls] Starting BLUE mission SM1"
17:28:15 "[blckeagls] Starting RED mission SM1"
17:28:15 "spawnCrate.sqf Crate Created at coords [11760.2,12729], returning object"
17:28:15 Error in expression <c_selectRandom;
 
 
 
_weapon = _whichweap select 0;
 
 
 
_ammo = _whichweap select 1>
17:28:15   Error position: <select 0;
 
 
 
_ammo = _whichweap select 1>
17:28:15   Error Generic error in expression
17:28:15 File q\addons\custom_server\AIMission\spawnGroup.sqf, line 68
 
To add i open and re pack with pbo manager
Link to comment
Share on other sites

I just uploaded your update to my test server without changing anything and now 1 AI is spawning at ech mission and this error is showing in RPT.log

 

Error addweaponglobal: Type Array, expected String
18:00:10 File q\addons\custom_server\AIMission\spawnUnit.sqf, line 76
 
Note i run infistar on my server and there was an update for that yesterday i think or day before
Link to comment
Share on other sites

Hi Ghost
Installed new version, runs like a charm, no errors besides some little tweaking. Love it great job.

Now all you need to add is that the messages show top right corner as all the other ones do.
Low middle or now low left is where the chat is. To me that is very bothersome.

Then its perfect.

Luz

Link to comment
Share on other sites

Hi Ghost

Installed new version, runs like a charm, no errors besides some little tweaking. Love it great job.

Now all you need to add is that the messages show top right corner as all the other ones do.

Low middle or now low left is where the chat is. To me that is very bothersome.

Then its perfect.

Luz

 

Thank you for the positive feedback.

 

To have the messages show in the top right corner, make the following change:

 

//Messaging for BlckEgls Mission System -- see AIM.sqf

"blck_Message" addPublicVariableEventHandler {

    diag_log format["blck_Message text received is %1", _this select 1];

    /*titleText[format["%1",_this select 1],"PLAIN DOWN",1];*/

    systemChat format["%1",_this select 1];

    hint format["%1", _this select 1];

};

 

by default, this code is in start_black.sqf but you can just as well incorporate it in your init.sqf.

 

Cheers,

Ghost

Link to comment
Share on other sites

 

I just uploaded your update to my test server without changing anything and now 1 AI is spawning at ech mission and this error is showing in RPT.log

 

Error addweaponglobal: Type Array, expected String
18:00:10 File q\addons\custom_server\AIMission\spawnUnit.sqf, line 76
 
Note i run infistar on my server and there was an update for that yesterday i think or day before

 

 

If you send me a PM with the changes you would like to make I will set up a configuration for you.

 

Cheers,

Ghost.

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
  • Advertisement
×
×
  • Create New...