Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ______ on July 01, 2003, 07:21 AM

Title: War3X
Post by: ______ on July 01, 2003, 07:21 AM
the new warcraft 3 frozen throne product id is
PX3W
Title: Re:War3X
Post by: Soul Taker on July 01, 2003, 07:38 AM
This has been known for some time thanks to /stats =P
Title: Re:War3X
Post by: DarkMinion on July 01, 2003, 08:34 AM
Wow...I would've never known

By the way...

(DWORD) 'W3XP' is more correct
Title: Re:War3X
Post by: UserLoser on July 01, 2003, 09:20 AM
Or a string, PX3W works too ;D
Title: Re:War3X
Post by: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
Title: Re:War3X
Post by: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
Title: Re:War3X
Post by: Eibro on July 01, 2003, 09:58 PM
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Title: Re:War3X
Post by: Camel on July 01, 2003, 09:59 PM
Quote from: Eibro on July 01, 2003, 09:58 PM
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Not if you cast "PX2W" as a DWORD. :)
Title: Re:War3X
Post by: Skywing on July 01, 2003, 10:18 PM
Quote from: Camel on July 01, 2003, 09:59 PM
Quote from: Eibro on July 01, 2003, 09:58 PM
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Not if you cast "PX2W" as a DWORD. :)

Please know what you're talking about before posting.  If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".

Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321", not htonl('1234') == *(PDWORD)"4321".
Title: Re:War3X
Post by: Camel on July 01, 2003, 10:32 PM
Quote from: Skywing on July 01, 2003, 10:18 PM
Please know what you're talking about before posting.  If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".

Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321", not htonl('1234') == *(PDWORD)"4321".

Wow, I just read what I posted and realized how stupid it sounds before I even read your replies :o. I must have been thinking htonl('W2XP') == htonl(*(DWORD*)"PX2W").

[edit] /me  hates [ quote ] !!