Naming a unit "Switch" generates an error
Assigned, WishlistPublic

Description

Normally attempting to name a unit 'switch' generates an invalid variable name error, as expected as it is used for the switch script command. However, capitalizing any letter in the name (e.g. Switch, SWITCH, etc) does not trigger the invalid variable name in the editor, and allows for Preview. Upon entering the mission, the GUI on the pause menu is overlaid with the Configure Menu.

Details

Legacy ID
857751543
Severity
None
Resolution
Open
Reproducibility
Always
Category
Editor
Steps To Reproduce
  • Place a unit down in the editor
  • Attempt to name the unit 'switch'
  • Observe the correct invalid variable as intended
  • Attempt to name the unit 'Switch'
  • No invalidity error occurs, and the player can Preview the mission
  • The following error will occur in the RPT:

Error in expression <;_display = _params select 0;switch _mode do {case onLoad":{_displays = >

Error position: <_mode do {case "onLoad": {_displays = >
Error Missing ;

File A3\ui_f\scripts\initDisplay.sqf, line 29

Additional Information

It should not be possible to name a unit the name of a script command regardless whether the letters are upper or lower case.

Also, attempting to rename the unit after Preview will not be possible, the right side of the Edit Unit screen will not function, requiring a restart of the Editor.

Tholozor edited Steps To Reproduce. (Show Details)Aug 31 2013, 6:00 AM
Tholozor edited Additional Information. (Show Details)
Tholozor set Category to Editor.
Tholozor set Reproducibility to Always.
Tholozor set Severity to None.
Tholozor set Resolution to Open.
Tholozor set Legacy ID to 857751543.May 7 2016, 4:24 PM

Confirmed, the check seems only work with all lower case letters

Still true as of 1.11.114607

dedmen added a subscriber: dedmen.Wed, Sep 13, 4:11 PM

Still valid.

Add Comment