News:

Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!

Main Menu

SleepScript 0.2 Released

Started by chuck, August 01, 2007, 11:10:33 PM

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

chuck

After many months of delaying, I've finally shoved myself into releasing SleepScript 0.2

From the CHANGES file:

- Added (Un)ban functions
- Added (Un)squelch functions
- Added join function
- Added reconnect function
- Now licensed under GPL
- Removed all the partyline code. It makes the plugin way to bloated.
- Major changes to code structure. This makes the plugin much easier to maintain.
- Began using CVS. This makes it easier for me to work on the plugin from different computers.

Although I have STILL been lazy and have not worked on the HTML documentation, this is a step ahead. I make no promises for when the documentation will be finished though.

And, about the partyline being removed. I removed it because I felt it was kind of useless, and it was a pain to try to clean up. I'll probably make a partyline as a seperate plugin sometime, but I know I'll get lazy and that won't happen for a long time.

Anway, feedback about the new version would be appreciated. I'm kinda stumped about what to add feature wise next.

Go here to download the new SleepScript
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Joe

GPL != cool.

BSD == cool.

Make your pick.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


chuck

Quote from: Joex86/64] link=topic=9924.msg126302#msg126302 date=1186214398]
GPL != cool.

BSD == cool.

Make your pick.
Well then, call me by my Japanese name. Sosueme.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Joe

Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


pro_

after I enable plugin, if I try to reload bot I get

Error: java.lang.NullPointerException

chuck

#5
Quote from: pro_ on September 27, 2007, 09:53:31 PM
after I enable plugin, if I try to reload bot I get

Error: java.lang.NullPointerException
Do you have a Scripts folder in the CWD you launch the bot from? The plugin likes to do that when no script folder exists.

EDIT:
Also, if I remember correctly, you must restart the bot after enabling the plugin to make it work.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

pro_

scripts folder is in the javaop folder, it shouldnt be in the plugins folder should it?

I tried restarting bot too.

chuck

Quote from: pro_ on September 30, 2007, 04:15:10 PM
scripts folder is in the javaop folder, it shouldnt be in the plugins folder should it?

I tried restarting bot too.
For starting up the bot, try doing these commands:

cd ~/.javaop2
mkdir Scripts
java -jar JavaOp2.jar

(Note the S in scripts is capitalized)
If it still doesn't work, post the output here
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

GameSnake

Something came to mind while reading your post, could you use the party line code you removed and put it into the plug in you wanted to make as a separate program?  Would that work?

chuck

Quote from: GameSnake on October 01, 2007, 03:36:55 AM
Something came to mind while reading your post, could you use the party line code you removed and put it into the plug in you wanted to make as a separate program?  Would that work?
Probably, but making it possible to load/reload/unload scripts may be a bit tricky. Its not impossible, but it would take some effort.

If you want the code for the partyline, search my JavaOp plugins page for the older version, and run jar -xf on it. I warn you though that its EXTREMELY ugly code. Thats one of the reasons I removed it.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

pro_


java.lang.NullPointerException
        at PluginMain.listFilesRecursive(PluginMain.java:232)
        at PluginMain.activate(PluginMain.java:56)
        at pluginmanagers.PluginManager.activatePlugins(PluginManager.java:189)
        at bot.BotCore.<init>(BotCore.java:104)
        at bot.BotManager.startBot(BotManager.java:25)
        at _main.BotStart.main(BotStart.java:41)

chuck

Quote from: pro_ on October 01, 2007, 10:38:00 PM

java.lang.NullPointerException
        at PluginMain.listFilesRecursive(PluginMain.java:232)
        at PluginMain.activate(PluginMain.java:56)
        at pluginmanagers.PluginManager.activatePlugins(PluginManager.java:189)
        at bot.BotCore.<init>(BotCore.java:104)
        at bot.BotManager.startBot(BotManager.java:25)
        at _main.BotStart.main(BotStart.java:41)

Please post the unmodified ls -al output of your .javaop2 folder. There is a high chance you simply created a "scripts" folder instead of a "Scripts" folder. Capitalization matters :)
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

Chavo

Quote from: chuck on August 01, 2007, 11:10:33 PM
I'm kinda stumped about what to add feature wise next.

I know it doesn't apply as much when talking about a plugin, but generally when you can't decide what else your program needs you should finalize it.  It is easy to get carried away with a familiar project and let it suffer from feature bloat.

chuck

Quote from: Chavo on October 03, 2007, 01:19:46 AM
Quote from: chuck on August 01, 2007, 11:10:33 PM
I'm kinda stumped about what to add feature wise next.

