Null Characters Break LuaMsg

Null Characters Break LuaMsg

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Null Characters Break LuaMsg

Post by Evil4Zerggin »

Already reported to Mantis (http://spring.clan-sy.com/mantis/view.php?id=1269) but posted here for reference. Basically any LuaMsg including a null character will be received with garbage after the null character. (Null terminates strings in C/C++ but not in Lua.) This poses problems for transmission of binary data.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Null Characters Break LuaMsg

Post by lurker »

How much binary data? The base64 api lua is nice and convenient. Unless this is part of your plan for reducing the load on the camera widget.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: Null Characters Break LuaMsg

Post by Evil4Zerggin »

It's the camera widget. I think I'm going to end up writing custom pack/unpacks.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Null Characters Break LuaMsg

Post by lurker »

For anyone else reading, this did get fixed.
Post Reply

Return to “Help & Bugs”