Strings now display "," in watch window?

Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
Watch window displays used to work for our strings. I'm not sure what's different. I'll see if I can track it down on my side.

Instead of the string "Login" for example I get ",".

Could it be our wide-character use?

Thanks Max,

Erik

<img src="style_emoticons/<#EMO_DIR#>/asrifle.gif" style="vertical-align:middle" emoid="::asrifle::" border="0" alt="asrifle.gif" />

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    edited October 2007
    You're storing wide-character data in a normal Lua string, correct? To be honest, I'm not sure why that was displaying properly in the beta! I'll fix this up for the next build though, I don't think there's any reason Decoda wouldn't be able to handle that.
  • Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
    <!--quoteo(post=1653843:date=Oct 3 2007, 10:08 PM:name=Max)--><div class='quotetop'>QUOTE(Max @ Oct 3 2007, 10:08 PM) <a href="index.php?act=findpost&pid=1653843"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You're storing wide-character data in a normal Lua string, correct? To be honest, I'm not sure why that was displaying properly in the beta! I'll fix this up for the next build though, I don't think there's any reason Decoda wouldn't be able to handle that.<!--QuoteEnd--></div><!--QuoteEEnd-->


    Yes. All of our scripting is done this way. It's necessary for foreign languages like Chinese and Korean.

    Thanks for looking into it!

    I have a few errors in the output widow about missing symbols not matching dlls for msvcp71 and msvcr71. If fixing this at the moment.

    I'll verify the older build properly displays the strings. I may have a previous build still around here somewhere. I remember it worked, but maybe something changed on our side.

    Erik
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    The next build -- which will be published later today or tomorrow -- should address this problem.
  • Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
    <!--quoteo(post=1653892:date=Oct 4 2007, 12:32 AM:name=Max)--><div class='quotetop'>QUOTE(Max @ Oct 4 2007, 12:32 AM) <a href="index.php?act=findpost&pid=1653892"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->The next build -- which will be published later today or tomorrow -- should address this problem.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Hm... I upgraded to the latest, but it's still happening.

    Any ideas?
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    How are you storing the strings? Something like this?

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->lua_pushlstring(L"Test", 8);<!--c2--></div><!--ec2-->
  • Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
    <!--quoteo(post=1654132:date=Oct 4 2007, 11:39 PM:name=Max)--><div class='quotetop'>QUOTE(Max @ Oct 4 2007, 11:39 PM) <a href="index.php?act=findpost&pid=1654132"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->How are you storing the strings? Something like this?

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->lua_pushlstring(L"Test", 8);<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd-->

    Looks like we use:

    typedef wchar_t lua_WChar

    lua_pushwstring( lua_State *, const lua_WChar* )
  • Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
    <!--quoteo(post=1654243:date=Oct 5 2007, 04:44 PM:name=Erik2v)--><div class='quotetop'>QUOTE(Erik2v @ Oct 5 2007, 04:44 PM) <a href="index.php?act=findpost&pid=1654243"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Looks like we use:

    typedef wchar_t lua_WChar

    lua_pushwstring( lua_State *, const lua_WChar* )<!--QuoteEnd--></div><!--QuoteEEnd-->

    Our game is compiler setting :

    Character Set: Use Multi-Byte Character Set
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    edited October 2007
    I've added support for LuaPlus' wide character extension, which will be included in the next build. We're planning on publishing that on Monday.
  • Erik2vErik2v Join Date: 2007-10-03 Member: 62535Members
    Fixed. Great work!

    Erik
Sign In or Register to comment.