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 » Game Creation and Development » Scripters
Home Search
 

Re: I'm wondering...

Previous Thread :: Next Thread 
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 06:01 PM
Is there a limit to the number of characters that can be saved in a string at a time, via data persistance? Because I found a way to compress a tower's datacost from about 9910 data units in data cost, to about 18 data units, by compressing everything into a string. So instead of SaveInstance, I compressed everething, used base64, and did SaveString.

But I am wondering if there is a maximum number of characters that can be saved in savestring.

Emerson wrote an essay on that
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
25 Jun 2013 06:03 PM
Yes.

The Unwise Wizard of Scripters has spoken.
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 06:07 PM
What is the limit to it though, 4,500,000 characters?

Emerson wrote an essay on that
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
25 Jun 2013 06:10 PM
Probably 45,000,000,000

(get it?)

Honestly though, jokes aside, I don't know.

The Unwise Wizard of Scripters has spoken.
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 06:12 PM
What I'm talking about, is aside from dataComplexityLimit, is there a limit less than 45,000 units that will cut off my string?

Emerson wrote an essay on that
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
25 Jun 2013 06:17 PM
"Strings cost their length divided by 100 in data complexity units."

Well, if you had saved other data, your string might not save. It probably doesn't bother writing any of it if it's going to hit the ceiling.

The Unwise Wizard of Scripters has spoken.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
25 Jun 2013 06:27 PM
I looked on the wiki, and from the information I've gathered there - the maximum of 45,000 units; assuming you're only saving one string would mean you can save up to 4,500,000 characters as the unit cost of a string is the length divided by 100.

That would be, if you're only saving that one string.
Report Abuse
Parthax is not online. Parthax
Joined: 27 Apr 2011
Total Posts: 6941
25 Jun 2013 06:48 PM
string.rep("a", 4500000)


cнecĸмαтe, ɴooвѕ.
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
25 Jun 2013 07:18 PM
It's 4,499,999 characters.
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 07:45 PM
Never knew there was a string.rep.
Cool, so I can store about 3 copies of ruined over data persistance :D

Emerson wrote an essay on that
Report Abuse
1waffle1 is online. 1waffle1
Joined: 16 Oct 2007
Total Posts: 16381
25 Jun 2013 08:05 PM
"Never knew there was a string.rep."

    string.rep=function(str,n)
        local r=''
        if n<=1 then return str end
        for i=1,n do r=r..str end
        return r
    end

you could have just made your own if you didn't know it existed.
Report Abuse
HaxHelper is not online. HaxHelper
Joined: 19 Dec 2009
Total Posts: 1208
25 Jun 2013 08:26 PM
good god waffle

why are you so condescending
Report Abuse
awsumpwner27 is not online. awsumpwner27
Joined: 03 Sep 2011
Total Posts: 4389
25 Jun 2013 08:28 PM
@1waffle1
:(
empathetic_self_esteem--;

The Unwise Wizard of Scripters has spoken.
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 09:01 PM
I just realized, you could store about 2.07 copies of Ruined With my string conversion script.

Emerson wrote an essay on that
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
25 Jun 2013 09:10 PM
When I'm finished with this dataPersistance Instance Compressor, I wil post it here.

Emerson wrote an essay on that
Report Abuse
databrain is not online. databrain
Joined: 01 Jan 2013
Total Posts: 3342
26 Jun 2013 09:35 AM
Wait, nope, that's actually 4 copies of ruined.
Interesting.

Emerson wrote an essay on that
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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