I have a problem spawning entities

07/25/2011 23:32 Mr_PoP#1
what is The problem
Heroes can be Spawned at the 1st time i set it's locations in but if i moved +18 Coords and tried to re-spawn again it doesn't spawn while the packet being send to all the Entities with the right location .

what am trying to do is:
getting all the NearByEntities and re-spawn it between range 18..

what's happening:
is when i set the location for the 1st time i will be able to spawn and re-spawn within 18 coords where i located , if i moved out my location +18 coords am still able to send the spawn packet to the right Entities but it doesn't spawn ("Appear").

Basically
if I move out of the spawn range, the spawn packet is not sent,but when moving back into spawn range the packet IS sent ,yet the player does not appear!

my question is!
is there any stages am missing, or is there any behavior I need to be aware of?

because that's seem odd lol!

thanks i appreciate your help :)
07/26/2011 00:59 pro4never#2
Double check two things.

1: Your screen code is running correctly. You need to be checking for locals and spawning (if new) and despawning (if out of range) every movement you make. This must occur AFTER you modify your coords for them to spawn correctly and within 18 dist. 18 is the despawn distance
2: Make sure you are sending the jump packet and walk packet replies to the client or else they will not be able to see any of the new object cause the client will not properly update to the new coords and therefor ignore any incoming spawn packets that are 'out of range'.
07/26/2011 06:37 Mr_PoP#3
thanks it was the 2nd case :)
07/26/2011 15:42 Cyanogen#4
Also make sure you are responding to GeneralData packet (0x271a) type 0x66, which is a request from the client to re-spawn an Entity.
07/28/2011 01:38 Mr_PoP#5
Quote:
Originally Posted by Cyanogen View Post
Also make sure you are responding to GeneralData packet (0x271a) type 0x66, which is a request from the client to re-spawn an Entity.
thanks :)