Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: DarkMinion on August 24, 2005, 11:54 AM

Title: Odd return with MCP_STARTUP
Post by: DarkMinion on August 24, 2005, 11:54 AM
For some reason, I'm getting a return of 0x0000007f on MCP_STARTUP, which is not listed on bnetdocs as a known return value.  Anyone have any ideas?
Title: Re: Odd return with MCP_STARTUP
Post by: DarkMinion on August 24, 2005, 12:02 PM
Apparently it means you've received a temporary IPBan from MCP server...odd
Title: Re: Odd return with MCP_STARTUP
Post by: DarkMinion on August 24, 2005, 12:04 PM
Arta, you should add that as a possible return value for MCP_STARTUP in bnetdocs when you get a chance
Title: Re: Odd return with MCP_STARTUP
Post by: MyndFyre on August 24, 2005, 12:21 PM
Done (http://bnetdocs.valhallalegends.com/content.php?Section=m&Code=94)/
Title: Re: Odd return with MCP_STARTUP
Post by: vuther.de on August 24, 2005, 01:27 PM
Nice triple post, DM :p
Title: Re: Odd return with MCP_STARTUP
Post by: Warrior on August 24, 2005, 01:51 PM
[vL] people can do that, duh.
Title: Re: Odd return with MCP_STARTUP
Post by: Yegg on August 24, 2005, 04:50 PM
Quote0x7f: Temporary IP ban from the MCP server*
I think it would look nicer if the "f" was capitalized. :)
Title: Re: Odd return with MCP_STARTUP
Post by: MyndFyre on August 24, 2005, 05:06 PM
Quote from: Yegg on August 24, 2005, 04:50 PM
Quote0x7f: Temporary IP ban from the MCP server*
I think it would look nicer if the "f" was capitalized. :)
I disagree.  I prefer my numeric constants to have lowercase capitalization.  But thanks for the comment.
Title: Re: Odd return with MCP_STARTUP
Post by: QwertyMonster on August 24, 2005, 07:54 PM
Quote from: MyndFyre on August 24, 2005, 05:06 PM
Quote from: Yegg on August 24, 2005, 04:50 PM
Quote0x7f: Temporary IP ban from the MCP server*
I think it would look nicer if the "f" was capitalized. :)
I disagree. I prefer my numeric constants to have lowercase capitalization. But thanks for the comment.

May i ask, why? Usually caps make things stand more out. Wouldn't you want it to stand out?
Title: Re: Odd return with MCP_STARTUP
Post by: Hdx on August 24, 2005, 07:58 PM
Quote from: QwertyMonster on August 24, 2005, 07:54 PM
May i ask, why? Usually caps make things stand more out. Wouldn't you want it to stand out?
With lowercased letters I find it easier to determin sertian leters from each other (F and E for example [f and e])
~-~(HDX)~-~
Title: Re: Odd return with MCP_STARTUP
Post by: Newby on August 24, 2005, 07:59 PM
a b c d e f

Look a lot less similar in nature to each than:

A B C D E F
Title: Re: Odd return with MCP_STARTUP
Post by: MyndFyre on August 24, 2005, 08:11 PM
Quote from: QwertyMonster on August 24, 2005, 07:54 PM
Quote from: MyndFyre on August 24, 2005, 05:06 PM
Quote from: Yegg on August 24, 2005, 04:50 PM
Quote0x7f: Temporary IP ban from the MCP server*
I think it would look nicer if the "f" was capitalized. :)
I disagree. I prefer my numeric constants to have lowercase capitalization. But thanks for the comment.

May i ask, why? Usually caps make things stand more out. Wouldn't you want it to stand out?

BECAUSE I DON'T LIKE MY HEX NUMBERS TO LOOK LIKE THEY'RE YELLING.
0XFFEDABCF
(http://maddox.xmission.com/keyboard4.jpg)

It's okay to type the identifiers out in caps for constants, as it's commonly used:


const int MAX_BYTES_PER_MSG = 412;

#define INCOMING_BUFFER_LENGTH 0x7ff


I just prefer lowercase numeric literals.
Title: Re: Odd return with MCP_STARTUP
Post by: R.a.B.B.i.T on August 24, 2005, 08:37 PM
Caps are bad, as shown by 0XBADFACE.
Title: Re: Odd return with MCP_STARTUP
Post by: DarkMinion on August 24, 2005, 08:43 PM
I have a question: Why the hell does it matter?
Title: Re: Odd return with MCP_STARTUP
Post by: R.a.B.B.i.T on August 24, 2005, 10:24 PM
It doesn't, really.  We're just bored.