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 |
|
|
|
| 25 Jun 2013 06:03 PM |
Yes.
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 6941 |
|
|
| 25 Jun 2013 06:48 PM |
string.rep("a", 4500000)
cнecĸмαтe, ɴooвѕ. |
|
|
| Report Abuse |
|
|
1waffle1
|
  |
| Joined: 16 Oct 2007 |
| Total Posts: 16381 |
|
|
| 25 Jun 2013 07:18 PM |
| It's 4,499,999 characters. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 19 Dec 2009 |
| Total Posts: 1208 |
|
|
| 25 Jun 2013 08:26 PM |
good god waffle
why are you so condescending |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2013 08:28 PM |
@1waffle1 :( empathetic_self_esteem--;
The Unwise Wizard of Scripters has spoken. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|