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 (http://javaopplugins.googlepages.com/plugins)
GPL != cool.
BSD == cool.
Make your pick.
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.
Haha!
after I enable plugin, if I try to reload bot I get
Error: java.lang.NullPointerException
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.
scripts folder is in the javaop folder, it shouldnt be in the plugins folder should it?
I tried restarting bot too.
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
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?
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.
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)
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 :)
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.
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.
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
Wait, *asks silly question*, are there even any scripts in the folder? Thats why it may be giving that error...
So... what's this script do exactly? :o
Quote from: Blaze on October 09, 2007, 04:19:56 AM
So... what's this script do exactly? :o
Script? Do you mean the plugin?
If so, then it runs sleep scripts.
The best part about Sleep is when you get a YourCodeSucksException
I finally got internet back, and got javaop working. Now to make all my own commands. Thanks a bunch man. If there is anything you needed scripted in sleepscript, I'd do it.
I tried with scripts in the folder, perhaps it was one of the scripts that caused the error, let me see.
No the problem was the default scripts folder was ./Scripts, the null pointer was to current folder. Once I filled in the full path it worked.
Quote from: pro_ on October 23, 2007, 10:53:54 PM
No the problem was the default scripts folder was ./Scripts, the null pointer was to current folder. Once I filled in the full path it worked.
Oh, ok. The default works for me, but I guess some people may have issues with it...
is there a function to modify user flags?
Quote from: pro_ on October 23, 2007, 11:35:25 PM
is there a function to modify user flags?
Check the documentation. If you cant find it there, check the code. If its not there, then no.
Ya... how do i get this to work i pop up with an error when i start up the bot
Quote from: BoBbY)eD( on March 12, 2008, 11:02:41 AM
Ya... how do i get this to work i pop up with an error when i start up the bot
Whats the error say?
Sleepscript seems to get unstable after a while, I have 2 bots loaded using same scripts, and sometimes when i try to reload a script on one bot, the other responds, sometimes I have to reload the bot to reload a script.
Quote from: pro_ on April 03, 2008, 04:56:14 AM
Sleepscript seems to get unstable after a while, I have 2 bots loaded using same scripts, and sometimes when i try to reload a script on one bot, the other responds, sometimes I have to reload the bot to reload a script.
I'm not surprised, the code isnt the cleanest. If I get some time I'll try to tidy it up.