• Welcome to Valhalla Legends Archive.
 

help 1.10 ERR!!

Started by SubLiminaL_WolF, April 28, 2003, 11:37 PM

Previous topic - Next topic

SubLiminaL_WolF

how would i get the code from case 0x50:
               //protocol id
               //platform id
               packetbuf.insert("68XIPXES", 8); //product ID
               //version Id
               //product language
               //Local IP for NAT compatibility*
               //Time zone bias*
               //Locale ID*
               //Language ID*
               //Country abreviation
               //Country
               packetbuf.sendpacket(s, 0x51);
               break;
            case 0x51:
               //Version check result
               if(buffer[4] != 0x51){
                  AppendText(IDC_CHATWND, WHITE, "%s", timestamp);
                  AppendText(IDC_CHATWND, RED, "Version check failed!\n");
                  Disconnect();
                  return;
               }
               AppendText(IDC_CHATWND, WHITE, "%s", timestamp);
               AppendText(IDC_CHATWND, GREEN, "Passed version check!\n");
               packetbuf.insert("tenb", 4);
               packetbuf.sendpacket(s, 0x14);
               packetbuf.sendpacket(s, 0x2d);
               packetbuf.insert((int)0x1b);
               packetbuf.insert((int)0);
               packetbuf.insert("bnserver.ini");
               packetbuf.sendpacket(s, 0x33);
               AppendText(IDC_CHATWND, WHITE, "%s", timestamp);
               AppendText(IDC_CHATWND, WHITE, "Checking CDKey...\n");
               //this is where cdkey packet would be ^^
               break;

to 0x50: (DWORD)       Protocol ID (0)
(DWORD)       Platform ID
(DWORD)       Program ID
(DWORD)       Version
(DWORD)       Product language
(DWORD)       Local IP for NAT compatibility*
(DWORD)       Time zone bias*
(DWORD)       Locale ID*
(DWORD)       Language ID*
(STRING)       Country abreviation
(STRING)       Country
and 0x51: (DWORD)       Client Token
(DWORD)       Version Hash
(DWORD)       Checksum
(DWORD)       Number of keys in this packet
(BOOLEAN)    Using Spawn

For Each Key:
(DWORD)       Key Length
(DWORD)       Product
(DWORD)       CDKEY Value 1
(DWORD)       Unknown (0)
(DWORD[5])    Hashed Data

(STRING)       Exe Information
(STRING)       CD Key owner name

Yoni

Err... Please restate the question?

SubLiminaL_WolF

ok i dunno the structure of 0x50/51 so ima bit confused i want to get bnet to review my version of sexp and it wont it always says failed because i have 0x07 and i tryed changing it to 0x50 and 51 also am i skipping a step?