Jump to content

[RELEASE] WAI 2.2.6


JasonTM

Recommended Posts

  On 6/5/2018 at 7:33 PM, LadyVal said:

I was checking every single mission to fix what I was doing wrong.

I think I have them all done.

I did all these changes you posted above and the heli one where the static was missing.

I am having this error:

 

  Reveal hidden contents

But, no matter different lines, guess it was the same issue, right?

Thanks a lot for all the hard work, Jason.

 

Expand  

Do you have this line: https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/init.sqf#L53

Link to comment
Share on other sites

  On 6/5/2018 at 8:41 PM, LadyVal said:

Thanks Relentless... I saw that before I posted my reply and corrected, but just checking because it is giving me the error like in 3 different lines (guess its because different missions?...)

 

Expand  

It outputs this error everytime the script wants to access the variable. But good that you already fixed it.

Link to comment
Share on other sites

  On 6/5/2018 at 10:19 PM, LadyVal said:

new thing... perhaps it is nothign but just in case... it began after those fixes

https://gyazo.com/ba47d337f9d84c873894d43f06806662

Expand  

That's not normal. Something is looping in your files. The debug line that the config file is loaded usually pops up once and that's it. It's declared here: https://github.com/worldwidesorrow/WICKED-AI/blob/e096aebd025fed8b445f3eb7826d613831111653/WAI/init.sqf#L63

Seems like something is messy with your installation. Hit me up via PM and give me your server.pbo or on discord: Relentless#1337

Link to comment
Share on other sites

A server owner was having trouble with para dropped AI ending up in the water on his custom Skalisty Island mission, so I made the paradrops more configurable.

Affected Files

WAI\compile\heli_para.sqf
WAI\static\default.sqf
WAI\static\chernarus.sqf
WAI\missions\bandit\hero_base.sqf
WAI\missions\bandit\ikea_convoy.sqf
WAI\missions\bandit\presidents_mansion.sqf
WAI\missions\bandit\crop_raider.sqf
WAI\missions\hero\bandit_base.sqf
WAI\missions\hero\mayors_mansion.sqf
WAI\missions\hero\ikea_convoy.sqf
WAI\missions\hero\crop_raider.sqf

I have already adjusted for the new formats in all of these files.
Since the hero side did not have an "extreme" mission, I converted the Mayor's Mansion.
For ease of update, just download the new files from github and swap the above files out.

The new format for the paradrops in missions is like this:

[position of mission, player check radius, heli classname, direction of approach, distance from mission for heli spawn, fly in height, time between each para drop, distance from mission to start drop,number of paratroopers, mission type, AI skill, weapon selection, number of magazines, skin type, AI gear, AI type, patrol or not, optional mission variable] spawn heli_para;

//Example
[[(_position select 0), (_position select 1), 0],200,"UH1H_DZ","North",[3000,4000],150,1.0,200,10,"Hard","Random",4,"Random","Bandit","Random","Bandit",true,_mission] spawn heli_para;

This is the new format in default.sqf and chernarus.sqf

/*
Paradropped unit custom spawn Eg.

[
	[911.21545,4532.7612,2.6292224],	// Position that units will be dropped by
	400,								// Radius from drop position a player has to be to spawn chopper
	"UH1H_DZ",							// Classname of chopper (Make sure it has 2 gunner seats!)
	"North",							// Direction of approach for the helicopter. Options: "North","South","East","West"
	[3000,4000],						// Random distance from the mission the helicopter should start. [min distance, max distance].
	150,								// Fly in height of the helicopter. Be careful that the height is not too low or the AI might die when they hit the ground
	1.0,								// Time in seconds between each deployed paratrooper. Higher number means paradropped AI will be more spread apart. Time of 0 means they all jump out rapidly.
	200,								// Distance from the mission the helicopter should start dropping paratroopers
	5,									// Number of units to be para dropped
	"Random",							// Skill level of units (easy, medium, hard, extreme, Random)
	"Random",	or ["Random","at"],		// Primary gun set number and rocket launcher. "Random" for random weapon set, "at" for anti-tank, "aa" for anti-air launcher
	4,									// Number of magazines
	"Random",							// Backpack classname, use "Random" or classname here
	"Bandit2_DZ",						// Skin classname, use "Random" or classname here
	"Random",							// Gearset number. "Random" for random gear set.
	"Bandit",							// AI Type, "Hero" or "Bandit".
	true								// true: Aircraft will stay at position and fight. false: Heli will leave if not under fire. 
] spawn heli_para;

Place your paradrop spawns under this line
*/

 

Link to comment
Share on other sites

Jason... I would know that understand that too.

No idea what happened.

I need more time to be able to learn and read much more... so far, I have so little time that is barely possible.   But I will learn.

And then, perhaps I could tell you how I turned that init to have that crazy loop!! jajajajaja

