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 ?
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
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.
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
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
[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?