Premium Necro 78 Posted July 29, 2016 Premium Share Posted July 29, 2016 Hi guys, i am playing with packet but now i am stuck i am sending packet to client void CHARACTER::SendPacket() { if (!GetDesc()) return; TPacketGCInfo InfoGC; InfoGC.header = HEADER_GC_INFO; for (DWORD i = 0; i < 10; ++i) { InfoGC.equips.vnum[ i ] = 10; ChatPacket(CHAT_TYPE_INFO, "%d", i); } GetDesc()->Packet(&InfoGC, sizeof(InfoGC)); } table structure: typedef struct command_info_ { BYTE header; struct { DWORD vnum; } equips[10]; } TPacketGCInfo; client - side bool CPythonNetworkStream::RecvInfo() { TPacketGCInfo InfoPacket; if (!Recv(sizeof(InfoPacket), &InfoPacket)) return false; for (int i = 0; i < 10; ++i) { TInfo & rItemSet = InfoPacket.equips[ i ]; TraceError("(size:%d)", rItemSet.vnum); } return true; } table strucutre: typedef struct SInfo { DWORD vnum; } TInfo ; typedef struct command_info_ { BYTE header; TInfo equips[10]; } TPacketGCInfo; But in syserr i have Spoiler [29.07 15:24:32920] :: SYSERR: (size:170436819) [29.07 15:24:32920] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) [29.07 15:24:32921] :: SYSERR: (size:167772160) instead of 10 Do you know where can be a problem? Thank you, i am only learning .. :/ Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19674 Posted July 29, 2016 Honorable Member Share Posted July 29, 2016 mobdropinfo hah? Get custom ideas and jump into grand canyon. Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted July 29, 2016 Author Premium Share Posted July 29, 2016 3 minutes ago, xP3NG3Rx said: mobdropinfo hah? Get custom ideas and jump into grand canyon. Its only copy fail Packets working good but problem is output in client :/ Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted July 29, 2016 Author Premium Share Posted July 29, 2016 I find that problem is in data type maybe unsigned int but i am not sure where change it.. Thanks for help.. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now