|
You last visited: Today at 13:18
Advertisement
Is delaying packets less than 1 second causing dc?
Discussion on Is delaying packets less than 1 second causing dc? within the SRO Private Server forum part of the Silkroad Online category.
09/12/2015, 01:28
|
#1
|
elite*gold: 0
Join Date: Aug 2015
Posts: 21
Received Thanks: 0
|
Is delaying packets less than 1 second causing dc?
hey epvps iam working on an event , i made delays between every packet "500" and it sometimes causing dc for the bot char , then i made delays 1000 it worked perfectly after testing many times but 1 sec is so sucks i need a faster responding is there any solution ?
|
|
|
09/12/2015, 02:25
|
#2
|
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
|
Which packets are you trying to send?
|
|
|
09/12/2015, 03:12
|
#3
|
elite*gold: 0
Join Date: Aug 2015
Posts: 21
Received Thanks: 0
|
they are alot dude,
like recalling , teleport , spawning mobs , notice , pm , global
yes all in one project .. the bot dc randomally in anyone of them not a certain one
btw iam testing on a hamachi server if that may effect on responding
|
|
|
09/12/2015, 03:28
|
#4
|
elite*gold: 15
Join Date: Jul 2014
Posts: 1,614
Received Thanks: 1,375
|
Are you running any packet filter that might interfere with your bot?
|
|
|
09/12/2015, 03:32
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 962
Received Thanks: 650
|
You must put a delay after these ones :
-recalluser (if the next packet will also affect the user teleported)
-movetouser
-totown (if the next packet will also affect the user teleported)
-gotown
because you can't send packets or apply actions to a character that hasn't spawned completely yet. If you send packets after self-teleport(movetouser/gotown) immediately without waiting for spawn confirmation, you'll get disconnected. But if you send a pm to a user while he is still teleporting, he will not get it, but none of you will disconnect.
And of course the hamachi affects the response time, but not that much, maybe couple extra milliseconds.
|
|
|
09/12/2015, 04:00
|
#6
|
elite*gold: 0
Join Date: Aug 2015
Posts: 21
Received Thanks: 0
|
Quote:
Originally Posted by TheWickedNite
Are you running any packet filter that might interfere with your bot?
|
May you explain your words or give me an example , sorry iam newbie
but i have a class for responding that sending packets but not preventing harm packets like exploits
Quote:
Originally Posted by magicanoo
You must put a delay after these ones :
-recalluser (if the next packet will also affect the user teleported)
-movetouser
-totown (if the next packet will also affect the user teleported)
-gotown
because you can't send packets or apply actions to a character that hasn't spawned completely yet. If you send packets after self-teleport(movetouser/gotown) immediately without waiting for spawn confirmation, you'll get disconnected. But if you send a pm to a user while he is still teleporting, he will not get it, but none of you will disconnect.
And of course the hamachi affects the response time, but not that much, maybe couple extra milliseconds.
|
I really know this, and i have 500 delay milliseconds after every packet not only teleporting i continued increasing that number till it became 1000 and it worked perfectly , but 1000 so sucks
btw yes iam using the confirmation packet 0x34b5
also i found this may you tell me what is that ?
Code:
((packet.Opcode == 0x3017) && (packet.ReadUInt8() == 2))
{
Packet packet2 = new Packet(0x34b6);
Security.Send(packet2);
}
|
|
|
09/12/2015, 05:02
|
#7
|
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
|
Quote:
Originally Posted by Athyx
May you explain your words or give me an example , sorry iam newbie
but i have a class for responding that sending packets but not preventing harm packets like exploits
I really know this, and i have 500 delay milliseconds after every packet not only teleporting i continued increasing that number till it became 1000 and it worked perfectly , but 1000 so sucks
btw yes iam using the confirmation packet 0x34b5
also i found this may you tell me what is that ?
Code:
((packet.Opcode == 0x3017) && (packet.ReadUInt8() == 2))
{
Packet packet2 = new Packet(0x34b6);
Security.Send(packet2);
}
|
#1 WicketNite doesn't code. Useless to ask.
#2 Why the **** would you intentionally delay EVERY *** **** packet?
#3. Send the spawn reply TWICE each after 500ms of warping/movetouser
#4 Don't use Thread.Sleep() | Task.Delay()... Anywhere for except selfmovement
#5 Packetfilters should not have ANY delay at all.
|
|
|
09/12/2015, 05:08
|
#8
|
elite*gold: 0
Join Date: Aug 2015
Posts: 21
Received Thanks: 0
|
Quote:
Originally Posted by Royalblade*
#1 WicketNite doesn't code. Useless to ask.
#2 Why the **** would you intentionally delay EVERY *** **** packet?
#3. Send the spawn reply TWICE each after 500ms of warping/movetouser
#4 Don't use Thread.Sleep() | Task.Delay()... Anywhere for except selfmovement
#5 Packetfilters should not have ANY delay at all.
|
#1 Fine lol
#2 Cuz without it bot char having dc
#3 Ok i will do this
#4 I don't use Thread.Sleep() , also delays are in selfmovement and recalls/movetousers only
#5 it doesn't have
|
|
|
09/13/2015, 13:35
|
#9
|
elite*gold: 0
Join Date: May 2013
Posts: 304
Received Thanks: 66
|
OP is an idiot, and he just got banned for it.
#case closed.
|
|
|
09/13/2015, 21:45
|
#10
|
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
|
Quote:
Originally Posted by Athyx
#2 Cuz without it bot char having dc
|
For future references. Add a sec delay @ handshake. That's enough already in case bots **** up.
|
|
|
09/14/2015, 11:34
|
#11
|
elite*gold: 0
Join Date: Jun 2013
Posts: 1,609
Received Thanks: 1,188
|
Wrong section
|
|
|
09/14/2015, 21:53
|
#12
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by Royalblade*
For future references. Add a sec delay @ handshake. That's enough already in case bots **** up.
|
I hate using this solution, doesn't feel right
|
|
|
09/14/2015, 22:38
|
#13
|
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
|
Quote:
Originally Posted by sarkoplata
I hate using this solution, doesn't feel right 
|
If you do it right, right from the start, you won't have to do dis ****.
|
|
|
09/15/2015, 02:28
|
#14
|
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
|
Quote:
Originally Posted by Royalblade*
If you do it right, right from the start, you won't have to do dis ****.
|
I'm working on it.
For now, the temporary solution seems OK.
Still in a debate with myself whether async is a must or not.
|
|
|
 |