Link to comment
Share on other sites

I have modified the radio shack mission to jam your ear within 1.6km from mission.
dayz_server\WAI\missions\hero\radioshack.sqf

  Reveal hidden contents

the noise will finish some tens seconds after the mission.

Next, I have made roadblock mission inspired by and partially copied from DZMS-HotSpot missions
dayz_server\WAI\missions\hero\roadblock.sqf

  Reveal hidden contents

 

Link to comment
Share on other sites

Hi there,

Does anyone have time to look at my default.cfg config in the spoiler below to see if you can tell how I messed it up? It was running fine and then I added a paradrop and two boat spawns, plus a few more group spawns as Skalisky Treasure Guards. I also changed the Primary Gun Set Number to "Random","AT" so that all the groups have rocket launchers. All of my changes are in red in the spoiler.

When I start the game with this config, nothing spawns at all, no AI, no boats, no crates, nothing.

Thanks for your help!

 

  Reveal hidden contents

 

Link to comment
Share on other sites

and...Sorry, I think it also does not work
 

  Reveal hidden contents

because in heli_para.sqf
 

  Reveal hidden contents

this mean, the heli_para function don't allow ["Random","AT"] style weapon setting.
(Direct setting like"AKS_GOLD" also won't work.)

To make it work, the "call { ... };" part of heli_para must be changed to
 

  Reveal hidden contents

(oops, spawn_group also forgot a ";" in this code block... ?)

Link to comment
Share on other sites

@SchalldampferI appreciate you reporting these issues. I added the solution for paratrooper groups to have rocket launchers and fixed weapons. The file heli_para.sqf should be replaced. There were several changes.

This is the line I used to test the President's mission:

[[(_position select 0),(_position select 1),0],400,"UH60M_EP1_DZE","East",[3000,4000],150,1.0,200,10,"Random",["AKS_GOLD","AT"],4,"Random","Hero","Random","Hero",false,_mission] spawn heli_para;

 

I also added a solution so you can have the objects at your road block mission deleted when the mission is cleared.

In config.sqf add this line:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L95

Any mission name can be added to this array to override the mission cleanup time.

In missionwinorfail.sqf replace your line with this one:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L321

Killzone Kid's in string function is used to check the mission names for a match to override the mission clean time.

Add your objects array to the passed variable array like this one:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/hero/abandoned_trader.sqf#L67

I also noticed there is a missing semicolon on this line, but it doesn't seem to affect anything. I'll change it later.

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/spawn_group.sqf#L81

 

 

 

Link to comment
Share on other sites

  On 6/13/2018 at 3:11 PM, JasonTM said:

@SchalldampferI appreciate you reporting these issues. I added the solution for paratrooper groups to have rocket launchers and fixed weapons. The file heli_para.sqf should be replaced. There were several changes.

This is the line I used to test the President's mission:

[[(_position select 0),(_position select 1),0],400,"UH60M_EP1_DZE","East",[3000,4000],150,1.0,200,10,"Random",["AKS_GOLD","AT"],4,"Random","Hero","Random","Hero",false,_mission] spawn heli_para;

 

I also added a solution so you can have the objects at your road block mission deleted when the mission is cleared.

In config.sqf add this line:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/config.sqf#L95

Any mission name can be added to this array to override the mission cleanup time.

In missionwinorfail.sqf replace your line with this one:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/mission_winorfail.sqf#L321

Killzone Kid's in string function is used to check the mission names for a match to override the mission clean time.

Add your objects array to the passed variable array like this one:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/hero/abandoned_trader.sqf#L67

I also noticed there is a missing semicolon on this line, but it doesn't seem to affect anything. I'll change it later.

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/spawn_group.sqf#L81

 

 

 

Expand  

Hi JasonTM, I swapped out the heli_para.sqf file and changed my para drop config in default.sqf (spoiler). The heli spawns but it does not fly to the specified location and does not drop any paratroopers. It just hovers in the air. Is there something else I need to do to make this work?

Thanks!

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 6/13/2018 at 7:39 PM, Vladick said:

Hi JasonTM, I swapped out the heli_para.sqf file and changed my para drop config in default.sqf (spoiler). The heli spawns but it does not fly to the specified location and does not drop any paratroopers. It just hovers in the air. Is there something else I need to do to make this work?

Thanks!

  Reveal hidden contents

 

Expand  

Are there any errors in your server rpt?

Link to comment
Share on other sites

  On 6/13/2018 at 8:41 PM, JasonTM said:

Are there any errors in your server rpt?

Expand  

I found this in the RPT:

12:48:04 Error in expression <sNearPlayer;
uiSleep 10;
};

call {
if (_skin == "random") 	exitWith { _aiskin =>
12:48:04   Error position: <_skin == "random") 	exitWith { _aiskin =>
12:48:04   Error Undefined variable in expression: _skin
12:48:04 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 55
12:48:04 Error in expression <)); };
_aiskin = _skin;
};

