Author Topic: SleepScript 0.2 Released  (Read 15089 times)

0 Members and 2 Guests 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