Jump to content

Secure your race server from "Traveling Error"


Sora

Recommended Posts

hey guys i had this problem many times but without reason , i see nothing in .log file

so i added this simple code to admin resource :D

first go to admin resource /resource/[admin]/admin/server/

then open the file admin_server.lua

and go to the line 1591(the last line)

under this line past this :

-- Security 
addEventHandler("onMapStarting",getRootElement(), 
function () 
if ( isObjectInACLGroup ( "resource.mapmanager", aclGetGroup ( "Moderator" ) ) ) then return end 
aclGroupAddObject (aclGetGroup("Moderator"), "resource.mapmanager") 
end) 
-- Security 

(( you should restart admin resource after this ))

its works good ,so enjoy with your security :wink:

Edited by Guest
Link to comment

Sorry but this topic have no benefit at all.

mapmanager is added by default in Group 'Moderator'

i don't see a point of adding it every 50 ms.

No one will have this problem, unless you have abuse/bad admins in your server that messed with ACL Manager.

Link to comment
Sorry but this topic have no benefit at all.

mapmanager is added by default in Group 'Moderator'

i don't see a point of adding it every 50 ms.

No one will have this problem, unless you have abuse/bad admins in your server that messed with ACL Manager.

it's not add it every 50 ms , it's checking every 50 ms and if it's wasn't in the group it would be added , so that the best way.

i don't see any problems to add this just for take more security , any way i just trying to give some help. :wink:

Link to comment
  • 2 weeks later...
Just a lag to the server. Server side timer doing a check is bound to :o up the server.

You should do this check whenever the race state changes from x to x

not problem ^^

-- Security 
addEventHandler("onMapStarting",getRootElement(), 
function () 
if ( isObjectInACLGroup ( "resource.mapmanager", aclGetGroup ( "Moderator" ) ) ) then return end 
aclGroupAddObject (aclGetGroup("Moderator"), "resource.mapmanager") 
end) 
-- Security 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...