Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Joe on June 11, 2009, 10:33:43 pm

Title: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Joe on June 11, 2009, 10:33:43 pm
My goal with this final release is to polish the bot inside and out, so that it'll be able to be used hassle-free until JavaOp3 comes out.

javaop2_pub - This package has been removed from the source tree.
javaop2 - This package is now the build target for all plugins. I don't know why there were two in the first place, but it's fixed now. javaop2 - util.Statstring - New class for statstring parsing. Can currently parse client IDs, as well as wins for StarCraft and WarCraft II, and clan names for WarCraft III.
javaop2 - constants.PacketConstants - Gave names to a ton of unknown packets. Still need to re-do []packetConstants.

BNetLogin - versioning.BNLSWrapper - Updated the list of BNLS servers. Current list: alendar.no-ip.org, jbls.org, jbls.idiat.com, distant.no-ip.org, ribose.no-ip.org, phix.no-ip.org
BNetLogin - versioning.BNLSWrapper - Rewrote getVersionByte and getVersionCheck to be much more readable, and use a more solid method of dealing with broken servers. Now, the server will be removed from the list and the function will recurse. Also, this gives a bit less error output.
BNetLogin - cdkey.War3KeyDecode - Verified that new 26-character keys work correctly with Diablo II and WarCraft II. It's been like this from the start, but I finally verified it
BNetLogin - cdkey.CDKeyDecode - This class is now used only to construct the other decoders. Numeric decoding moved to its own class.
BNetLogin - cdkey.NumericKeyDecode - New class based off of CDKeyDecode. BNetLogin - The Warden packet won't show up as unhandled anymore:
[22:28:21.958] ERROR: [BNET] Ignoring Warden challenge -- Disconnection in two minutes.

SwingGui - gui.ChannelList - A user's clan is now listed if they're on WC3.



Also, the login output has changed. Several of the redundant lines have been removed, and [BNLS] and [BNET] tags have been added, Stealthbot style:
[17:43:34.489] INFO: [BNLS] Server set to alendar.no-ip.org
[17:43:34.551] INFO: [BNET] Looking up useast.battle.net..
[17:43:35.401] INFO: [BNET] Got 1 addresses. Using: useast.battle.net/63.240.202.121
[17:43:35.405] INFO: [BNET] Connecting..
[17:43:36.613] INFO: [BNET] Connected to /63.240.202.121:6112
[17:43:36.626] INFO: [BNLS] Server set to alendar.no-ip.org
[17:43:36.653] INFO: [BNET] Switched to binary chat protocol.
[17:43:40.009] INFO: [BNET] Authorization info sent, waiting for reply.
[17:43:44.565] INFO: [BNET] CDKey and Version check sent.
[17:43:46.053] INFO: [BNET] CDKey and Version check successful.  Attempting to log in.
[17:43:47.687] INFO: [BNET] Logon successful! Entering chat.



DOWNLOADS:
JavaOp2.zip is all the JAR files, which as always include the source code. (1.2MB)
JavaOp2 Source.zip is the source files, directly swiped from my Eclipse workspace after a clean operation. (1.0MB)
Title: Re: JavaOp2 b44 upcoming changes
Post by: Camel on June 23, 2009, 05:27:30 pm
You should prepend com.javaop. to all your package names, and use a manifest to instruct the bot on how to load plugins. Currently, you're exploiting an implementation quirk of JVMs where ClassLoaders have scope. If you were to run JavaOp in a (theoretical) JVM that kept all classes in a globally visible scope, your plugins would clash for sharing the same class names.
Title: Re: JavaOp2 b44 upcoming changes
Post by: Joe on June 23, 2009, 06:46:19 pm
I'm not sure, but I think that'd require a ground-up re-write for the most part. I feel that beta 44 will be the final beta of JavaOp2, and I'm trying to clean up all the code to the point that it's copypasta-ready for JavaOp3.
Title: Re: JavaOp2 b44 upcoming changes
Post by: Chavo on June 23, 2009, 08:06:30 pm
A ground-up rewrite to do some refactoring? lol...
Title: Re: JavaOp2 b44 upcoming changes
Post by: iago on June 23, 2009, 08:11:41 pm
A ground-up rewrite to do some refactoring? lol...
I believe he's suggesting a change to the core way the bot works -- it would break compatibility with every plugin. It'd be a *ton* of re-writing.

