The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SphereServer flood control
Author Message
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #1
SphereServer flood control
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.

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 06-20-2017 10:59 PM by massis87.)
06-20-2017 10:57 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #2
RE: SphereServer flood control
// Function to call if client is executing a command to override the default.
//CommandTrigger=f_oncommand

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
06-20-2017 11:13 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #3
RE: SphereServer flood control
is disabled like that on my .ini. have i to enable it? and add a custom funtion? for example?

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 06-20-2017 11:23 PM by massis87.)
06-20-2017 11:17 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #4
RE: SphereServer flood control
enable it and write a function like
[function f_oncommand]
if findid i command timer
say you need wait
else
newitem ...
endif

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
06-21-2017 12:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #5
RE: SphereServer flood control
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.

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 06-21-2017 03:43 PM by massis87.)
06-21-2017 03:42 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #6
RE: SphereServer flood control
(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
06-21-2017 11:59 PM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #7
RE: SphereServer flood control
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.

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 06-22-2017 02:48 AM by massis87.)
06-22-2017 02:05 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #8
RE: SphereServer flood control
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.
(This post was last modified: 06-22-2017 02:56 AM by rastrero.)
06-22-2017 02:51 AM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #9
RE: SphereServer flood control
isnt the right way.
dont solve the problem.
is a packet problem

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 06-22-2017 08:17 AM by massis87.)
06-22-2017 08:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #10
RE: SphereServer flood control
Not really sure how it work, I was testing in my shard and can't get problem flooding with commands

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
06-22-2017 08:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)