Valhalla Legends Forums Archive | General Programming | I feel dumb.

AuthorMessageTime
UserLoser
Like the subject says, is how I feel.  I just cant get the 0x0F (BNLS_AUTHORIZEPROOF) to work.  I have the server code as the data recieved in the 0x0E.  Then I have a sub, where the 0x0F comes in.  This is where I get stuck, I've tried many different ways to do this.  I was told by someone to try this:

.InsertDWORD BNLSChecksum("mypass", PacketBuf.GetDWORD ServerCode))
.SendBNLSPacket sckBNLS, &HF

What is wrong here?  That is what I was told by someone else, and they said it works, but I just dont see why it doesnt work for me... I have tried atleast 10+ different ways to do this...Could anyone help here?
December 6, 2002, 8:35 PM
Yoni
Sure your password is correct?
Is the BNLSChecksum function in your project?
December 13, 2002, 5:08 PM
Noodlez
first, you are dumb. thx

and it should be
[code]
.InsertDWORD BNLSChecksum("mypass", PacketBuf.GetDWORD(ServerCode))
.SendBNLSPacket sckBNLS, &HF
[/code]
ServerCode should be
Mid(PacketData,1,4) . assuming PacketData doesnt include ID and Length.. if it does then Mid(Data,3,4)
December 16, 2002, 9:15 PM
n00blar
Noodlez, while I may not be an admin here, I think you are acting a little childish and I advise you to grow up! Calling someone dumb because they forgot to insert a '(' is really lame-- its called a typo and I'm sure you have made them before.
December 19, 2002, 8:31 AM
Noodlez
[quote]Noodlez, while I may not be an admin here, I think you are acting a little childish and I advise you to grow up! Calling someone dumb because they forgot to insert a '(' is really lame-- its called a typo and I'm sure you have made them before.[/quote]
im not calling him dumb because of that, it's an offboard type thing
December 19, 2002, 11:47 AM
Grok
besides, maybe

"first, you are dumb. thx"

was a typo!  maybe he really meant:

"first, you are really dumb. thx"

so next time don't jump to conclusions.

hope this helps,
grok        :P
December 19, 2002, 1:16 PM
UserLoser
doh i was doing all the packet data as the server code :-/ and this really sucks because of ip banned...and i have cable too so...
December 19, 2002, 7:08 PM
dRAgoN
[quote]doh i was doing all the packet data as the server code :-/ and this really sucks because of ip banned...and i have cable too so...[/quote]


Cable IP's do roll now and then aswell.

~l)ragon
December 20, 2002, 1:51 AM
Grok
UserLoser:  if you have static IP, first change that to DHCP before testing.  otherwise, check to see if your ISP will give you a new IP by simply releasing and renewing your DHCP lease.

ipconfig /release
ipconfig /renew

Some ISPs DHCP servers don't automatically recycle the IP just because you released it, so you could end up with same one for entire lease time.  That can be up to 3 days if admin left default lease time in place.
December 20, 2002, 7:20 AM
iago.
hrmm.. try power-cycling your cable modem.  On some ISPs it'll reset your ip address and somebody else will end up screwed.
December 20, 2002, 5:17 PM
UserLoser
nope, it still stays the same. well thanks anyways..
December 20, 2002, 5:55 PM
UserLoser
well back to BNLS 0x0F...i tried what noodlez said, and didnt work...
the packet i recieve is:
07000E9767170B
now is this the packet data?
9767170B
which i have that stored as the servercode, which is what i have as a string, should it be a string or something else?
then i have a authorize sub
Checksum = BNLSChecksum("password", ServerCode)
.insertDWORD Checksum
.SendBNLSPacket sckBNLS, &HF

the checksum should be a string or long or what?, and that checksum comes out to be usually a negative 9 digit long number...
December 20, 2002, 6:10 PM
Spht
Declare the ServerCode as a Long - it's a DWORD.

[quote]the checksum should be a string or long or what?, and that checksum comes out to be usually a negative 9 digit long number...[/quote]

I think that question answers itself since the BNLSChecksum() function returns a Long.
December 20, 2002, 7:02 PM

Search