Official Soldat Forums
Soldat Fans => Fan Apps => Topic started by: BenB on February 19, 2007, 08:10:02 pm
-
Hello, I'm Ben (:
I play soldat pretty often and was pretty bored while I was sick for a few days so I decided to take a project on myself.
This bot is pretty much a modular engine, you can create whatever you want with it including GUI apps for server administration.. If you know Java this might save some time for you.
What makes it different is that you are able to run it on a server, as Java is a platform-independent language(good for gatherbots, maybe companies who want to disable /maxplayers command etc..).
The bot has a built-in IRC interface with 99% of the stuff covered (using PircBot's API).
Here's the link for download: soldatbot-1.0.zip (http://benzy.info/soldatbot/soldatbot-1.0.zip)
Readme.txt:
==========================================
SoldatBot by Ben Barkay
==========================================
Index:
1. Developer notes
2. What is SoldatBot?
3. How do I use SoldatBot?
4. Startup file
5. Getting help
6. Thanks
1. Developer notes
I know the code isn't all commented out, I know the variable and method
naming is not all Java, and that lots of its parts are not the most
efficient they could be, my excuse: I'm very lazy. All for all, it does
work, and pretty nicely too - doesn't miss many features aswell.
- Ben
2. What is SoldatBot?
SoldatBot is a modular Java soldat administration bot. All of its features
are basically modules which are very scalable. You can create anything you
want, from IRC bots to fancy GUI applications.
SoldatBot is opensource, which means that if you don't like something about
it, you can change it. You are free to update and release it, though you
must always provide the up-to-date source in the package.
3. How do I use SoldatBot?
First of all, you need to have JRE installed. Go to http://www.java.com
and install the latest version of Java available. Then, edit the server.ini
file to match your server settings.
Now you may doubleclick Run.bat and the bot will start working.
4. Startup file
The startup.txt file contains the initial commands the engine receives
after it connects to the server. Whatever you write there is being treated
as an admin command and will call modules from the "adminCommands" folder.
Lines starting with "//" or "#" are ignored by the parser.
5. Getting help
You may get support over IRC, at the channel #soldat.il in the QuakeNet
network (irc.quakenet.org).
6. Thanks
EnEsCe - For helping with the refresh packet
jibble.org - A nice IRC bot API, st0lered
- Ben Barkay
-
Nice it migth be use full..
-
Thanks Ben, cya at channel for help ;)
-
That was fast, didn't think you'd release it so soon. ;)
I'm going to download it and have some fun with it now...
-
Indeed that was very quickly produced, does the job fine. Nice job.
-
I get this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .
I have jre1.5.0_11 installed.
-
Try recompiling it if you have JDK, the classes are compiled using JDK 1.6 so if you have another version try compiling the source with it.
- Ben
-
I get this error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .
I have jre1.5.0_11 installed.
have the same :(
-
download the latest version of Java from http://java.com
-
I have the latest version Ben.
-
yeah me2
-
meĀ²
=\
-
1.5 isn't the latest, 1.6 is...
-
JRE1_5_0_11 is the latest version from java.com But it's too much of an issue so I forget about it.
-
then you can download it from http://java.sun.com [=