Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Tuberload on October 21, 2003, 12:09 PM

Title: BNSimulator: bot development tool
Post by: Tuberload on October 21, 2003, 12:09 PM
Thanks
Title: Re:BNSimulator: bot development tool
Post by: Grok on October 21, 2003, 01:02 PM
Which version of battle.net does it emulate?

Does it support account numbers?
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 21, 2003, 04:16 PM
As far as I know, account numbers don't apply to the chat protocol, or to the current binary protocol?
Title: Re:BNSimulator: bot development tool
Post by: Freeware on October 21, 2003, 06:15 PM
sounds intresting, maybe the next BNETed?
Title: Re:BNSimulator: bot development tool
Post by: iago on October 21, 2003, 07:46 PM
eww@editing out the original post.. I would have liked to read it!
Title: Re:BNSimulator: bot development tool
Post by: Grok on October 21, 2003, 09:53 PM
I don't like that BBS feature.  Non-moderators should not be able to edit posts which have replies.
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 21, 2003, 10:36 PM
I was asking for any suggestions or idea's for a server/development tool that mimic's the chat protocol. This is a learning situation for me, and I figured I would get some feed back I myself might have over looked. I felt like my post wasn't wanted so deleted it. If you like I will repost.
Title: Re:BNSimulator: bot development tool
Post by: iago on October 21, 2003, 11:14 PM
Quote from: Tuberload on October 21, 2003, 10:36 PM
I was asking for any suggestions or idea's for a server/development tool that mimic's the chat protocol. This is a learning situation for me, and I figured I would get some feed back I myself might have over looked. I felt like my post wasn't wanted so deleted it. If you like I will repost.


Based on their responses, it doesn't seem like it was unwanted..
Title: Re:BNSimulator: bot development tool
Post by: Grok on October 22, 2003, 12:35 AM
Quote from: Adron on October 21, 2003, 04:16 PM
As far as I know, account numbers don't apply to the chat protocol, or to the current binary protocol?

As far as I know, what you know so far is accurate.  IIRC, and I might not RC, well now I forgot what I was recalling, so far.  Still, when he mentioned he might later add game support, I extrapolated that the 'chat' term in 'chat server' was not specific to mean non-binary, but to mean BNCS emulation overall, but first supporting the chatting features.

That being the case, whether it was the case, is the case, or never was or is not currently the case, there would be choices of which BNCS to emulate.  In the stream of time there have been many iterations of BNCS varying by stability and features, account numbers among them.
Title: Re:BNSimulator: bot development tool
Post by: Soul Taker on October 22, 2003, 02:14 AM
Ergo, concorduntly, vis-a-vis, hope is the quintessential human delusion... that's about all I got from your post Grok =P
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 22, 2003, 02:56 AM
Quote from: Grok on October 22, 2003, 12:35 AM
Quote from: Adron on October 21, 2003, 04:16 PM
As far as I know, account numbers don't apply to the chat protocol, or to the current binary protocol?

As far as I know, what you know so far is accurate.  IIRC, and I might not RC, well now I forgot what I was recalling, so far.  Still, when he mentioned he might later add game support, I extrapolated that the 'chat' term in 'chat server' was not specific to mean non-binary, but to mean BNCS emulation overall, but first supporting the chatting features.

That being the case, whether it was the case, is the case, or never was or is not currently the case, there would be choices of which BNCS to emulate.  In the stream of time there have been many iterations of BNCS varying by stability and features, account numbers among them.

I sort of understand what you are saying:

Grok is not doubting my knowledge of the chat protocol, but I was not specific in my projects description. Yada yada, whether Grok was right or wrong, the main point is there are two protocol types, telnet and game.

I thought you were sarcastically telling me I don't know what I am doing, so stfu.

Woops
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 22, 2003, 03:02 AM
Grok wasn't doubting *my* knowledge .. I don't think he said anything about your knowledge.
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 22, 2003, 03:04 AM
I left out a part of that sentence, my mistake.
Title: Re:BNSimulator: bot development tool
Post by: Grok on October 22, 2003, 06:53 AM
Quote from: Adron on October 22, 2003, 03:02 AM
Grok wasn't doubting *my* knowledge .. I don't think he said anything about your knowledge.

Undoubtedly, I don't doubt that.
Thus, it goes without saying that ..
Title: Re:BNSimulator: bot development tool
Post by: UserLoser on October 22, 2003, 05:07 PM
Quote from: Soul Taker on October 22, 2003, 02:14 AM
Ergo, concorduntly, vis-a-vis, hope is the quintessential human delusion... that's about all I got from your post Grok =P


