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 » Scripting Helpers
Home Search
 

Re: Max length when setting Script.Source

Previous Thread :: Next Thread 
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 08:54 AM
I'm trying to dump a very large string to a script however I keep getting the "String too long" error when setting the source for that script.

I am able to sub it and I tried gradually adding the string by subbing it in certain places with a loop and adding it like that however there is no way to add to the source so I am still stuck with it becoming too big.

How big is the max limit when setting the source and can you guys think of any better ways around this?
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 08:54 AM
Test it out using the sparkly TestService

it's so awesome... and sparkly, don't forget sparkly
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 08:55 AM
You can't set source?
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
12 Aug 2013 08:55 AM
I think it holds as much as a String Value, so 200,000 characters (maybe).
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 08:56 AM
keep adding a character to it until you get an error

WITH THE TEST SERVICE THAT RUNS SCRIPTS WITH THE SAME IDENTITY OF WHATEVER IDENTITY CALLED IT

HAHAHAHA IM NOT CRAZY
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 08:56 AM
@Blocco could you elaborate?

@bohdan77 You can when you use a plugin.
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 08:58 AM
Oh, Right. Should have clarified on that.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 08:59 AM
    Class TestService : Instance
        Property bool TestService.AutoRuns
        Property string TestService.Description
        Property int TestService.ErrorCount [readonly]
        Property bool TestService.Is30FpsThrottleEnabled
        Property bool TestService.IsPhysicsEnvironmentalThrottled
        Property bool TestService.IsSleepAllowed
        Property int TestService.NumberOfPlayers
        Property int TestService.TestCount [readonly]
        Property double TestService.Timeout
        Property int TestService.WarnCount [readonly]
        Function void TestService:Check(bool condition, string description, Instance source = nil, int line = 0)
        Function void TestService:Checkpoint(string text, Instance source = nil, int line = 0)
        Function void TestService:DoCommand(string name) [LocalUserSecurity]
        Function void TestService:Done()
        Function void TestService:Error(string description, Instance source = nil, int line = 0)
        Function void TestService:Fail(string description, Instance source = nil, int line = 0)
        Function Array TestService:GetCommandNames() [LocalUserSecurity]
        Function bool TestService:IsCommandChecked(string name) [LocalUserSecurity]
        Function bool TestService:IsCommandEnabled(string name) [LocalUserSecurity]
        Function void TestService:Message(string text, Instance source = nil, int line = 0)
        Function void TestService:Require(bool condition, string description, Instance source = nil, int line = 0)
        Function void TestService:Warn(bool condition, string description, Instance source = nil, int line = 0)
        YieldFunction void TestService:Run() [LocalUserSecurity]
        Event TestService.ServerCollectConditionalResult(bool condition, string text, Instance script, int line)
        Event TestService.ServerCollectResult(string text, Instance script, int line)


It's practically calling you.... or maybe that's just the voices in my head going off.... IM NOT CRAZY HAHAHAHAHA
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:02 AM
@Blocco

That doesn't really help. :P
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 09:05 AM
http://wiki.roblox.com/index.php/RBX.lua.TestService_(Object)
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 09:05 AM
Put le script in le TestService and keep adding a character to the script until you get some kind of sign that something is wrong
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:08 AM
More more interested in how to go past the max length if possible.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 09:09 AM
load many concatenated strings
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:09 AM
Still errors.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 09:10 AM
You're lucky

I didn't get an error

For me studio just crashed O_e
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 09:11 AM
lol'd


and broski, compression.
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:12 AM
This is what the string looks like.

http://prntscr.com/1kqk35

I'm not sure how much more compressed you can get.
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 09:14 AM
compress it even more11111
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:15 AM
It still wont solve the problem.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 09:16 AM
oh great now i'm singing "new eyed devvy"
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Aug 2013 09:17 AM
modularize and split up
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 09:26 AM
But that doesn't solve anything.
Report Abuse
magnalite is not online. magnalite
Joined: 18 Oct 2009
Total Posts: 2467
12 Aug 2013 11:43 AM
Would concatenating multiple stringvalues into a loadstring work?
Report Abuse
bohdan77 is not online. bohdan77
Joined: 10 Aug 2008
Total Posts: 7944
12 Aug 2013 11:44 AM
Try it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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