Page MenuHomeFeedback Tracker

Naming a unit "Switch" generates an error
Closed, ResolvedPublic

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
Operating System
Windows 7
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.

Event Timeline

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.Sep 13 2017, 4:11 PM

Still valid.

LouMontana closed this task as Resolved.Jun 28 2021, 12:57 PM
LouMontana edited Steps To Reproduce. (Show Details)
LouMontana edited Additional Information. (Show Details)
LouMontana set Operating System to Windows 7.