Console doesn't display strings for Values

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

    248 Posts


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

    7285 Posts

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

    248 Posts

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

    Imperator

    7285 Posts

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

    248 Posts

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