What the hell does that mean?
Title: Re:BNSimulator: bot development tool
Post by: Soul Taker on October 22, 2003, 05:36 PM
It's a reference to a popular movie.
Title: Re:BNSimulator: bot development tool
Post by: iago on October 22, 2003, 05:58 PM
Quote from: Grok on October 22, 2003, 12:35 AM
Quote from: Adron on October 21, 2003, 04:16 PM
As far as I know, account numbers don't apply to the chat protocol, or to the current binary protocol?

As far as I know, what you know so far is accurate.  IIRC, and I might not RC, well now I forgot what I was recalling, so far.  Still, when he mentioned he might later add game support, I extrapolated that the 'chat' term in 'chat server' was not specific to mean non-binary, but to mean BNCS emulation overall, but first supporting the chatting features.

That being the case, whether it was the case, is the case, or never was or is not currently the case, there would be choices of which BNCS to emulate.  In the stream of time there have been many iterations of BNCS varying by stability and features, account numbers among them.

Since, according to the subject, it's a bot development tool, I'd think that the most likely emulation would be the current BNCS implementation.
Title: Re:BNSimulator: bot development tool
Post by: Grok on October 22, 2003, 07:28 PM
That's a guess.  We don't know that he wasn't planning on writing a binary bot and sending it back through time to 1997 to beat Adron to the punch.  If that is the case then he'd want to support account numbers.
Title: Re:BNSimulator: bot development tool
Post by: Yoni on October 22, 2003, 07:29 PM
Quote from: UserLoser on October 22, 2003, 05:07 PM
Quote from: Soul Taker on October 22, 2003, 02:14 AM
Ergo, concorduntly, vis-a-vis, hope is the quintessential human delusion... that's about all I got from your post Grok =P


What the hell does that mean?
See: MTV Movie Awards Reloaded. If you missed it it's on the Matrix: Reloaded DVD and probably the Internet.
Title: Re:BNSimulator: bot development tool
Post by: CrAz3D on October 22, 2003, 08:26 PM
So, from what I've gathered it's a BNETD type program yes?  Anyone mind posting the originaly post back?
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 22, 2003, 09:17 PM
Name: BNSimulator
Language: Java
Platform: Created on windows so may have issues running on other OS's
Description: It is supposed to simulate the Battle.net Chat Protocol (0x3) to help developers create their  bot's without having to connect to battle.net itself. It also has support for simulating users/channels/events, so you don't need people to test your application. If you like it can be used just as a chat server, but it's main goal is to be a development tool.

This is not meant as an advertisement because obviously a development tool for creating bots that use the chat protocol is no longer relevant. Maybe someday I will be able to implement some of the game protocol. I was just looking for suggestions/features/requirements anyone might have. This will give me added challenges and add to my learning experience.
Title: Re:BNSimulator: bot development tool
Post by: Spht on October 22, 2003, 10:07 PM
Quote from: Tuberload on October 22, 2003, 09:17 PM
Platform: Created on windows so may have issues running on other OS's

Yeah, maybe...
Title: Re:BNSimulator: bot development tool
Post by: Yoni on October 22, 2003, 11:10 PM
Quote from: Tuberload on October 22, 2003, 09:17 PM
Language: Java
Platform: Created on windows so may have issues running on other OS's
Hmm, isn't one of the main features of Java its platform-independence? So what's the point of making a platform-dependent program, especially a server, in Java?
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 23, 2003, 12:06 AM
Let me explain what that meant... I said it is being developed on windows, so it might have issues when running on other OS's. It will work yes because the language is platform independent, but that does not mean that some of my programming practices when it comes to accessing files and such will not cause problems. Understand? The only reason I put that description was to let people know what platform it is being developed on...
Title: Re:BNSimulator: bot development tool
Post by: iago on October 23, 2003, 12:35 AM
Quote from: Yoni on October 22, 2003, 11:10 PM
Quote from: Tuberload on October 22, 2003, 09:17 PM
Language: Java
Platform: Created on windows so may have issues running on other OS's
Hmm, isn't one of the main features of Java its platform-independence? So what's the point of making a platform-dependent program, especially a server, in Java?

