Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 03:52

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

Advertisement



Warehouse Multi Pages In impulse's source.

Discussion on Warehouse Multi Pages In impulse's source. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
crazyrican8's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 18
Received Thanks: 1
Warehouse Multi Pages In impulse's source.

I've coded warehouses, and I've got the correct packet structures, so they're working fine.
But once i add over 19 items into the warehouse, my client crashes (patch 5369)

Anyone have any ideas on how to fix this?
crazyrican8 is offline  
Old 03/08/2011, 05:59   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
I could be wrong but I'm fairly sure the client can only handle 20 items being displayed per page... So essentially you need to pull the first 20 items from the warehouse.. display them and then when they click the next tab you display the next 20 items in the warehouse... etc

I could be wrong but I THINK that's how it works.

I'd suggest checking out packets from official co to be sure.
pro4never is offline  
Old 03/08/2011, 08:53   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by pro4never View Post
I could be wrong but I'm fairly sure the client can only handle 20 items being displayed per page... So essentially you need to pull the first 20 items from the warehouse.. display them and then when they click the next tab you display the next 20 items in the warehouse... etc

I could be wrong but I THINK that's how it works.

I'd suggest checking out packets from official co to be sure.
I can't believe it, you even said yourself that once a client receives more than 1024 bytes it crashes.


To fix this problem you have to send like only 10 items per packet, it wont crash.
-impulse- is offline  
Old 03/08/2011, 09:27   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by -impulse- View Post
I can't believe it, you even said yourself that once a client receives more than 1024 bytes it crashes.


To fix this problem you have to send like only 10 items per packet, it wont crash.
/facepalm

I wasn't realizing you were combining the iteminfos/warehouseitems all into one packet. I never bothered combining them myself.

Sorry about that ^^
pro4never is offline  
Old 03/08/2011, 10:56   #5
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
lol its an easy fix... the wh's packet don't send the page but you can save the last one sended into the entity class, and then, send it with the next 20 itens.... you can send 20 itens at once into the packet cuz it will be 1020 bytes ... each iten has 49 bytes in the latest version...

cya!
12tails is offline  
Old 03/08/2011, 13:17   #6
 
crazyrican8's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 18
Received Thanks: 1
Ah, Thanks alot Guys!,
crazyrican8 is offline  
Old 03/08/2011, 13:23   #7
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
That can't be the real way they do it... That would be inefficient. They must be doing it a different way. Try packet logging it.
Spirited42 is offline  
Old 03/08/2011, 13:31   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
If you packet logged the official client a month or two ago they created 3 packets, 1012 bytes long containing multiple item information details, this was for the vip warehouse, im certain it would be the same for the others.
Korvacs is offline  
Reply


Similar Threads Similar Threads
Impulse's source npc
03/06/2011 - CO2 Private Server - 0 Replies
Can anyone tell me why this does not work?It's the same id as in the npcs.txt file(111110) but it still chooses the default in the "switch (client.ActiveNpc)" is there something wrong with the "(npcRequest.OptionID)" or? public static void GetDialog(NpcRequest npcRequest, GameState client) { if (npcRequest == null || client == null || client.Entity == null) return; Dialogs dialog = new Dialogs();
[Help]Errors (Impulse's Source)
10/06/2010 - CO2 Private Server - 2 Replies
http://s4.postimage.org/kGv8i.jpg What does that errors means? Where should I look to fix them? As title says, I'm using Impulse's source!
[Release] Breeder NPC (Impulse's source)
07/25/2010 - CO2 PServer Guides & Releases - 4 Replies
Hello, I am very very pleased and proud of myself that I managed to do this FIRST time trying to send a packet via npc so I'm happy :) SPECIAL THANKS TO: .Arco's thread Breeder packet with NPC. That gave me the packet id's. all it is, is this npc in dialog.cs #region Breeder case 13118:



All times are GMT +1. The time now is 03:53.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.