Valhalla Legends Forums Archive | Battle.net Bot Development | My bot plan. Need help.

AuthorMessageTime
bethra
I want to make a server-side-like Bot that can logon, moderate a channel, and access some kind of database on the server.  I wish to have the database that is linked to the Bot, be accessible via an online site that can also modify and update the database.  The Bot will have a crawler-like function that will have it continuously checking the online status and information on users in the database.  It will be able to perform functions through users on B.Net with access to them.

This is obviously a big project and task.  I need some help figuring out the best way to database and the preferred language(s) to use for programming the Bot that will run and have capabilities described above.  Thanks for your time.

~Sorc.Polgara
January 7, 2005, 12:01 AM
UserLoser.
Perhaps you should write an ISAPI DLL in C++.  Using IIS or Apache, you'll be able to give access to your members for a required logon where from there they can view database, change things, etc.  This was an idea of mine a while back with ISAPIBot. Source was lost, never was completed.
January 7, 2005, 12:22 AM
R.a.B.B.i.T
You could, if you know java, modify JavaOp, or, even better, JavaOp2 Core (once it comes out).  JO2C will be only the essentials, and everything else will be run via a plugin system.  On top of the fact that it's open source (or will be), it is easy to tinker with :)
January 7, 2005, 2:06 AM
bethra
hmmm I was looking into java, is there a good java program, as like Visual Studio sort of editor/compiler?
January 7, 2005, 2:18 AM
Mephisto
Just write a bot how you normally would and then instead of loading the database via a file connect to a server and download/parse it in whatever fashion you wish?
January 7, 2005, 2:30 AM
Networks
[quote author=Sorc.Polgara link=topic=10131.msg94508#msg94508 date=1105064306]
hmmm I was looking into java, is there a good java program, as like Visual Studio sort of editor/compiler?
[/quote]

I found Eclipse to be a good looking compiler but I guess iago knows best.
January 7, 2005, 3:00 AM
Mephisto
[quote author=R.a.B.B.i.T link=topic=10131.msg94505#msg94505 date=1105063587]
You could, if you know java, modify JavaOp, or, even better, JavaOp2 Core (once it comes out).  JO2C will be only the essentials, and everything else will be run via a plugin system.  On top of the fact that it's open source (or will be), it is easy to tinker with :)
[/quote]

Don't use Java.  :)
January 7, 2005, 3:12 AM
Forged
[quote author=Sorc.Polgara link=topic=10131.msg94508#msg94508 date=1105064306]
hmmm I was looking into java, is there a good java program, as like Visual Studio sort of editor/compiler?
[/quote]
I use JCreator, it is decent.
January 7, 2005, 4:32 AM
iago
JCreator is commercial, and, therefore, sucks.

Eclipse is free and opensource, made by an IBM-owned company.  It's really good, although bulky and does too much annoying stuff to try to help, in my opinion.  Of course, not nearly as bulky as Visual Studio, but eh.  You can get it from www.eclipse.org.

NetBeans that I used stunk (stank?), but I'm told the newer version is better.  It optionally comes bundled with the compiler, http://java.sun.com

I've heard a lot of good things about using GNU Emacs as a IDE lately, and I'd like to learn more about it, http://www.gnu.org/software/emacs/emacs.html


And a note to whoever called Visual Studio and Eclipse a compiler -- they AREN'T compilers, they are IDEs which combine interfaces to editors, compilers, etc.

And back to the topic at hand, I plan to implement something like that at some point, unless somebody else does it first.  The core for JavaOp2 seems stable, and I'm going to start on some plugins for it soon.  If all goes according to plan, I'll get some documentation out on how to use it and how to write plugins for it within the next couple weeks.

<edit> One more note.  When writing a program, you have to pick the best language suited to the job.  A sign of a good programmer is that they can pick the proper language to fit the project, whether it's C, Java, Perl, Shell, Emacs Lisp, etc.  If you just like one language for your reasons and condemn others, then when a project comes along that one language will clearly excel over others (like editing a text file for Perl, or running a series of tests/programs in Shell), and you don't choose it because of your biases, then you're making more work for yourself.  Java, in my opinion, is a superior choice for a bot, and I maintain that. 

Anyway, if you want to continue a language discussion/argument, please take it to a different thread.
January 7, 2005, 2:11 PM
Arta
NetBeans is horrific. Slow, bulky, ugly, totally ew.
January 7, 2005, 2:58 PM
Zakath
When I used NetBeans (although as I recall the program was called Forte then) I actually liked it. Can't really comment on the current status, though...the only programs I've used for editing Java source in the last couple years were Eclipse (which I don't like at all) and Notepad. Gogo plaintext editor!
January 7, 2005, 7:40 PM
hismajesty
I<3Eclipse, but it's not so good for just simple programs to just learn java with - it's more for larger programs involving many classes and such.

If you're new to Java, maybe get TextPad to learn with?

If you want to go the Microsoft route, J#.
January 7, 2005, 8:02 PM
LW-Falcon
[quote author=Forged link=topic=10131.msg94529#msg94529 date=1105072368]
[quote author=Sorc.Polgara link=topic=10131.msg94508#msg94508 date=1105064306]
hmmm I was looking into java, is there a good java program, as like Visual Studio sort of editor/compiler?
[/quote]
I use JCreator, it is decent.
[/quote]
Yea I use it too.
January 7, 2005, 9:19 PM
bethra
Well, I'm downloading Eclipse nowzor.  Imma try it out. =D


I was think earlier today during the boring part of driver's ed, changing tires, about how I am actually clueless onto how you even run a program remotely on a server.  I mean, I highly doubt that it is anything like just running a program/application like Windows/Mac, OS in general.

Linux would probably, if anything, Ibe the OS you would use...  Even that...

hehe, I'm pretty nuggly.
January 7, 2005, 9:32 PM
Mephisto
A server is a computer just like your desktop, just often configured differently.

If you're going to be using Linux you'll need to compile your programs on Linux, or a Linux compatable OS, unless you're using a language like Java (ew).

In any event, if you're using Linux typically you'll get an SSH client (assuming SSH is configured) and connect to the server with your SSH client.  From there use the SSH commands (all you'll really need is the cd command IIRC to navigate to the appropriate directory your program is) to navigate to the appropriate directory and run the program (with /$program IIRC).

At the point you run the program you should see any console output the program outputs, but if it's a GUI then it'll probably just run and you may get some sort of confirmation (never actually did this).

Another solution is using some sort of software to view the desktop interface of the server (there's many applications for Linux servers; for Windows there's remote desktop connection or terminal services).
January 7, 2005, 10:53 PM
iago
The simple answer is, "You run it the same way you run it under Dos".

In other words, you get a commandline (which Mephisto explained about), and you type the program's name.  The commandline is actually like :"cmd.exe" running, except on the remote server.
January 8, 2005, 12:34 AM
St0rm.iD
[quote author=Mephisto link=topic=10131.msg94598#msg94598 date=1105138424]
If you're going to be using Linux you'll need to compile your programs on Linux, or a Linux compatable OS, unless you're using a language like Java (ew).
[/quote]

I'll race you. I'll write a program in Java or Python, you write it in C/C++/ASM. If you can write a cross-platform program and our two programs are exactly compatible and you finish before me, you win.
January 8, 2005, 1:05 AM
Forged
[quote author=Arta[vL] link=topic=10131.msg94550#msg94550 date=1105109907]
NetBeans is horrific. Slow, bulky, ugly, totally ew.
[/quote]
So like Java?
January 8, 2005, 6:24 AM
tA-Kane
Is NetBeans written in Java?

A language isn't _truly_ awesome until it can write its own de/compiler.
January 8, 2005, 7:30 AM
OnlyMeat
[quote author=tA-Kane link=topic=10131.msg94642#msg94642 date=1105169429]
Is NetBeans written in Java?

A language isn't _truly_ awesome until it can write its own de/compiler.
[/quote]

And how exactly would you compile the compiler the first time?

Also the java JIT is so slow it would take forever to compile a program.

If you are going to make a program why not just make it the best it can be rather than a sluggish bloated peice of crap that java produces?

Even C# and vb.net are faster than java overall as they only JIT methods once per program lifetime. And before you say they are not cross platform their are projects developing .net JIT's for other platforms
January 8, 2005, 9:17 AM
Myndfyr
[quote author=OnlyMeat link=topic=10131.msg94644#msg94644 date=1105175827]
[quote author=tA-Kane link=topic=10131.msg94642#msg94642 date=1105169429]
Is NetBeans written in Java?

A language isn't _truly_ awesome until it can write its own de/compiler.
[/quote]

And how exactly would you compile the compiler the first time?

Also the java JIT is so slow it would take forever to compile a program.

If you are going to make a program why not just make it the best it can be rather than a sluggish bloated peice of crap that java produces?

Even C# and vb.net are faster than java overall as they only JIT methods once per program lifetime. And before you say they are not cross platform their are projects developing .net JIT's for other platforms

[/quote]

Well...  I wouldn't say that the Java JITter is extremely slow.  It's not that bad until you throw an exception.  But yes, the .NET languages do generally outperform Java (although this is not true of every operation).

For .NET on Linux: www.go-mono.com

For .NET on Mac: [url]http://www.microsoft.com/downloads/details.aspx?FamilyId=3A1C93FA-7462-47D0-8E56-8DD34C6292F0&displaylang=en[/url] (Shared Source CLI)
January 8, 2005, 9:25 AM
Arta
I use Ultraedit for everything Visual Studio doesn't do :)
January 8, 2005, 9:35 AM
iago
[quote author=tA-Kane link=topic=10131.msg94642#msg94642 date=1105169429]
Is NetBeans written in Java?

A language isn't _truly_ awesome until it can write its own de/compiler.
[/quote]

Yes, NetBeans is written in Java.  NO, it's not a compiler.  Java has only one compiler, it's called "javac", and it's proprietary and closed source (which is gay).

Why don't all y'all take a language debate somewhere useful, like its own thread? Or maybe somebody could clean up this thread.

But the bottem line is, use the right language for the project.  I'm not going to say that C or Java or Python or Perl are better, because they all have good points.  I would use different ones for different projects, depending on which was best suited for the job.  A programmer who can't do that will find himself doing extra work to implement features from one language in another.

Java is slower to run, but on modern computers it barely makes a difference.  Python runs even slower, but you can produce code a lot faster (I'd actually like to learn Python at some point, we'll see where that goes).  Perl runs fast for producing text files, but it gets messy when you start using functions and classes.  C/C++ take longer to write code in, but it's faster and you have more control.  Emacs Lisp is good if you're trying to do a specialized text file editor.  They all have uses, and a good programmer would know them all and know when it's appropriate to use one or the other.
January 8, 2005, 4:12 PM

Search