Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Some add_animation events ignored #132
When add_animation in props has a commands_x event, it is ignored by the new truck parser.
An example from the log:
The events that are ignored are all valid: http://www.rigsofrods.com/wiki/pages/Keypress_Events
The event is still ignored when commands_10 is changed to COMMANDS_10
Vehicle used: Freightliner FS-65 from http://www.rigsofrods.com/repository/view/5226
I just rediscovered this issue in 0.4.5.1 in my HDX development and found that the only issue is that the keypress events are case sensitive and ALSO space sensitive.
Prior to 0.4.5.0, "commands_05" was a valid keypressevent, but it is now ignored by the parser.
Also, prior to 0.4.5.0 " COMMANDS_05" was acceptable. That is, having a space between "event:" and "COMMANDS_05". Now it is also ignored by the parser (notice the extra space).
Changing it from "event: commands_05" to "event:COMMANDS_05" fixes the issue completely.
I am currently on Windows 8.1 and do not have RoR working on any Linux distributions to see if the case sensitivity is specific to Windows.