Strings now display "," in watch window?

Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
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

asrifle.gif

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer Join Date: 2002-03-15 Member: 318Posts: 1,737 admin
    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.
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
    QUOTE(Max @ Oct 3 2007, 10:08 PM) »
    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.



    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 Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer Join Date: 2002-03-15 Member: 318Posts: 1,737 admin
    The next build -- which will be published later today or tomorrow -- should address this problem.
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
    QUOTE(Max @ Oct 4 2007, 12:32 AM) »
    The next build -- which will be published later today or tomorrow -- should address this problem.


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

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

    CODE
    lua_pushlstring(L"Test", 8);
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
    QUOTE(Max @ Oct 4 2007, 11:39 PM) »
    How are you storing the strings? Something like this?

    CODE
    lua_pushlstring(L"Test", 8);


    Looks like we use:

    typedef wchar_t lua_WChar

    lua_pushwstring( lua_State *, const lua_WChar* )
  • Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
    QUOTE(Erik2v @ Oct 5 2007, 04:44 PM) »
    Looks like we use:

    typedef wchar_t lua_WChar

    lua_pushwstring( lua_State *, const lua_WChar* )


    Our game is compiler setting :

    Character Set: Use Multi-Byte Character Set
  • MaxMax Technical Director, Unknown Worlds Entertainment Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer Join Date: 2002-03-15 Member: 318Posts: 1,737 admin
    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.
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • Erik2vErik2v Members Join Date: 2007-10-03 Member: 62535Posts: 7
    Fixed. Great work!

    Erik
Sign In or Register to comment.