Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: BenB on February 19, 2007, 08:10:02 pm

Title: SoldatBot - Java Scriptable Remote Admin Bot
Post 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:
Code: [Select]
==========================================
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
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: M.rSnow on February 19, 2007, 09:20:43 pm
Nice it migth be use full..
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: Leo on February 20, 2007, 01:23:12 am
Thanks Ben, cya at channel for help ;)
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: jrgp on February 20, 2007, 02:09:20 am
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...
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: EnEsCe on February 20, 2007, 05:05:22 am
Indeed that was very quickly produced, does the job fine. Nice job.
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: Leo on February 20, 2007, 08:41:16 am
I get this error:
Code: [Select]
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.
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: BenB on February 20, 2007, 01:55:11 pm
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
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: rumpel on February 24, 2007, 06:29:38 pm
I get this error:
Code: [Select]
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 :(
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: BenB on February 25, 2007, 06:12:10 am
download the latest version of Java from http://java.com
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: Leo on February 25, 2007, 11:23:14 am
I have the latest version Ben.
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: rumpel on February 25, 2007, 11:42:23 am
yeah me2
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: hunterz on February 25, 2007, 05:32:47 pm
meĀ²
=\
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: BenB on February 26, 2007, 03:02:00 am
1.5 isn't the latest, 1.6 is...
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: Leo on February 26, 2007, 05:10:54 am
JRE1_5_0_11 is the latest version from java.com But it's too much of an issue so I forget about it.
Title: Re: SoldatBot - Java Scriptable Remote Admin Bot
Post by: BenB on February 28, 2007, 05:44:29 am
then you can download it from http://java.sun.com [=