Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: chuck on August 01, 2007, 11:10:33 pm

Title: SleepScript 0.2 Released
Post by: chuck on August 01, 2007, 11:10:33 pm
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)
Title: Re: SleepScript 0.2 Released
Post by: Joe on August 04, 2007, 03:59:58 am
GPL != cool.

BSD == cool.

Make your pick.
Title: Re: SleepScript 0.2 Released
Post by: chuck on August 04, 2007, 12:45:54 pm
GPL != cool.

BSD == cool.

Make your pick.
Well then, call me by my Japanese name. Sosueme.
Title: Re: SleepScript 0.2 Released
Post by: Joe on August 05, 2007, 03:34:11 pm
Haha!
Title: Re: SleepScript 0.2 Released
Post by: 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
Title: Re: SleepScript 0.2 Released
Post by: chuck on September 27, 2007, 09:58:03 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.
Title: Re: SleepScript 0.2 Released
Post by: 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.
Title: Re: SleepScript 0.2 Released
Post by: chuck on September 30, 2007, 06:54:29 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:
Code: [Select]
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
Title: Re: SleepScript 0.2 Released
Post by: 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?
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 01, 2007, 06:03:13 pm
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.
Title: Re: SleepScript 0.2 Released
Post by: 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)
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 02, 2007, 06:23:49 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 :)
Title: Re: SleepScript 0.2 Released
Post by: Chavo on October 03, 2007, 01:19:46 am
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.
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 03, 2007, 05:30:43 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.
Title: Re: SleepScript 0.2 Released
Post by: pro_ on October 08, 2007, 01:58:49 am
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
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 08, 2007, 12:52:00 pm
Wait, *asks silly question*, are there even any scripts in the folder? Thats why it may be giving that error...
Title: Re: SleepScript 0.2 Released
Post by: Blaze on October 09, 2007, 04:19:56 am
So... what's this script do exactly?  :o
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 09, 2007, 06:00:41 pm
So... what's this script do exactly?  :o
Script? Do you mean the plugin?

If so, then it runs sleep scripts.
Title: Re: SleepScript 0.2 Released
Post by: Camel on October 09, 2007, 06:42:11 pm
The best part about Sleep is when you get a YourCodeSucksException
Title: Re: SleepScript 0.2 Released
Post by: O)Matt_Burch on October 12, 2007, 12:17:37 pm
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.
Title: Re: SleepScript 0.2 Released
Post by: pro_ on October 23, 2007, 10:44:26 pm
I tried with scripts in the folder, perhaps it was one of the scripts that caused the error, let me see.
Title: Re: SleepScript 0.2 Released
Post by: 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.
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 23, 2007, 11:19:57 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...
Title: Re: SleepScript 0.2 Released
Post by: pro_ on October 23, 2007, 11:35:25 pm
is there a function to modify user flags?
Title: Re: SleepScript 0.2 Released
Post by: chuck on October 24, 2007, 07:01:48 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.
Title: Re: SleepScript 0.2 Released
Post by: 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
Title: Re: SleepScript 0.2 Released
Post by: chuck on March 15, 2008, 11:10:47 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?
Title: Re: SleepScript 0.2 Released
Post by: 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.
Title: Re: SleepScript 0.2 Released
Post by: chuck on April 04, 2008, 06:09:30 pm
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.