Code: Select all
/c game.player.gui.screen.add{type='frame', name='test_frame', caption='Test frame'}.add{type='switch', name='test_switch', allow_none_state=true, switch_state='none', left_label_caption='On', right_label_caption='Off'}
If you run the above command, the game will return an error, saying that allow_none_state must be true if switch_state is set to none. However, you can clearly see in the command that allow_none_state is true, and the game is incorrectly throwing the error.
2: Crash
If you take the above command and change switch_state to left or right, the game will crash entirely. I have attached my log file below.