cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
We can't save embedded zeros to DataStores, in StringValues, as Names of objects (although this is a good thing to block), and so on.
Instead of treating strings in Lua as "NUL terminated strings" on the C++-side, can you treat them as actual Lua strings and use the length the compiler gives to Lua strings pleaseeeee. |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
Support need this for advanced object data serialization. |
|
|
Support for the Scripters Cause. :P
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
comonkeyJoin Date: 2010-01-03 Post Count: 272 |
support, I think... |
|
|
wtf did u just say now
cackle |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
It's important that you support. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
If you don't support you will die. If you do support you still will die, but you won't feel good when you do so support. |
|
|
skullstenJoin Date: 2012-02-03 Post Count: 2522 |
uhh ok u guys know wat ur doing |
|
man1912Join Date: 2011-08-16 Post Count: 8798 |
Scriptable
No support |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
man1912 do you even understand the problem? |
|
|
@man, I've got this feeling that you have no idea how to script. |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
Notice me senpai. |
|
man1912Join Date: 2011-08-16 Post Count: 8798 |
furry |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
I am a furry. And it keeps me warm, thank you very much. |
|
|
sorry idk what this means |
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
You don't JSONencode strings, and if you are implying we use a giant array of numbers then that severely restricts how much data we actually have, by more than 5x. |
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
support |
|
eLunateJoin Date: 2014-07-29 Post Count: 13268 |
I love how he says to JSONEncode a string.
"Hey guys I have a genius idea let's encode a string into a string" |
|
|
I thought they were already treated as Lua strings? I could have sworn I've used a null character before as a delimiter. |
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
In Lua they are treated normally (c-sided), but when passing strings with NUL characters in them (or using them) in Roblox-specific things (mostly c++-sided), Roblox just reads the string up to the first NUL instead of using the length (which is known beforehand). |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Here easy way to replicate it:
local strVal = Instance.new("StringValue");
local str = "hello\0hello"; -- expected length: 11 (stored length: 12)
strVal.Text = str; -- expecting to store 11 characters (12 in reality)
print(#strVal.Text); -- got 5 (6 in reality)
|
|
Klink45Join Date: 2011-06-06 Post Count: 26054 |
YES.
u sicko! |
|