Our prof told us that Java occasionally get confused when doing platform-specific stuff (GUI's and Sockets spefically) but for the most part it should be ok :)
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 23, 2003, 12:53 AM
Ok, because I have read that sometimes if you don't make your program handle certain situations differently depending on the operating system it could cause bugs in the software. I just wanted to make people aware of the development circumstances if that were the case.
Title: Re:BNSimulator: bot development tool
Post by: iago on October 23, 2003, 02:25 AM
For Java, it shouldn't matter.  But, in rare cases it does.

Incidently, you can also cause memory leaks in Java.  It's hard, but possible.
See:
http://www-106.ibm.com/developerworks/java/library/j-leaks/
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 23, 2003, 02:32 AM
Thanks, iago, for the article. It is the most useful thing this thread has produced for me so far.
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 23, 2003, 05:34 AM
Seems to me like java's memory management is very bad. It will allocate lots of memory from the system and not bother to return memory to the system even if the system is running low on memory and the memory has no references inside java.
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 23, 2003, 06:48 AM
From what I have been reading alot of that has to do with the JVM you are using. I just started reading on the subject, so I have no real opinion except what do you concider to be worse: a program that hogs memory, and only returns it when finished, or, a program that may have a leak somewere and never return the memory?
Title: Re:BNSimulator: bot development tool
Post by: Banana fanna fo fanna on October 23, 2003, 02:09 PM
Quote from: Adron on October 23, 2003, 05:34 AM
Seems to me like java's memory management is very bad. It will allocate lots of memory from the system and not bother to return memory to the system even if the system is running low on memory and the memory has no references inside java.

"Java" is a lot of different things, which is hard for a lot of people to realize.

Java is:
- A syntax definition, the sematics of declaring a class, etc
- A standard library definition, the class names and what they do
- A class file format definition, the bytecode that is in .class files
- A virtual machine definition, a description of the behavior of a VM

You're probably talking about how sucky the Sun "reference implementation" is. This is the package you get from java.sun.com. I agree with you, it's pretty bad. There are alternatives you can use for each component of java. For the syntax definition (source code compiler), I've found that IBM's jikes compiler is about a bazillion times better than javac. The classpath.org GNU classpath is a GNU implementation of the Java standard library. The class files and VMs have been implemented by several third parties, like BEA, GNU, kaffe, etc.

I agree that Sun's tools really suck, but if there was a truly good implementation, Java could take off.
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 23, 2003, 04:42 PM
Quote from: St0rm.iD on October 23, 2003, 02:09 PM
I agree that Sun's tools really suck, but if there was a truly good implementation, Java could take off.

Faster than it already is.
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 24, 2003, 05:23 AM
Quote from: Tuberload on October 23, 2003, 06:48 AM
From what I have been reading alot of that has to do with the JVM you are using. I just started reading on the subject, so I have no real opinion except what do you concider to be worse: a program that hogs memory, and only returns it when finished, or, a program that may have a leak somewere and never return the memory?

A program that has a leak somewhere and never returns the memory is just the same as a program that hogs memory and only returns it when finished in at least 95% of the cases. Reading that article, it seems that every Java program will by default leak <insert java interpreter heap size> megabytes of RAM before starting to free up memory that *should* be free.
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 24, 2003, 05:29 AM
Quote from: St0rm.iD on October 23, 2003, 02:09 PM
You're probably talking about how sucky the Sun "reference implementation" is.

I was talking about this quote from the article (http://www-106.ibm.com/developerworks/java/library/j-leaks/) iago posted a link to:

Quote
The Sun JDK 1.1.8 uses a default 1 MB startup setting and a 16 MB maximum setting. The IBM JDK 1.1.8 uses a default maximum setting of one-half the total physical memory size of the machine. These memory settings have a direct impact on what the JVM does when it runs out of memory. The JVM may continue growing the heap rather than wait for a garbage collection cycle to complete.

Given this, an application running in IBM JDK could use up half the physical memory before the IBM JDK considers returning some memory to the operating system, even if the application only really needs 1 megabyte or so.
Title: Re:BNSimulator: bot development tool
Post by: Skywing on October 24, 2003, 02:52 PM
Quote from: Adron on October 24, 2003, 05:23 AM
Quote from: Tuberload on October 23, 2003, 06:48 AM
From what I have been reading alot of that has to do with the JVM you are using. I just started reading on the subject, so I have no real opinion except what do you concider to be worse: a program that hogs memory, and only returns it when finished, or, a program that may have a leak somewere and never return the memory?

A program that has a leak somewhere and never returns the memory is just the same as a program that hogs memory and only returns it when finished in at least 95% of the cases. Reading that article, it seems that every Java program will by default leak <insert java interpreter heap size> megabytes of RAM before starting to free up memory that *should* be free.
I remember a certain person explaining to me how NBBot's unlimited size command history was completely different from a memory leak...
Title: Re:BNSimulator: bot development tool
Post by: Tuberload on October 24, 2003, 05:21 PM
I doesn't make sense why Sun doesn't just allocate the needed amount of memory at run time, and then re-allocate more as needed... Then again a lot of things don't make sense.
Title: Re:BNSimulator: bot development tool
Post by: Adron on October 24, 2003, 08:58 PM
Quote from: Skywing on October 24, 2003, 02:52 PM
I remember a certain person explaining to me how NBBot's unlimited size command history was completely different from a memory leak...

Hmm? It is indeed very different from a memory leak. That's memory in use, not just memory hogged. You can go through all those commands using the up and down arrows. Memory hogged would be like the java compiler allocating memory up to half the physical ram (say 512 MB) when it could really just garbage collect and reuse a single megabyte 512 times instead.