SphereCommunity
SphereServer flood control - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: SphereServer flood control (/Thread-SphereServer-flood-control)

Pages: 1 2 3


SphereServer flood control - massis87 - 06-20-2017 10:57 PM

i've notice with 3rd party tools like uosteam, if anyone do a macro without time delay for example .hungry or "bank" etc, the client frooze, and the server too.
i ve try to put the flood flag in .ini but dont works. i try to put neg features but dont work. i try a lot of things but nothing work.
how can i block this spam on console and freeze in game for all?
all versions from 56b to last nightly afflict that.
and i think is impossible block every commands or put a manual delay on that.


RE: SphereServer flood control - Criminal - 06-20-2017 11:13 PM

// Function to call if client is executing a command to override the default.
//CommandTrigger=f_oncommand


RE: SphereServer flood control - massis87 - 06-20-2017 11:17 PM

is disabled like that on my .ini. have i to enable it? and add a custom funtion? for example?


RE: SphereServer flood control - Criminal - 06-21-2017 12:10 AM

enable it and write a function like
[function f_oncommand]
if findid i command timer
say you need wait
else
newitem ...
endif


RE: SphereServer flood control - massis87 - 06-21-2017 03:42 PM

dont work.
is an intrisc problem on sphere.
or of packets.
steam try always to send the maximun loops he can.
i cant queue this from script. i've to queue as packets.


RE: SphereServer flood control - rastrero - 06-21-2017 11:59 PM

(06-21-2017 12:10 AM)Criminal Wrote:  enable it and write a function like
[function f_oncommand]
if findid i command timer
say you need wait
else
newitem ...
endif

if you use this, it will freeze the server even more


RE: SphereServer flood control - massis87 - 06-22-2017 02:05 AM

yes i see that.
im waiting for coruja.

i have a news.
remove from logmask in sphere.ini this flag:
// LOGM_PLAYER_SPEAK 001000 // all that the players say
nice for help u guys ;|


@coruja can u add a flood control on the console for dont spam the same message?
and a flood control for player for dont show the same message

i've see that, if u go all enabled on logmask all ppl lag becouse that macro spam on player and console, if u remove the logmask for players lag only the single player with that macro.


RE: SphereServer flood control - rastrero - 06-22-2017 02:51 AM

I think u can do this until this is fixed.

Code:
[function f_oncommand]
if <tag0.antiflood>
      if <tag0.antiflood>>=5
               disconnect
      else
              tag.antiflood +=1
      endif
else
      tag.antiflood=1
      newitem i_antiflood
      equip <new>
endif


[itemdef i_antiflood]
type=memo

on=@equip
timer=1

on=@timer
if <cont.tag0.antiflood><=4
    cont.tag.antiflood
    remove
endif
return 1


with this script if someone cast more than 5 commands within 1 sec, server will disconnect him.


RE: SphereServer flood control - massis87 - 06-22-2017 08:07 AM

isnt the right way.
dont solve the problem.
is a packet problem


RE: SphereServer flood control - Criminal - 06-22-2017 08:20 AM

Not really sure how it work, I was testing in my shard and can't get problem flooding with commands