Maybe not ground-up, but pretty close!
Title: Re: JavaOp2 b44 upcoming changes
Post by: Joe on June 23, 2009, 10:57:21 pm
A ground-up rewrite to do some refactoring? lol...
I believe he's suggesting a change to the core way the bot works -- it would break compatibility with every plugin. It'd be a *ton* of re-writing.

Maybe not ground-up, but pretty close!

Ground up, minus the few servings of copypasta I mentioned earlier.
Title: Re: JavaOp2 final edition changes
Post by: Explicit on June 24, 2009, 01:50:04 am
You should include the date for any changes/updates made to the bot when you edit your post. You know, to keep changes clear. Or alternatively, just paste the changelog if you're keeping one. :P

Keep it up, Joe.
Title: Re: JavaOp2 final edition changes
Post by: Newby on June 24, 2009, 02:27:37 pm
JavaOp3? lol.

How about COp? Let's write a bot in C! I even have a cool slogan:

COp -- Policing your channel since 2009
Title: Re: JavaOp2 final edition changes
Post by: Joe on June 25, 2009, 12:26:41 am
I thought of Cop and realized it'd be a really lame name. That, and I don't know enough C. That's an awesome slogan though, I'll keep it in mind.
Title: Re: JavaOp2 final edition changes
Post by: rabbit on June 25, 2009, 07:48:55 am
JavaOp3? lol.

How about COp? Let's write a bot in C! I even have a cool slogan:

COp -- Policing your channel since 2009
I'd do it.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Newby on June 26, 2009, 02:26:46 pm
I'd be down to give it a shot. C or C++.
Title: Re: JavaOp2 b44 upcoming changes
Post by: Camel on June 28, 2009, 08:33:09 pm
A ground-up rewrite to do some refactoring? lol...
I believe he's suggesting a change to the core way the bot works -- it would break compatibility with every plugin. It'd be a *ton* of re-writing.

Maybe not ground-up, but pretty close!
The refactoring is trivial (at least it is with Eclipse), and modifying the plugin loader to get the plugin's main class name from a manifest would take fewer than 5 lines of code. Nothing would need to be re-written.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: tazo on July 07, 2009, 11:23:35 am
Where is the download link for this?  :o
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Newby on July 07, 2009, 02:32:36 pm
Where is the download link for this?  :o

Joe attached them to the post, which means only x86 members at the moment can download them.

Hopefully someone uploads them somewhere. :)
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: iago on July 07, 2009, 02:39:39 pm
Or fixes the permissions on the forum.. :P
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: tazo on July 07, 2009, 04:14:42 pm
Well could one of you download it, megaupload it and PM me a link? I would appreciate it.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Chavo on July 07, 2009, 05:25:43 pm
Didn't joe recently put this on google code?
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Blaze on July 07, 2009, 05:33:55 pm
Probably

http://maide.ca/javaop/

I also updated the change log, and categorized new things as they were in the last change log.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: tazo on July 07, 2009, 05:44:12 pm
Yeah, it's on google code, but there are no downloads there.

Thanks blaze!
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Joe on July 11, 2009, 09:36:53 pm
Yeah, it's on google code, but there are no downloads there.

Thanks blaze!

The google code one is beta 43. I haven't updated the SVN, and I'm pretty lazy.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: MyndFyre on August 03, 2009, 07:22:43 pm
Yeah, it's on google code, but there are no downloads there.

Thanks blaze!

The google code one is beta 43. I haven't updated the SVN, and I'm pretty lazy.
Yeah, that right-click commit can be pretty tough.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Camel on August 04, 2009, 05:28:10 am
Yeah, that right-click commit can be pretty tough.
He wanted to send me a zip of the source so I would commit it for him...

[edit] I wonder if he'd have sent it to me with .svn directories intact X'D
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: fearful on October 02, 2009, 03:35:14 pm
Still no download link? Someone release it ;D
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Joe on October 02, 2009, 10:32:48 pm
They're attached to the first post. You could go to the members thread and PM a leader, asking them to fix permissions. They won't do it for me.
Title: Re: JavaOp 2.1.1 released! (Formerly beta 44)
Post by: Blaze on October 02, 2009, 10:57:42 pm
http://maide.ca/javaop/JavaOp2_b44.zip