License from €75
DE EN FR ES IT CZ

Console doesn't display strings for Values

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 9 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.
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.

    See licenses Try it for free
  3. · 9 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

  4. · 9 years ago
    i guess atrus meant the console (Tab) and its ability to display all values in a list, not using the log output
  5. · 9 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!
    • Image in post
  6. · 9 years ago
    Probably because string values can only be read/written with Lua script.
  7. · 9 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
  8. · 9 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 

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?