Forum

> > CS2D > Scripts > Strange Lua error
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Strange Lua error

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Strange Lua error

Q-Q
User Off Offline

Zitieren
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)
--------------------------------------------------

alt Re: Strange Lua error

Lee
Moderator Off Offline

Zitieren
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?

alt Re: Strange Lua error

Q-Q
User Off Offline

Zitieren
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

alt Re: Strange Lua error

Lee
Moderator Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht