Page MenuHomeFeedback Tracker

Several issues with "compatibleItems" and "compatibleMagazines"
Confirmed Internally, NormalPublic

Description

  • If you use "compatibleItems" and "compatibleMagazines" on a class with scope = 0, they throw errors.
  • Slots and muzzles handed over to "compatibleItems" and "compatibleMagazines" respectively are case sensitive.
  • "compatibleItems" can return duplicates (e.g. if two different "WeaponSlotsInfo" classes contain the same class) (unsure if "compatibleMagazines" can do that though)

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Operating System Version
Windows 11, 21H2, 22000.918
Category
Scripting
Steps To Reproduce
  1. Get into a mission.
  2. Run
compatibleItems "arifle_MX_Base_F"; // Returns full array, throws error
compatibleMagazines ["arifle_MSBS65_GL_base_F", "UGL"]; // Returns full array, throws error
compatibleMagazines "arifle_CTAR_GL_base_F"; // Returns full array, throws error

compatibleItems ["arifle_Katiba_GL_F", "PointerSlot"]; // Returns full array

compatibleMagazines ["arifle_MSBS65_GL_base_F", "uGL"]; // Returns []
compatibleItems ["arifle_Katiba_GL_F", "pointerSlot"]; // Returns []

See error box pop up (unless there was already another error box beforehand) and this in the RPT:

Warning Message: Error: creating weapon arifle_MX_Base_F with scope=private
Warning Message: Error: creating weapon arifle_MSBS65_GL_base_F with scope=private
Warning Message: Error: creating weapon arifle_CTAR_GL_base_F with scope=private
Additional Information

No mods, 2.10.149939
RPT:

Event Timeline

johnb43 created this task.Sat, Sep 17, 11:49 AM
Tenshi changed the task status from New to Confirmed Internally.Tue, Sep 20, 12:25 PM
Tenshi set Ref Ticket to Internal Ref. AIII-55378.
Tenshi added a subscriber: Tenshi.

Thank you for reporting the issue, we will see what we can do.

h- added a subscriber: h-.Sat, Sep 24, 1:04 AM