Console doesn't display strings for Values

  • #1, by atrusWednesday, 31. January, 21:44 3 months ago
    Hi all,

    Noted that in the console within the game, if you have a string value, VS will always display -1 instead of the string text that the value contains which is an issue when debugging, i hope that it can be easily fixed.

    Forum Fan

    231 Posts


  • #2, by AFRLmeWednesday, 31. January, 23:29 3 months ago
    You mean if you print a value to the log? Values have 2 different tables. String & Int.
    print( Values["example"].Int ) -- print number value
    print( Values["example"].String ) -- print string value
    1
    2

    Imperator

    6001 Posts

  • #3, by sebastianThursday, 01. February, 03:38 3 months ago
    i guess atrus meant the console (Tab) and its ability to display all values in a list, not using the log output

    Thread Captain

    2134 Posts

  • #4, by atrusThursday, 01. February, 21:51 3 months ago
    i guess atrus meant the console (Tab) and its ability to display all values in a list, not using the log output
    That's correct, see the attached pic. I cannot see any string values, but only the integer values!

    Forum Fan

    231 Posts

  • #5, by AFRLmeFriday, 02. February, 00:09 3 months ago
    Probably because string values can only be read/written with Lua script.

    Imperator

    6001 Posts

  • #6, by atrusFriday, 02. February, 09:13 3 months ago
    Probably because string values can only be read/written with Lua script.
    Yes, but even after being written with Lua, i think it would be nice to be able to see the actual value there, if possible

    Forum Fan

    231 Posts

  • #7, by sebastianFriday, 02. February, 09:19 3 months ago
    Probably because string values can only be read/written with Lua script.
    Yes, but even after being written with Lua, i think it would be nice to be able to see the actual value there, if possible
    I second that. If its possible for the VS player to display a value int, it should be easy to implement displaying its string value in the console. smile 

    Thread Captain

    2134 Posts

Write post