• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spell Help

Dkadsfe

Member
Joined
Apr 1, 2016
Messages
280
Reaction score
22
Code:
[24/05/2016 15:03:42] [Error - LuaScriptInterface::loadFile] data/spells/scripts/Prestige/P200.lua:362: function at line 331 has more than 60 upvalues
[24/05/2016 15:03:42] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/Prestige/P200.lua)
[24/05/2016 15:03:42] data/spells/scripts/Prestige/P200.lua:362: function at line 331 has more than 60 upvalues

The lua was too much so I put it on pastebin
http://pastebin.com/Y7UpRG8V
 
[url]http://pastebin.com/fbzJA8yA[/URL]
try this, tell me if u get an error
just a note, that script is fucking horrible and bloated like fuck, there are MUCH more efficient ways to do stuff like this, with less code also, but it would require you to create it manually without spellcreator..

your error means theres too many upvalues the function has access too or something similar
for example if you have at start of file
local 1 = 0
local 2 = 0
...
local 60 = 0
it will work, but adding
local 61 = 0
will mean you have 61 upvalues, and you can only have 60 max

however i think you will still get the error, and the only solution is to optimize the code so there isnt that many variables

in your spell you have _36_ parts of the spell, each of which use 2 unique values, cid, var and startPos, so the as far as i can see the main function has 75 upvalues, so youd have to slim it down to 60
 
Last edited:
Back
Top