Author | Message | Time |
---|---|---|
Lenny | Anyone have any details on the Send part of this... | August 14, 2003, 6:15 AM |
Camel | Just one DWORD, which didn't seem to affect the response last time I checked. | August 14, 2003, 6:26 AM |
Lenny | Thanks | August 14, 2003, 6:36 AM |
Skywing | [quote author=Camel link=board=17;threadid=2315;start=0#msg18046 date=1060842393] Just one DWORD, which didn't seem to affect the response last time I checked. [/quote] This is incorrect; it does affect the response. Hint: Have you noticed how the game seems to know what news is actually new, or that it receives lots more news the first time it connects after a fresh install than any other time after that? On a side note, it looks like product-specific news support finally exists; you no longer receive Warcraft III news from Starcraft (you receive nothing except the MOTD now). | August 14, 2003, 2:50 PM |
Camel | Interesting. Possibly some form of timestamp? The timestamp on the response appears to be seconds since midnight on Jan 1 1970, would it make sense for the client to send the current time or the last time it requested news in the same format? | August 14, 2003, 4:37 PM |
TeamProx | It would make more sense to send the last time it requested news; else how would the server calculate which news posts are new to the client, and then send only those? If the server couldn't do that, then I would see no purpose in sending the current date to the server, since that's already done with packet 0x50 (or at least, the client's GMT offset). | August 15, 2003, 12:58 AM |
Raven | You get all the news on a fresh install because you have an unmodified client. Once certain news becomes outdated, the client is patched to ignore the old stuff. Based on the discretion of the bnet team, the appearance of new articles may also include a routine to patch the client to ignore certain older entries, but this doesn't happen upon every login regardless of whether or not new news was available. :) | August 15, 2003, 6:56 AM |
TeamProx | So then... what's the "timestamp" for? | August 15, 2003, 8:27 AM |
Camel | Um, hello? Read what Skywing said. From what I can see, it appears the server sends all of the news that was posted no more than <some constant ammount of time> before the time represented by the DWORD sent by the client in 0x46. Proof: Send 0x46 with -1 (0xFFFFFFFF) as the DWORD. In this format, -1 represents [ 2/7/2106 6:28:14 AM ]. the response will be only the MOTD, without any news. On the other hand, if one were to send zero as the DWORD -- representing [ 1/1/1970 12:00:00 AM ] -- all of the news (currently, two messages on WAR3) is displayed. | August 15, 2003, 11:46 PM |