I know it doesn't apply as much when talking about a plugin, but generally when you can't decide what else your program needs you should finalize it.  It is easy to get carried away with a familiar project and let it suffer from feature bloat.
mmm, good point. I probably will release it as stable and finished eventually. The only real things I will probably do to it is bugfixes and make it a little more closely tied with javaop's user database stuff.
Chucks Blog
JavaOp2 Plugins

Quote
Error, keyboard not connected. Press F1 to continue.

pro_

it is correctly capitalized.


total 2752
drwxr-xr-x   39 brianmcm  brianmcm    1326 Oct  1 21:45 .
drwxr-xr-x   63 brianmcm  brianmcm    2142 Oct  7 04:05 ..
-rw-r--r--    1 brianmcm  brianmcm    6148 Oct  1 21:41 .DS_Store
drwxr-xr-x   12 brianmcm  brianmcm     408 Dec 25  2005 .javaop2
-rw-r--r--    1 brianmcm  brianmcm     399 Oct  4 00:33 BW-1.aliases
-rw-r--r--    1 brianmcm  brianmcm     299 Oct  4 00:33 BW-1.flags
-rw-r--r--    1 brianmcm  brianmcm    3400 Oct  8 00:59 BW-1.jbb
-rw-r--r--    1 brianmcm  brianmcm     378 Oct  4 00:33 BW-1.jdb
-rw-r--r--    1 brianmcm  brianmcm     228 Oct  4 00:33 BW-1.level
-rw-r--r--    1 brianmcm  brianmcm     374 Sep 28 12:18 BW-1.plugin
-rw-r--r--    1 brianmcm  brianmcm     222 Oct  4 00:33 BW-1.quotes
-rw-r--r--    1 brianmcm  brianmcm   74141 Oct  4 00:55 BW-1.seen
-rwxr-xr-x    1 brianmcm  brianmcm  218766 Mar  9  2007 CommandlineConfiguration.jar
-rwxr-xr-x    1 brianmcm  brianmcm  218767 Mar  9  2007 JavaOp2.jar
drwxr-xr-x   44 brianmcm  brianmcm    1496 Oct  1 21:41 Plugins
-rw-r--r--    1 brianmcm  brianmcm     306 Apr 11 04:31 SC-1.aliases
-rw-r--r--    1 brianmcm  brianmcm     299 Apr 11 04:31 SC-1.flags
-rw-r--r--    1 brianmcm  brianmcm    3344 Oct  8 00:59 SC-1.jbb
-rw-r--r--    1 brianmcm  brianmcm     269 Apr 11 04:31 SC-1.jdb
-rw-r--r--    1 brianmcm  brianmcm     226 Apr  4  2007 SC-1.level
-rw-r--r--    1 brianmcm  brianmcm     219 Apr 11 04:31 SC-1.plugin
drwxr-xr-x    2 brianmcm  brianmcm      68 Oct  1 21:45 Scripts
-rwxr-xr-x    1 brianmcm  brianmcm  218762 Mar  9  2007 SelectPlugins.jar
-rwxr-xr-x    1 brianmcm  brianmcm  258839 Feb 10  2007 SwingGui.jar
-rw-r--r--    1 brianmcm  brianmcm     482 Oct  8 00:59 WC-1.aliases
-rw-r--r--    1 brianmcm  brianmcm     309 Oct  8 00:59 WC-1.flags
-rw-r--r--    1 brianmcm  brianmcm    3448 Oct  8 00:59 WC-1.jbb
-rw-r--r--    1 brianmcm  brianmcm    2981 Oct  8 00:59 WC-1.jdb
-rw-r--r--    1 brianmcm  brianmcm     226 Oct  8 00:59 WC-1.level
-rw-r--r--    1 brianmcm  brianmcm     371 Oct  1 21:48 WC-1.plugin
-rw-r--r--    1 brianmcm  brianmcm     222 Mar 10  2007 WC-1.quotes
-rw-r--r--    1 brianmcm  brianmcm  292540 Oct  8 01:05 WC-1.seen
-rw-r--r--    1 brianmcm  brianmcm    1467 Oct  1 21:48 _Colors.txt
-rw-rw-r--    1 brianmcm  brianmcm      10 Aug 29 12:44 _DefaultBots.txt
-rw-r--r--    1 brianmcm  brianmcm    1691 Oct  1 21:48 _GameData.txt
-rw-r--r--    1 brianmcm  brianmcm    1253 Oct  8 00:59 _GlobalMail.mail
-rw-rw-r--    1 brianmcm  brianmcm     567 Oct  1 21:48 _GlobalSettings.txt
drwxr-xr-x    6 brianmcm  brianmcm     204 Aug 16 07:32 docs
drwxr-xr-x   23 brianmcm  brianmcm     782 Apr  9 04:53 logs