Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 21:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



I have a problem spawning entities

Discussion on I have a problem spawning entities within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
I have a problem spawning entities

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
Mr_PoP is offline  
Old 07/26/2011, 00:59   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
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'.
pro4never is offline  
Thanks
1 User
Old 07/26/2011, 06:37   #3
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
thanks it was the 2nd case
Mr_PoP is offline  
Old 07/26/2011, 15:42   #4
 
elite*gold: 0
Join Date: Jul 2011
Posts: 67
Received Thanks: 84
Also make sure you are responding to GeneralData packet (0x271a) type 0x66, which is a request from the client to re-spawn an Entity.
Cyanogen is offline  
Thanks
1 User
Old 07/28/2011, 01:38   #5
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
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
Mr_PoP is offline  
Reply


Similar Threads Similar Threads
Entities spwan/w.e sure take a look and see if you can help
07/01/2011 - CO2 Private Server - 6 Replies
hello everyone . what is the best way to do the clients/monsters/npc's spawns like when a player jumps what is the best way to spawn the in range entities . i have tried to store the entities in some kind of dictionary (Local entities) and spawn them on jumping/walking ...> slow i have stored every single valid X/Y in the game maps as a key with a Dictionary associated to that key as a value and stored the entities in that dictionary depending on the X/Y and spawned them on...
Spawn Entities, Current Patch
03/25/2011 - CO2 Private Server - 18 Replies
EDIT: Nevermind, my packet was off a few bytes :P Has spawning entities in the lastest patch changed? Entities (ex: Players) don't spawn to each other on my source since the latest patch.
a little help. :P entities line 213..(lotf/Pazeco)
08/05/2009 - CO2 Private Server - 3 Replies
http://img39.imageshack.us/img39/1624/help103.jpg http://img9.imageshack.us/img9/8007/help022.jpg can anyone help me with this..
Bi Spawn
01/06/2009 - CO2 Private Server - 2 Replies
Hey; I have my own private source; And a good friend coding it; But i have 1 problem and my friend isn't online; My BI spawn wont work; But it is exactly the same as any other sources; Can some one help me? -
entities.cs problem
10/13/2008 - CO2 Programming - 2 Replies
hi, i have a problem with entities.cs when i start my server it loads everyting almost all mobs i have but when he is on SpawnALLMobs it give an error at line:217 error=System.NullReferenceException: Object reference not set to an instance of an object. line:218 is DataBase.Mobs = null; now you know where to look just above line:218 this is what i have: public static void SpawnAllMobs() { try {



All times are GMT +1. The time now is 21:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.