AggrorJorn Posted July 1, 2013 Share Posted July 1, 2013 This seems to be a reaccuring thing. After every update so far, lua properties are unstable. If I try the following script: Script.rotation = Vec3(0.1, 0.3, 0.2) --Vec3 Rotator Script.randomValue = Vec3(0.1, 0.3) --Vec2 ScreenPos Script.randomValue2 = Vec3(0.1, 0.3,4,3) --Vec4 Color Script.mood = "Happy, Angry, Sad" --choice Script.monster = "Vampire, Zombie, Ghost" --choiceedit Problem 1: Although the actual values are being set in the code. The property boxes don't show the default value. This goes for Vec2, Vec3 and Vec4 Script.rotation = Vec3(0.1, 0.3, 0.2) --Vec3 Problem 2: The choice property no longer has a dropdown and default value. It is either a bug or the layout for this property has changed and it has not been documented properly. Script.monster = "Vampire, Zombie, Ghost" --choice Character Problem 3 The choiceedit property no longer has a dropdown and default value. It is either a bug or the layout for this property has changed and it has not been documented properly. Script.monster = "Vampire, Zombie, Ghost" --choiceedit Character Link to comment Share on other sites More sharing options...
AggrorJorn Posted July 3, 2013 Author Share Posted July 3, 2013 After some trying, the following works: Script.monster = "" --choice Character "Vampire, Zombie, Ghost" Link to comment Share on other sites More sharing options...
beo6 Posted July 3, 2013 Share Posted July 3, 2013 as far as i know --choice is saving the choosen option as integer and not as string. //Edit: also i would recommend to set the label as String too and not just write Character. So it should look like this: Script.monster = 0 --choice "Character" "Vampire,Zombie,Ghost" Link to comment Share on other sites More sharing options...
AggrorJorn Posted July 3, 2013 Author Share Posted July 3, 2013 Thanks beo6. Can you confirm the first problem? Link to comment Share on other sites More sharing options...
beo6 Posted July 3, 2013 Share Posted July 3, 2013 Oh sorry. missed your first problem. just tested it and i can confirm that default vec3 values do not show up in the fields. Link to comment Share on other sites More sharing options...
Admin Posted July 15, 2013 Share Posted July 15, 2013 Yeah, this is really difficult stuff. Working on it now. Link to comment Share on other sites More sharing options...
Admin Posted July 15, 2013 Share Posted July 15, 2013 Fixed. Thanks for the report. Link to comment Share on other sites More sharing options...
Recommended Posts