Console doesn't display strings for Values

  • #1, by dionousWednesday, 31. January 2018, 21:44 6 years 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

    246 Posts


  • #2, by afrlmeWednesday, 31. January 2018, 23:29 6 years 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

    Imperator

    7278 Posts

  • #3, by sebastianThursday, 01. February 2018, 03:38 6 years 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

    2346 Posts

  • #4, by dionousThursday, 01. February 2018, 21:51 6 years 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

    246 Posts

  • #5, by afrlmeFriday, 02. February 2018, 00:09 6 years ago
    Probably because string values can only be read/written with Lua script.

    Imperator

    7278 Posts

  • #6, by dionousFriday, 02. February 2018, 09:13 6 years 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

    246 Posts

  • #7, by sebastianFriday, 02. February 2018, 09:19 6 years 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

    2346 Posts