Author Topic: SleepScript 0.2 Released  (Read 12078 times)

0 Members and 1 Guest are viewing this topic.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
SleepScript 0.2 Released
« 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
Chucks Blog
JavaOp2 Plugins

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

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: SleepScript 0.2 Released
« Reply #1 on: August 04, 2007, 03:59:58 am »
GPL != cool.

BSD == cool.

Make your pick.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #2 on: August 04, 2007, 12:45:54 pm »
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.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: SleepScript 0.2 Released
« Reply #3 on: August 05, 2007, 03:34:11 pm »
Haha!
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #4 on: September 27, 2007, 09:53:31 pm »
after I enable plugin, if I try to reload bot I get

Error: java.lang.NullPointerException

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #5 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.
« Last Edit: September 27, 2007, 09:59:53 pm by chuck »
Chucks Blog
JavaOp2 Plugins

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

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #6 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.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #7 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
Chucks Blog
JavaOp2 Plugins

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

Offline GameSnake

  • News hound
  • Hero Member
  • *****
  • Posts: 2937
    • View Profile
Re: SleepScript 0.2 Released
« Reply #8 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?

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #9 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.
Chucks Blog
JavaOp2 Plugins

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

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #10 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)

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #11 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 :)
Chucks Blog
JavaOp2 Plugins

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

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: SleepScript 0.2 Released
« Reply #12 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.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #13 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.
Chucks Blog
JavaOp2 Plugins

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

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #14 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

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #15 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...
Chucks Blog
JavaOp2 Plugins

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

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: SleepScript 0.2 Released
« Reply #16 on: October 09, 2007, 04:19:56 am »
So... what's this script do exactly?  :o
And like a fool I believed myself, and thought I was somebody else...

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #17 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.
Chucks Blog
JavaOp2 Plugins

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

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: SleepScript 0.2 Released
« Reply #18 on: October 09, 2007, 06:42:11 pm »
The best part about Sleep is when you get a YourCodeSucksException

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline O)Matt_Burch

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SleepScript 0.2 Released
« Reply #19 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.

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #20 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.

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #21 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.
« Last Edit: October 23, 2007, 11:05:21 pm by pro_ »

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #22 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...
Chucks Blog
JavaOp2 Plugins

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

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #23 on: October 23, 2007, 11:35:25 pm »
is there a function to modify user flags?

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #24 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.
Chucks Blog
JavaOp2 Plugins

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

Offline BoBbY)eD(

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: SleepScript 0.2 Released
« Reply #25 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

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #26 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?
Chucks Blog
JavaOp2 Plugins

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

Offline pro_

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: SleepScript 0.2 Released
« Reply #27 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.

Offline chuck

  • Full Member
  • ***
  • Posts: 335
  • Canadian Biathlete
    • View Profile
    • Chucks Blog
Re: SleepScript 0.2 Released
« Reply #28 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.
Chucks Blog
JavaOp2 Plugins

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