Forum

> > CS2D > Scripts > Strange Lua error
Forums overviewCS2D overview Scripts overviewLog in to reply

English Strange Lua error

5 replies
To the start Previous 1 Next To the start

moved Strange Lua error

Q-Q
User Off Offline

Quote
A very strange error in console appears when i am using the command sv_name the map name itselfs change but this is strange
this is the error:
Btw: this is not from other lua scripts!

LUA ERROR: sys/lua/../../../../addons/_functions.lua:62: malformed pattern (missing ']')
file: sys/lua/../../../../addons/_functions.lua
line num: 62
error: malformed pattern (missing ']')
code: self:gsub(pattern, function(c) fields[#fields+1] = c end)
--------------------------------------------------

old Re: Strange Lua error

Lee
Moderator Off Offline

Quote
You're using a custom script that failed to sanitize the input and treats everything as a raw pattern. Did you enter something with a left bracket in?

old Re: Strange Lua error

Q-Q
User Off Offline

Quote
I dont think so i am almost sure that this isnt done by lua because i had this problem to without any lua in my server or do you mean something else because i dont know much about lua scripting the script isnt from me btw

old Re: Strange Lua error

Lee
Moderator Off Offline

Quote
It's mostly the

1
2
3
4
5
LUA ERROR: sys/lua/../../../../addons/_functions.lua:62: malformed pattern (missing ']')
file: sys/lua/../../../../addons/_functions.lua
line num: 62
error: malformed pattern (missing ']')
code: self:gsub(pattern, function(c) fields[#fields+1] = c end)

that means that it must be some Lua code. The problem here however is that your code is not in sys/lua/*.lua, instead, it's 2 directories above your CS2D folder, where you should find an addons folder with a _functions.lua file. If you can, post its contents to http://gist.github.com/ and give us a link.

old Re: Strange Lua error

Q-Q
User Off Offline

Quote
I have searched for it and i just couldnt find any other suguesstions?
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview