Author Topic: SID_*USERDATA  (Read 3141 times)

0 Members and 1 Guest are viewing this topic.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
SID_*USERDATA
« on: April 14, 2008, 02:17:10 pm »
So I'm experiencing a very strange bug with my bot; profile key writes intermittently fail. I can't see anything in my code that looks improper, and even the packet logs look fine! Hopefully someone will spot something I'm just not seeing..

Request to open profile window:
Code: [Select]
SEND SID_READUSERDATA [omitted]

RECV SID_READUSERDATA
0030   fd ef 4f e9 00 00 ff 26 7e 00 01 00 00 00 0a 00  ..O....&~.......
0040   00 00 00 00 00 00 4d 61 6c 65 31 00 42 6f 73 74  ......Male1.Bost
0050   6f 6e 00 4c 65 61 64 65 72 20 6f 66 20 42 4e 55  on.Leader of BNU
0060   00 00 00 32 39 38 35 39 30 35 37 20 31 31 39 31  ...29859057 1191
0070   33 38 31 33 37 38 00 32 39 39 32 34 39 35 34 20  381378.29924954
0080   31 33 31 32 38 38 33 31 31 36 00 32 39 39 32 34  1312883116.29924
0090   39 35 34 20 31 30 39 38 38 32 30 36 31 36 00 31  954 1098820616.1
00a0   30 33 35 36 31 30 39 00 77 23 42 4e 55 2d 43 61  0356109.w#BNU-Ca
00b0   6d 65 6c 00                                      mel.

Profile window pops up; data entered (sex=no), click ok:
Code: [Select]
SEND SID_WRITEUSERDATA
0030   fe fb 13 22 00 00 ff 27 5f 00 01 00 00 00 03 00  ..."...'_.......
0040   00 00 42 4e 55 2d 43 61 6d 65 6c 00 70 72 6f 66  ..BNU-Camel.prof
0050   69 6c 65 5c 73 65 78 00 70 72 6f 66 69 6c 65 5c  ile\sex.profile\
0060   6c 6f 63 61 74 69 6f 6e 00 70 72 6f 66 69 6c 65  location.profile
0070   5c 64 65 73 63 72 69 70 74 69 6f 6e 00 6e 6f 00  \description.no.
0080   42 6f 73 74 6f 6e 00 4c 65 61 64 65 72 20 6f 66  Boston.Leader of
0090   20 42 4e 55 00                                    BNU.

Open profile again:
Code: [Select]
SEND SID_READUSERDATA [omitted]

RECV SID_READUSERDATA
0030   ff 2b ee 2f 00 00 ff 26 7b 00 01 00 00 00 0a 00  .+./...&{.......
0040   00 00 01 00 00 00 6e 6f 00 42 6f 73 74 6f 6e 00  ......no.Boston.
0050   4c 65 61 64 65 72 20 6f 66 20 42 4e 55 00 00 00  Leader of BNU...
0060   32 39 38 35 39 30 35 37 20 31 31 39 31 33 38 31  29859057 1191381
0070   33 37 38 00 32 39 39 32 34 39 35 34 20 31 33 31  378.29924954 131
0080   32 38 38 33 31 31 36 00 32 39 39 32 34 39 35 34  2883116.29924954
0090   20 31 30 39 38 38 32 30 36 31 36 00 31 30 33 35   1098820616.1035
00a0   36 31 30 39 00 77 23 42 4e 55 2d 43 61 6d 65 6c  6109.w#BNU-Camel
00b0   00                                               .

Profile window pops up; new information is correct. I tried changing sex again:
Code: [Select]
SEND SID_WRITEUSERDATA
0030   fe 80 a5 93 00 00 ff 27 61 00 01 00 00 00 03 00  .......'a.......
0040   00 00 42 4e 55 2d 43 61 6d 65 6c 00 70 72 6f 66  ..BNU-Camel.prof
0050   69 6c 65 5c 73 65 78 00 70 72 6f 66 69 6c 65 5c  ile\sex.profile\
0060   6c 6f 63 61 74 69 6f 6e 00 70 72 6f 66 69 6c 65  location.profile
0070   5c 64 65 73 63 72 69 70 74 69 6f 6e 00 54 65 73  \description.Tes
0080   74 00 42 6f 73 74 6f 6e 00 4c 65 61 64 65 72 20  t.Boston.Leader
0090   6f 66 20 42 4e 55 00                             of BNU.

Request to open profile window again; this time the write(sex=test) failed.
Code: [Select]
SEND SID_READUSERDATA [omitted]

RECV SID_READUSERDATA
0030   fd fa ec b4 00 00 ff 26 7b 00 01 00 00 00 0a 00  .......&{.......
0040   00 00 02 00 00 00 6e 6f 00 42 6f 73 74 6f 6e 00  ......no.Boston.
0050   4c 65 61 64 65 72 20 6f 66 20 42 4e 55 00 00 00  Leader of BNU...
0060   32 39 38 35 39 30 35 37 20 31 31 39 31 33 38 31  29859057 1191381
0070   33 37 38 00 32 39 39 32 34 39 35 34 20 31 33 31  378.29924954 131
0080   32 38 38 33 31 31 36 00 32 39 39 32 34 39 35 34  2883116.29924954
0090   20 31 30 39 38 38 32 30 36 31 36 00 31 30 33 35   1098820616.1035
00a0   36 31 30 39 00 77 23 42 4e 55 2d 43 61 6d 65 6c  6109.w#BNU-Camel
00b0   00                                               .

This happens completely intermittently; it's not just always success before failure.
« Last Edit: April 14, 2008, 02:23:52 pm by Camel »

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: SID_*USERDATA
« Reply #1 on: April 14, 2008, 03:18:10 pm »
This is interesting:
0030   fd fa ec b4 00 00 ff 26 7b 00 01 00 00 00 0a 00  .......&{.......
0040   00 00 02 00 00 00 6e 6f 00 42 6f 73 74 6f 6e 00  ......no.Boston.
0050   4c 65 61 64 65 72 20 6f 66 20 42 4e 55 00 00 00  Leader of BNU...
0060   32 39 38 35 39 30 35 37 20 31 31 39 31 33 38 31  29859057 1191381
0070   33 37 38 00 32 39 39 32 34 39 35 34 20 31 33 31  378.29924954 131
0080   32 38 38 33 31 31 36 00 32 39 39 32 34 39 35 34  2883116.29924954
0090   20 31 30 39 38 38 32 30 36 31 36 00 31 30 33 35   1098820616.1035
00a0   36 31 30 39 00 77 23 42 4e 55 2d 43 61 6d 65 6c  6109.w#BNU-Camel
00b0   00                                               .


Any chance you need to wait for a statstring/profile update on yourself before you can re-write your profile?
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: SID_*USERDATA
« Reply #2 on: April 15, 2008, 02:21:11 am »
Since I'm waiting it out with a dialog window, and there aren't any other packets besides SID_NULL coming/going, I'd say no?

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline K20A2

  • Newbie
  • *
  • Posts: 12
  • botdev god
    • View Profile
Re: SID_*USERDATA
« Reply #3 on: April 18, 2008, 01:13:34 am »
can be rejecting it if you're trying to set profile\sex on certain products, iirc
« Last Edit: April 18, 2008, 01:15:29 am by K20A2 »