Similar Threads
|
[Help] Scatter causing lag
07/09/2014 - CO2 Private Server - 7 Replies
I put my project to run on a dedicated server just for testing and called Some friends of mine, over the course of the tests I find that somehow when they went hunting with his archers, while they used the scatter in monsters, your ping was increased and reached a 18k.
What could be wrong?
|
Delaying tasks
12/09/2013 - CO2 Private Server - 7 Replies
Well, sorry for post this here, but programming section is almost only deutsch.
I was tired of study and started programming a bit, and thought that might be a good idea to create this class (i know that something like this exists in project x, don't know exactly how did he code it)
this one is using two AutoResetEvents, one to notify when a new action was added and another one to force it's WaitOne() timeout, so basically the thread will work only when an action must be executed, i think...
|
Delaying some codes
06/24/2013 - CO2 Private Server - 14 Replies
Hello everybody here
I want to ask about the best code for delaying some codes
I am begginer and I tried some codes like:
System.Threading.Thread.Sleep(4000);
And like:
int Z = 0;
DateTime Time = new DateTime();
Time = DateTime.Now;
while (Z == 0)
{
|
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first
explaining what is packets , and explaining a packet with details and everything
http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533
i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source
so yeah the following packets is ripped of trinity base source
right now im just providing the packets structure...
|
What do you think is causing the problem?
07/06/2012 - CO2 Private Server - 7 Replies
http://oi45.tinypic.com/2r23sat.jpg
Well, when I click on Details (on the chatbox), instead of showing my friends details, it shows mine. Any idea how will I fix it?
-If this was answered before pardon me, someone could gimme the link to it?
|
All times are GMT +1. The time now is 13:22.
|
|