|
| 26 Nov 2013 06:23 PM |
Hey guys,
What is the limit for the length of a string? I heard it was 200k, is that correct? I would preferably like to store 500k characters in a string, but I don't know what the limit is. I cannot give context or anything, sorry. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:28 PM |
for i = 1,200001 do strin = strin..i wait() end
print(string.len(strin)) |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:30 PM |
what wouldnt work right.
strin = ""
for i = 1,200001 do strin = strin.."1" wait() end
print(string.len(strin))
|
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:31 PM |
| will take aprox 2000001 * .03 seconds to load. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:33 PM |
| so about 6000 seconds or 100 minutes so sit back and watch a movie. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 06:36 PM |
Or just not do that and test it yourself:
local x=Intstance.new("StringValue") x.Value = "a":rep(1e500) ^ If that works, add one to the 500 |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 06:45 PM |
| reported for spamming this thread |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:46 PM |
<.>
Guess we aint cool den. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 06:55 PM |
| Thats rude, what has roblox become? I might have spammed unintentionally, however your rudeness scares me and just shows why people that I looked up to or were friends with in 09' and 2010 saw in the roblox future. This however just shows that people only care for themselves. I was trying to be informative, and you go act out of selfishness and try to hurt my feelings, and even if unintentional you knew what you were typing was in a rude way to reply to a calm informative person. I mean, I may not be the best writer but I hope you take something out of what I have proclaimed in this post. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 06:57 PM |
You did not spam unintentionally, otherwise you are high and can't control your actions of "500 lines" of copying plus pasting
If you are offended by "Good for you" then you need to grow up |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 07:01 PM |
| I mean I'm 13, and your still being rude. And that was directly copied from my output. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 07:04 PM |
Why couldn't you just say "500 lines of 'Loading'"
And if you were 13 you shouldn't be offended by "Good for you" |
|
|
| Report Abuse |
|
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 26 Nov 2013 07:10 PM |
| cnt stop being aggressive he's just going to keep arguing |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 07:10 PM |
| I'm not being aggressive... |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 26 Nov 2013 07:12 PM |
| take into consideration that most people asking for help here are kids, kids with emotional problems and a really vague sense of how the world works. being too assertive to them can make them uncomfortable, so just try to be less firm with what you say. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 26 Nov 2013 07:15 PM |
| I mean I'm not a kid anymore, but I don't like when people act rudely against me. Even if you don't see it as rude, I saw that way. |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 07:16 PM |
| Thanks for the help guys; CNT, leave him alone. He was trying at least. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 26 Nov 2013 07:22 PM |
| I was able to make a string with 1 million characters within it. However, I am using an extremely fast computer, probably stronger than a ROBLOX server (8-core, 4ghz, 16gb RAM). I am going to test for 10 million now! |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2013 07:24 PM |
| Just did 100 million in under a second, and am letting it try to calculate 1 billion. I think Roblox is frozen |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 26 Nov 2013 07:25 PM |
| ram and the gpu dont do wack when roblox loads something, only the cpu does. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 26 Nov 2013 07:29 PM |
"I was able to make a string with 1 million characters within it. However, I am using an extremely fast computer, probably stronger than a ROBLOX server (8-core, 4ghz, 16gb RAM). I am going to test for 10 million now!" Unless you are using print, stringvalues have a limit |
|
|
| Report Abuse |
|
|