|
| 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 |
|
|
|
| 26 Nov 2012 11:24 PM |
| Is that a serious error? Does it actually say that if you have 200+ locals? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Nov 2012 11:47 PM |
>running scripts from the backpack
ಠ_ಠ |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 27 Nov 2012 12:11 AM |
| Everyone knows you run scripts from the starterpack |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2012 12:44 AM |
| ... Why not run localscripts from the backpack? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 27 Nov 2012 01:27 AM |
| But that's for Guis, not standalone scripts. wat do |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 27 Nov 2012 11:12 AM |
| wrap them all in a big table >:D |
|
|
| Report Abuse |
|
|
| |
|