Page MenuHomeFeedback Tracker

Export Mission to SQF breaks if custom attribute with condition 'objectSimulated' is present
Closed, ResolvedPublic

Description

Having a custom attribute with the following condition
condition = "1 - objectSimulated"; (Valid according to https://community.bistudio.com/wiki/Eden_Editor:_Configuring_Attributes#Condition)
will break the Export Mission to SQF functionality because "objectSimulated" is compiled as boolean value instead of number (0,1).

BIS_fnc_3DENExportSQF L394+

objectBrain = [0,1] select (_simulation == "soldier" && !_isSimpleObject);
objectControllable = [0,1] select (_object iskindof "CAManBase" && !_isSimpleObject);
objectAgent = [0,1] select (count getarray (_cfg >> "agentTasks") > 0 && !_isSimpleObject);
objectVehicle = [0,1] select (_object iskindof "AllVehicles" && objectBrain == 0 && !_isSimpleObject);
objectSimulated = !_isSimpleObject; // ToDo?
objectHasInventoryCargo = [0,1] select (!(_object iskindof "WeaponHolder") && {getnumber (_cfg >> "maximumLoad") > 0 && !_isSimpleObject});
objectDestructable = [0,1] select (gettext (_cfg >> "destrType ") != "DestructNo" && !_isSimpleObject);

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor

Event Timeline

R3vo created this task.Jun 6 2021, 1:02 AM
R3vo renamed this task from Export mission to sqf. But with objectSimulated condition to Export Mission to SQF breaks if custom attribute with condition 'objectSimulated' is present.Jun 6 2021, 9:23 AM

probably next dev

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 6 2021, 11:22 AM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
Wulf added a subscriber: Wulf.EditedJun 11 2021, 4:57 PM

Hello.

@R3vo Could you please upload a repro test mission for us?

Thank you.

R3vo added a comment.EditedJun 12 2021, 9:03 AM

@Wulf

  1. Load the mission
  2. Use the "Export Mission to SQF" function within Eden Editor
R3vo closed this task as Resolved.Jul 3 2021, 9:05 AM
R3vo claimed this task.

Fixed.