Feature Request #1550

allow setting default value also for boolean action14 entries

Added by planetmaker almost 9 years ago. Updated over 8 years ago.

Status:ClosedStart date:2010-09-26
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

    param {
        param_compatibility {
            type: bool;
            name: string(STR_PARAM_DISABLE_UNNEEDED_WAGONS);
            desc: string(STR_PARAM_DISABLE_UNNEEDED_WAGONS_DESC);
            def_value: 0;
        }
    }

produced:
nmlc: "src/header.pnml", line 13: setting-def_value is only valid for 'int' settings

Associated revisions

Revision 801:9485d992d749
Added by yexo over 8 years ago

Fix #1550: allow setting a default value for bool settings

Revision 801:9485d992d749
Added by yexo over 8 years ago

Fix #1550: allow setting a default value for bool settings

Revision 827:0db42b7035d6
Added by yexo over 8 years ago

Fix #1550: def_value didn't work for bool settings

Revision 827:0db42b7035d6
Added by yexo over 8 years ago

Fix #1550: def_value didn't work for bool settings

History

#1 Updated by yexo over 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset 9485d992d749.

#2 Updated by planetmaker over 8 years ago

  • Status changed from Closed to Reopened
  • % Done changed from 100 to 50
    // Compatibility parameter: remove unneeded default wagon definitions
    param {
        param_compatibility {
            type:    bool;
            name:    string(STR_PARAM_DISABLE_UNNEEDED_WAGONS);
            desc:    string(STR_PARAM_DISABLE_UNNEEDED_WAGONS_DESC);
            def_value: 1;
        }
    }


produces nmlc: "src/header.pnml", line 13: setting-def_value must be either 0 or 1 for 'bool' settings

#3 Updated by yexo over 8 years ago

  • Status changed from Reopened to Closed
  • % Done changed from 50 to 100

Applied in changeset 0db42b7035d6.

Also available in: Atom PDF