Warehouse Multi Pages In impulse's source.

03/08/2011 03:35 crazyrican8#1
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?
03/08/2011 05:59 pro4never#2
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.
03/08/2011 08:53 -impulse-#3
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.
03/08/2011 09:27 pro4never#4
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 ^^
03/08/2011 10:56 12tails#5
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!
03/08/2011 13:17 crazyrican8#6
Ah, Thanks alot Guys!,
03/08/2011 13:23 Spirited42#7
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.
03/08/2011 13:31 Korvacs#8
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.