Page MenuHomeFeedback Tracker

3d Editor sets module values to -1 instead of 0
New, WishlistPublic

Description

A module with an Arguments with typeName = "NUMBER" that with a value of 0 will be set to -1. Only 3d editor is effected, 2d works normally.

{F28061}

Details

Legacy ID
1575179806
Severity
None
Resolution
Open
Reproducibility
Always
Category
Editor
Steps To Reproduce

See Attached SQM for demo.
Place a ModuleTaskCreate_F with var name "x3"
Set Owner to "Syncronized Objects Only"
Sync to player unit

Module will have no effect.
Check (x3 getVariable "owner") will be -1 instead of expected 0

Module config:

class ModuleTaskCreate_F: Module_F {
    class Arguments {
        class Owner {
            displayName = "Owner";
            typeName = "NUMBER";
            class values {
                class Unit {
                    name = "Synchronized objects only";
                    value = 0;
                };
Additional Information

When saving as unbined sqm the value is clearly wrong:

class Attribute5 {

property="ModuleTaskCreate_F_Owner";
expression="_this setVariable ['Owner',_value,true];";
class Value {
    class data {
        class type {
            type[]=
            {
                "SCALAR"
            };
        };
        value=-1;
    };
};

};

bin/unbined sqm has no effect

Event Timeline

PabstMirror edited Additional Information. (Show Details)
PabstMirror set Category to Editor.
PabstMirror set Reproducibility to Always.
PabstMirror set Severity to None.
PabstMirror set Resolution to Open.
PabstMirror set Legacy ID to 1575179806.May 8 2016, 1:46 PM