generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Suggestions & Ideas
Home Search
 

Re: Treat Lua strings as Lua strings

Previous Thread :: Next Thread 
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2015 03:57 PM
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.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Nov 2015 04:00 PM
Support need this for advanced object data serialization.
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
09 Nov 2015 04:04 PM
Support for the Scripters Cause. :P

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
comonkey is not online. comonkey
Joined: 03 Jan 2010
Total Posts: 272
09 Nov 2015 04:20 PM
support, I think...
Report Abuse
ChubbyBunny123 is not online. ChubbyBunny123
Joined: 26 Jun 2011
Total Posts: 11033
09 Nov 2015 04:26 PM
wtf did u just say now



cackle
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Nov 2015 04:44 PM
It's important that you support.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2015 04:45 PM
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.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
09 Nov 2015 04:49 PM
Yup.
Report Abuse
skullsten is not online. skullsten
Joined: 03 Feb 2012
Total Posts: 2522
09 Nov 2015 05:17 PM
uhh ok u guys know wat ur doing
Report Abuse
man1912 is online. man1912
Joined: 16 Aug 2011
Total Posts: 8798
09 Nov 2015 05:20 PM
Scriptable

No support
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Nov 2015 05:28 PM
man1912 do you even understand the problem?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
09 Nov 2015 05:39 PM
@man, I've got this feeling that you have no idea how to script.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
10 Nov 2015 09:56 AM
Notice me senpai.
Report Abuse
man1912 is online. man1912
Joined: 16 Aug 2011
Total Posts: 8798
10 Nov 2015 09:58 AM
furry
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
10 Nov 2015 09:59 AM
I am a furry. And it keeps me warm, thank you very much.
Report Abuse
SimplyRemove is not online. SimplyRemove
Joined: 24 Nov 2012
Total Posts: 4387
10 Nov 2015 11:27 AM
sorry idk what this means
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
10 Nov 2015 11:31 AM
Just jsonencode it.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 12:15 PM
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.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
10 Nov 2015 01:21 PM
support
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
10 Nov 2015 05:53 PM
I love how he says to JSONEncode a string.

"Hey guys I have a genius idea let's encode a string into a string"
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
10 Nov 2015 06:23 PM
I thought they were already treated as Lua strings? I could have sworn I've used a null character before as a delimiter.
Report Abuse
ThrownException is not online. ThrownException
Joined: 17 Apr 2009
Total Posts: 1945
10 Nov 2015 06:26 PM
support.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 06:28 PM
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).
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2015 06:32 PM
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)
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
10 Nov 2015 06:33 PM
YES.

u sicko!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image