<div dir="auto">Not an answer per se, but my client also throws away SP #14 (after optionally logging it, it does nothing else): <a href="https://github.com/apsillers/html5-netrek/blob/master/js/packets.js#L579">https://github.com/apsillers/html5-netrek/blob/master/js/packets.js#L579</a><div dir="auto"><br></div><div dir="auto">Andrew</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020, 2:45 PM Darrell Root <<a href="mailto:darrellroot@mac.com">darrellroot@mac.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>I login to <a href="http://pickled.netrek.org" target="_blank" rel="noreferrer">pickled.netrek.org</a> as guest. No t-mode in progress. Right at the start my client receives a SP_STATUS packet:</div><div><br></div><div>struct status_spacket { /* SP_STATUS py-struct "!bbxxIIIIIL" #14 */<br> char type;<br> char tourn;<br> char pad1;<br> char pad2;<br> u_int armsbomb;<br> u_int planets;<br> u_int kills;<br> u_int losses;<br> u_int time;<br> U_LONG timeprod;<br>};<br><br></div><div>That’s 28 bytes long. Here are the bytes:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="color:#5170ff"><b>(lldb) </b></span><b>po data</b></div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">▿ 28 bytes</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - count : 28</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> ▿ pointer : 0x00006000002fc9e0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - pointerValue : 105553119398368</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> ▿ bytes : 28 elements</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 0 : 14</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 1 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 2 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 3 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 4 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 5 : 13</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 6 : 101</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 7 : 235</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 8 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 9 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 10 : 204</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 11 : 190</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 12 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 13 : 12</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 14 : 38</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 15 : 249</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 16 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 17 : 12</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 18 : 124</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 19 : 118</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 20 : 3</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 21 : 158</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 22 : 220</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 23 : 147</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 24 : 42</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 25 : 198</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 26 : 119</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 27 : 106</div></div><div><br></div><div><div><b>Lets look at armsbomb, which is bytes 4 through 7 inclusive interpreted as an unsigned int.</b></div><div><b><br></b></div><div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 4 : 0</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 5 : 13</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 6 : 101</div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"> - 7 : 235</div></div><div><br></div></div><div>Why are those not all 0? I just joined the game as guest? My code interprets that as 878059 armsBomb.</div><div><br></div><div>I just switched my username to “username5” (brand new user) and got the same values. So it’s not a cumulative for “username guest for all time”. Looks like it might be cumulative for the server.</div><div><br></div><div>Is SP_STATUS 14 a server-wide stat? If yes then perhaps I should just throw the data I get from it away in my client (and use SP_STATS 23 instead).</div><div><br></div><div>Darrell</div><div><br></div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:18px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><br></div></div><div><br></div></div>_______________________________________________<br>
netrek-dev mailing list<br>
<a href="mailto:netrek-dev@us.netrek.org" target="_blank" rel="noreferrer">netrek-dev@us.netrek.org</a><br>
<a href="http://mailman.us.netrek.org/mailman/listinfo/netrek-dev" rel="noreferrer noreferrer" target="_blank">http://mailman.us.netrek.org/mailman/listinfo/netrek-dev</a><br>
</blockquote></div>