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: "main function has more than 200 local variables" --WAT

Previous Thread :: Next Thread 
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Nov 2012 11:21 PM
That's not an error!
I'm just making the script less computationally expensive...
I have 205 locals :c
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
26 Nov 2012 11:24 PM
Is that a serious error? Does it actually say that if you have 200+ locals?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
26 Nov 2012 11:27 PM
Here be text from the roblox output itself:

> 21:01:55 - Running Script "Players.Player1.Backpack.Client"
21:01:55 - Players.Player1.Backpack.Client:1181: main function has more than 200 local variables
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
26 Nov 2012 11:47 PM
>running scripts from the backpack

ಠ_ಠ
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
27 Nov 2012 12:11 AM
Everyone knows you run scripts from the starterpack
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
27 Nov 2012 12:44 AM
... Why not run localscripts from the backpack?
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
27 Nov 2012 12:53 AM
Because that's a horribly nasty place to put them. Backpack is for tools, not standalone scripts. Use the PlayerGui.
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
27 Nov 2012 01:27 AM
But that's for Guis, not standalone scripts. wat do
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
27 Nov 2012 01:28 AM
Just create an intvalue called 'leaderstats' and put the scripts in it. It won't work, but let's pretend it will. After all, it's ROBLOX. Use your imagination!
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
27 Nov 2012 01:58 AM
I typed out a cool story, but roblox said error, and I don't feel like typing it again. Basically what I said was: The script is in the backpack because it was in a hopperbin but now I use GetMouse, otherstuff, blahblahblah, look what I came up with I am smart, The End.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
27 Nov 2012 02:33 AM
There's a limit?

Woah.
Report Abuse
gametastic100 is not online. gametastic100
Joined: 15 Jun 2011
Total Posts: 1286
27 Nov 2012 04:30 AM
ಠ_ಠ
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
27 Nov 2012 08:24 AM
This is an integrated Lua limit. In the luaconf.h file of the language you can actually see the variable named LUAI_MAXVARS which declares them to limit to 200.

In the same file, Lua also has a variable for upvalues (LUAI_MAXUPVALUES) - which is 60.

There are a few others too, but what these limits must be derived from is the max stack size, which is found in llimits.h (default 250)
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
27 Nov 2012 08:29 AM
Wow

That's not cool.

Why is there a limit and why is it so small?
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
27 Nov 2012 08:32 AM
just put a rocket launcher in the game instead; its more fun
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
27 Nov 2012 11:12 AM
wrap them all in a big table >:D
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
27 Nov 2012 11:57 AM
=my solution
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