if(typeName _aiskin == "ARRAY") then {
_aiskin = _ai>
12:48:04   Error position: <_aiskin == "ARRAY") then {
_aiskin = _ai>
12:48:04   Error select: Undefined variable in expression: _aiskin
12:48:04 File z\addons\dayz_server\WAI\compile\heli_para.sqf, line 62
Link to comment
Share on other sites

  On 6/13/2018 at 9:36 PM, JasonTM said:

Does your heli_para.sqf have this line?

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/heli_para.sqf

It needs to be _this select 13

Also, did you swap out the mission files I had listed above?

They also need to use the new format.

Expand  

Hey JasonTM, my heli_para.sqf did already have the _this select 13 code but I had not swapped all of the mission files. Did that and now everything is working as expected. Thanks for your help!

Link to comment
Share on other sites

Hello JasonTM  today I installed the newest version I have this error 

11:12:08 "WAI: [Mission:[Hero] Farmer]: Starting... [2884.04,11363.9,0]"
11:12:11 Error in expression <ret = _this select _ret;           
};
 
_ret;>
11:12:11   Error position: <_ret;>
11:12:11   Error Undefined variable in expression: _ret
11:12:11 File z\addons\dayz_code\compile\BIS_fnc\fn_selectRandom.sqf, line 24
11:12:11 Error in expression <it = _ailist call BIS_fnc_selectRandom;
_unit addWeapon _keySelected;
 
if(wai_de>
11:12:11   Error position: <_unit addWeapon _keySelected;
 
if(wai_de>
11:12:11   Error Undefined variable in expression: _unit
11:12:11 File z\addons\dayz_server\WAI\compile\functions.sqf, line 222
11:12:11 "WAI: Spawned a group of 5 AI (Bandit) at [2867.04,11392.9,0]"
11:12:11 "WAI: Spawned a group of 3 AI (Bandit) at [2872.04,11383.9,0]"

Link to comment
Share on other sites

Update

This mod has been made compatible with the community stringtable. The instructions have been updated.

File remote_messages.sqf has been updated by @BigEgg to detect if _STR is in the mission announcement and localize the message.

Step 6 in the mission instructions:

This mod is dependent on the Epoch community stringtable. Download the stringtable here and place file stringTable.xml in the root of your mission folder. Repack your mission PBO.

The mission announcements are translated into German and Russian based on the local settings of the client machine. If someone has the skill to add other languages, this is encouraged.

Technically, the mod is not dependent on the stringtable, but all of the mission files are using the localization format for the mission announcements Example...

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/missions/bandit/cannibal_cave.sqf#L69-L71

The community stringtable is available here:

https://github.com/oiad/communityLocalizations/

The WickedAI entries start here:

https://github.com/oiad/communityLocalizations/blob/master/stringTable.xml#L1219

 

A slight update to custom_publish_vehicle has been made so that BIS_fnc_findSafePos  does not choose the default (center of the map) for the spawn location. These are the lines that have been changed:

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L9

https://github.com/worldwidesorrow/WICKED-AI/blob/master/WAI/compile/custom_publish_vehicle.sqf#L24-L25

 

Credit to...

@BigEgg for the localization solution in remote_messages.sqf

@RedLink Russian translations

@DAmNRelentless German translations and cleaning up the mission strings

@Schalldampfer testing and detecting the mission vehicle spawning issue

@Grahame Help with vehicle spawning problem

Link to comment
Share on other sites

  On 6/19/2018 at 10:57 AM, Dr.Killmore said:

Hello JasonTM  today I installed the newest version I have this error 

11:12:08 "WAI: [Mission:[Hero] Farmer]: Starting... [2884.04,11363.9,0]"
11:12:11 Error in expression <ret = _this select _ret;           
};
 
_ret;>
11:12:11   Error position: <_ret;>
11:12:11   Error Undefined variable in expression: _ret
11:12:11 File z\addons\dayz_code\compile\BIS_fnc\fn_selectRandom.sqf, line 24
11:12:11 Error in expression <it = _ailist call BIS_fnc_selectRandom;
_unit addWeapon _keySelected;
 
if(wai_de>
11:12:11   Error position: <_unit addWeapon _keySelected;
 
if(wai_de>
11:12:11   Error Undefined variable in expression: _unit
11:12:11 File z\addons\dayz_server\WAI\compile\functions.sqf, line 222
11:12:11 "WAI: Spawned a group of 5 AI (Bandit) at [2867.04,11392.9,0]"
11:12:11 "WAI: Spawned a group of 3 AI (Bandit) at [2872.04,11383.9,0]"

Expand  

Are you still having issues with this. I did not see anything like this when I was testing and no one else has reported the same issue.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...