Page MenuHomeFeedback Tracker

unlinkItem command malfunction
New, WishlistPublic

Description

Malfunction occurs when first time after game launch this command is used with an empty string (like player unlinkItem "") or not existing item class. Probably since 1.16.

Expected: in such case command should just do nothing.

Details

Legacy ID
3768835494
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Go to the editor, place a player unit (eg BLUFOR rifleman), place a trigger activated by radio. Activation field for this trigger:

player unlinkItem "";

  1. Save scenario;
  2. Exit the game;
  3. Launch the game again;
  4. Go to the editor;
  5. Load saved scenario;
  6. Activate the trigger.

As the result is config error message on screen followed by RPT log. Second try will generate no errors, but if you put there some fictional class instead of "", eg "xxx", you'll get it one time again; etc. for any new invalid classname. If class is valid (refers to an item actually existing in the config), but unit hasn't this item assigned - error not occurs.

Additional Information

Complete RPT error log:

Warning Message: No entry 'bin\config.bin/CfgWeapons.'.
Warning Message: No entry '.scope'.
Warning Message: '/' is not a value
Warning Message: Error: creating weapon with scope=private
Warning Message: No entry '.displayName'.
Warning Message: '/' is not a value
Warning Message: No entry '.nameSound'.
Warning Message: '/' is not a value
Warning Message: No entry '.type'.
Warning Message: '/' is not a value
Warning Message: No entry '.picture'.
Warning Message: '/' is not a value
Warning Message: No entry '.Library'.
Warning Message: No entry '.libTextDesc'.
Warning Message: '/' is not a value
Warning Message: No entry '.model'.
Warning Message: '/' is not a value
Warning Message: No entry '.simulation'.
Warning Message: '/' is not a value
Warning Message: No entry '.fireLightDuration'.
Warning Message: '/' is not a value
Warning Message: No entry '.fireLightIntensity'.
Warning Message: '/' is not a value
Warning Message: No entry '.fireLightDiffuse'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.fireLightAmbient'.
Warning Message: Size: '/' not an array
Warning Message: Size: '/' not an array
Warning Message: No entry '.weaponLockDelay'.
Warning Message: '/' is not a value
Warning Message: No entry '.weaponLockSystem'.
Warning Message: '/' is not a value
Warning Message: No entry '.cmImmunity'.
Warning Message: '/' is not a value
Warning Message: No entry '.weight'.
Warning Message: '/' is not a value
Warning Message: No entry '.lockingTargetSound'.
Warning Message: Size: '/' not an array
Warning Message: No entry '.lockedTargetSound'.
Warning Message: Size: '/' not an array
Warning Message: No entry '.detectRange'.
Warning Message: '/' is not a value
Warning Message: No entry '.muzzles'.
Warning Message: Size: '/' not an array

Event Timeline

Rydygier edited Steps To Reproduce. (Show Details)May 30 2014, 6:23 PM
Rydygier edited Additional Information. (Show Details)
Rydygier set Category to Scripting.
Rydygier set Reproducibility to Always.
Rydygier set Severity to None.
Rydygier set Resolution to Open.
Rydygier set Legacy ID to 3768835494.May 7 2016, 6:41 PM
Bohemia added a subscriber: AD2001.May 30 2014, 6:23 PM