Page MenuHomeFeedback Tracker

Fatigues (Urban)(CSAT) [and rangefinder] don't appear in exported missions.
New, WishlistPublic

Description

If I place a rifleman wearing the Fatigues (Urban)(CSAT)(exported straight from Virtual Arsenal) and export it as a single mission, the character spawns in their underwear.

Edit:

I've noticed that the rangefinder also doesn't appear in the character's loadout.

Edit:

As Randomplayer says below, it works fine if you put a the fatigues on a CSAT player. If they're put on a Blufor or AAF player though, they spawn in their underwear.

Still no rangefinder though.

Details

Legacy ID
3714460901
Severity
None
Resolution
Open
Reproducibility
Always
Category
Virtual Arsenal
Steps To Reproduce

Create a character in the Virtual Arsenal wearing Fatigues (Urban)(CSAT). Press 'export'.

Place a Blufor/AAF rifleman in the editor. In his init field, paste the code given by Virtual Arsenal.

Save as 'Single Mission'

Play the mission - your character has forgotten to put his clothes on!

Edit:

On the loadout included in 'Additional Information', the rangefinder is also missing on mission start. I've not checked yet if this happens on all loadouts.

Additional Information

Full VA export script I used here:

comment "Remove existing items";
removeAllWeapons this;
removeAllItems this;
removeAllAssignedItems this;
removeUniform this;
removeVest this;
removeBackpack this;
removeHeadgear this;
removeGoggles this;

comment "Add containers";
this forceAddUniform "U_O_CombatUniform_oucamo";
for "_i" from 1 to 3 do {this addItemToUniform "30Rnd_556x45_Stanag";};
for "_i" from 1 to 2 do {this addItemToUniform "6Rnd_45ACP_Cylinder";};
this addVest "V_PlateCarrier1_blk";
for "_i" from 1 to 2 do {this addItemToVest "FirstAidKit";};
for "_i" from 1 to 2 do {this addItemToVest "30Rnd_556x45_Stanag";};
for "_i" from 1 to 2 do {this addItemToVest "HandGrenade";};
for "_i" from 1 to 2 do {this addItemToVest "MiniGrenade";};
for "_i" from 1 to 2 do {this addItemToVest "SmokeShell";};
this addItemToVest "SmokeShellRed";
for "_i" from 1 to 2 do {this addItemToVest "Chemlight_yellow";};
this addItemToVest "Chemlight_blue";
this addItemToVest "6Rnd_45ACP_Cylinder";
this addBackpack "I_UAV_01_backpack_F";
this addGoggles "G_Balaclava_combat";

comment "Add weapons";
this addWeapon "arifle_Mk20_F";
this addPrimaryWeaponItem "optic_Aco";
this addWeapon "hgun_Pistol_heavy_02_F";
this addHandgunItem "optic_Yorris";

comment "Add items";
this linkItem "ItemMap";
this linkItem "ItemCompass";
this linkItem "ItemWatch";
this linkItem "ItemRadio";
this linkItem "I_UavTerminal";
this linkItem "NVGoggles_OPFOR";
this linkItem "Laserdesignator";

comment "Set identity";
this setFace "WhiteHead_12";
this setSpeaker "Male06GRE";
[this,"TFAegis"] call bis_fnc_setUnitInsignia;

Event Timeline

ColonelMolerat edited Additional Information. (Show Details)
ColonelMolerat set Category to Virtual Arsenal.
ColonelMolerat set Reproducibility to Always.
ColonelMolerat set Severity to None.
ColonelMolerat set Resolution to Open.
ColonelMolerat set Legacy ID to 3714460901.May 7 2016, 7:07 PM

The uniform appeared for me in editor, regardless of which faction the player belonged to. I tested with BLUFOR, OPFOR, Independent and Civilian. Bear in mind this was not a saved scenario. I was however missing the laser designator. I also tested it after saving the scenario, and it worked. I only did this for OPFOR though, but as the "forceadduniform" command is used, I don't think this should make a difference.

I just tested it again. I went to the Virtual Armory, gave a character Fatigues (Urban)(CSAT) and pressed Export.

I then went into the editor, dropped a Blufor rifleman, and pasted the exported code into its init field.

In the editor preview, it worked fine.

Did you save it as 'Single Mission'? That's where I've been having issues.

I exported it as 'Single Mission', went to 'Scenarios', chose the mission and played it.

Same problem.

Still wearing underwear.

I saved it with the character as an OPFOR unit. Maybe the mission doesn't let you wear the uniform because it belongs to the enemy?

EDIT:
Yes, that's the case. It also happens if you put the uniform on AAF soldiers though.

Original Post (I could have sworn I'd tested it. I'm a fool):

In my initial test (the one I've described in the description), it happens for every faction's unit.

Are you exporting as 'single mission' and loading it from 'scenarios'? It works fine in the editor's 'preview' mode, but not as a scenario.

Just tested it again. Made a quick mission on Stratis with one unit from each faction (including civilian, and even animals). The AAF, CSAT and FIA riflemen, and the civilian unit, all got the CSAT uniform. The NATO rifleman did not, and was instead standing there in his underwear (which I believe should not be the case as the "ForceAddUniform" is used in the VA export. None of the units were given the rangefinder.

Also, the commands did not work for the rabbit, obviously :)

Really sorry, I'm a fool. I could have sworn I'd tried that.

It's odd that it worked fine on the AAF for you though. The mission I noticed it being buggy on I had made an AAF soldier wear the uniform.

Did you test if it happened the other way round? NATO uniforms on CSAT soldiers?

I didn't think to test that.

Also, it works fine for all factions *as long as their AI*. I tested AAF, NATO and CSAT - all worked fine if they weren't playable. It was only my playable character (AAF) who was 'naked'.

I tested again. This time I used five separate missions where the unit was set to "Player". The CSAT uniform was only given to the CSAT soldier and the civilian. AAF, FIA and NATO ended up naked, as your tests suggested. Could be a problem with the "ForceAddUniform" command, as it seems to fail to force the CSAT uniform onto units that normally cannot wear it. As with previous tests, the rangefinder was missing on all units.

Also, I tested with the NATO uniform. AAF and CSAT were unable to wear it. I assume the AAF uniforms cannot be worn by CSAT and NATO. It appears FIA and NATO can share uniforms though, as expected considering they are both BLUFOR.

Conclusion: The player character in exported scenarios seems to be unable to wear uniforms belonging to another side (BLUFOR cannot wear OPFOR uniforms etc.). This is the case even when the "ForceAddUniform" command is used, meaning exported loadouts from the Virtual Arsenal may not work if the uniform belongs to another side.

Excellent, good testing!

I suppose if it's only affecting the player, and evenly affecting all factions trying to wear all other factions' uniforms, it may be working as intended, as a method to prevent multiplayer getting confusing, and not a bug.

I wanted to have a game where I had a 'CSAT' officer (CSAT uniform on FIA) leading an FIA squad. If I change the AI squadmates' clothes instead of the officer's, it should work.

--

Nope, that doesn't work. It affects AI units in the player's squad, too.

You could press F2 in the editor, then attach the FIA members to the CSAT officer. That way the CSAT unit will be the leader, and the FIA units will become CSAT units in the leader's squad. They should keep their gear.

I had assumed you couldn't add different factions to a squad like that. Oops, thanks!