[Help]Attack crashes client

06/27/2010 15:59 ryuchetval#1
Hey guys I was wondering how can I fix the fact that when you attack with a multiple targets skill and the number of targets is too big the client will close down (5165 flatfile source)...is there any fix to this? (not by reducing the number of monsters?)
thanks :)
06/27/2010 16:02 Korvacs#2
You would need to implement a check to see how many monsters your attacking, the reason the client struggles is because you send a packet which is larger than the buffer on the client. If the number is greater than a certain amount then send 2 smaller attack packets, one containing half of the monsters, and the other containing the other half. It should still seem fairly seamless client side.

How many monsters are you trying to attack?
06/27/2010 16:21 ryuchetval#3
Quote:
Originally Posted by Korvacs View Post
You would need to implement a check to see how many monsters your attacking, the reason the client struggles is because you send a packet which is larger than the buffer on the client. If the number is greater than a certain amount then send 2 smaller attack packets, one containing half of the monsters, and the other containing the other half. It should still seem fairly seamless client side.

How many monsters are you trying to attack?
hmm well after 100 monsters at a time i think it crashes i didn't count the monsters o.O i'm not insane
06/27/2010 16:46 Korvacs#4
Tell your attack script to output the number of targets being attacked to the console, and then you will know exactly how many it is.