Instale o Steam
iniciar sessão
|
idioma
简体中文 (Chinês simplificado)
繁體中文 (Chinês tradicional)
日本語 (Japonês)
한국어 (Coreano)
ไทย (Tailandês)
Български (Búlgaro)
Čeština (Tcheco)
Dansk (Dinamarquês)
Deutsch (Alemão)
English (Inglês)
Español-España (Espanhol — Espanha)
Español-Latinoamérica (Espanhol — América Latina)
Ελληνικά (Grego)
Français (Francês)
Italiano (Italiano)
Bahasa Indonesia (Indonésio)
Magyar (Húngaro)
Nederlands (Holandês)
Norsk (Norueguês)
Polski (Polonês)
Português (Portugal)
Română (Romeno)
Русский (Russo)
Suomi (Finlandês)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Relatar um problema com a tradução
That tonumber() is not needed as Playerdata.skill is always a number as tonumber gets applied on it when the value gets fetched in PlayerRanking.lua .
As mentioned at the wiki page users with permission to use sh_ignorestatscheck will be ignored by the check. So if you want admins to be checked you have to exlude the given permission.
Invalid data implies a LuaJIT compilation error.
I hope this answers your questions.
I changed Hiveteamrestriction Line 185 to:
local Skill = tonumber(Playerdata.skill)
And then I found out that I needed to comment out something more for the mod to kick me from the server.
I think it was "not Shine:IsValidClient( Client ) or Shine:HasAccess( Client, "sh_ignorestatscheck" ) " part that prevented me from getting kicked.
If admins are automatically sh_ignorestatscheck:ed and the server remembers this so removing yourself from the admin-group does not let you try it on yourself.. then mystery solved. Otherwise one of those checks could be at fault.
My copy of the mod now always give "Invalid data" error when activated on the server and I got stuck right when I was about to check which test let me stay on the server... :-(
Since I got the type-error on line 186 only when someone else joined the server, it looks like admin-power...
I didn't think about checking what excactly Playerdata.skill contained. Maybe tonumber() returns 0 for an empty string?
So you open the flood gate for cheaters.
I would suggest to use the normal development process of ns2 mods (Launchpad etc.) to play around with code and then release it as own mod if you want to use it at your server.
I just realized that excluding lua files in ConsistencyConfig.json lets me tinker with the code to try out stuff.. No?
Make sure that the Min and Max are numbers.
Details can be found at http://json.org/
[10:53:14]Error: lua/shine/extensions/hiveteamrestriction/server.lua:186: attempt to compare string with number.
stack traceback:
lua/shine/core/shared/hook.lua:67: in function '__lt'
lua/shine/extensions/hiveteamrestriction/server.lua:186: in function 'CheckValues'
I guess values read from config file are all strings..?
Non of the code is getting run or load in the menu or loading screen