Hi @ all
I like to use JavaOp as a Clanbot for my WarCraft III Clan. Everything was fine (download, installation, quick configuration), but when I try to connect now, the bot seems to have problems with the game version:
[16:37:28.703] INFO: Trying BNLS server: bnls.valhallalegends.com
[16:37:28.781] INFO: Resolving ip for server: europe.battle.net
[16:37:28.860] INFO: Resolves to 8 different addresses
[16:37:28.874] INFO: Choosing address 0 [europe.battle.net/213.248.106.66]
[16:37:28.878] INFO: Attempting to connect
[16:37:29.102] INFO: Connected to /213.248.106.66:6112
[16:37:29.106] INFO: Trying BNLS server: bnls.valhallalegends.com
[16:37:29.126] INFO: Connected to europe.battle.net:6112
[16:37:29.130] INFO: Sending protocol byte (0x01).
[16:37:29.148] INFO: Switching to Binary protocol.
[16:37:29.150] INFO: Sending authorization.
[16:37:29.885] INFO: Authorization sent, waiting for reply.
[16:37:29.890] INFO: Beginning to receive packets
[16:37:29.995] INFO: Checking server's signature...
[16:37:30.003] INFO: Server successfully authenticated -- it's Blizzard's
[16:37:30.542] INFO: CDKey and Version check sent.
[16:37:30.651] exceptions.InvalidVersion: Invalid game version
[16:37:30.653] Login.getLogin(Login.java:184)
[16:37:30.654] PluginMain.processedPacket(PluginMain.java:333)
[16:37:30.655] pluginmanagers.PluginRegistration.processedIncomingPacket(PluginRegistration.java:722)
[16:37:30.661] bot.PacketThread.run(PacketThread.java:179)
Can someone help me pls?
Try using a different BNLS server such as:
pyro.no-ip.biz
jbls.org
hdx.jbls.org
jbls.clanbnu.net
Quote from: Lead on October 08, 2008, 11:09:02 AM
Try using a different BNLS server such as:
pyro.no-ip.biz
jbls.org
hdx.jbls.org
jbls.clanbnu.net
On another note you may have to edit the verbyte in one of the java classes as well
Quote from: Lead on October 08, 2008, 01:43:42 PM
Quote from: Lead on October 08, 2008, 11:09:02 AM
Try using a different BNLS server such as:
pyro.no-ip.biz
jbls.org
hdx.jbls.org
jbls.clanbnu.net
On another note you may have to edit the verbyte in one of the java classes as well
And to what would that value be?
bnls.valhallalegends.com has been out of date for a long time, try using a different server first.
I tried the other BNLS Server and now it says:
[21:59:41.609] INFO: Server successfully authenticated -- it's Blizzard's
[21:59:41.615] java.lang.NumberFormatException: For input string: "3541311316"
[21:59:41.616] java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
[21:59:41.617] java.lang.Integer.parseInt(Integer.java:459)
[21:59:41.618] java.lang.Integer.parseInt(Integer.java:497)
[21:59:41.618] versioning.CheckRevision.checkRevision(CheckRevision.java:75)
[21:59:41.636] versioning.Game.checkRevision(Game.java:118)
[21:59:41.642] versioning.BNLSWrapper.getVersionCheck(BNLSWrapper.java:121)
[21:59:41.642] Login.getAuthCheck(Login.java:152)
[21:59:41.643] PluginMain.processedPacket(PluginMain.java:295)
[21:59:41.644] pluginmanagers.PluginRegistration.processedIncomingPacket(PluginRegistration.java:722)
[21:59:41.644] bot.PacketThread.run(PacketThread.java:179)
QuoteOn another note you may have to edit the verbyte in one of the java classes as well
what?
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
Quote from: Camel on October 13, 2008, 01:47:17 AM
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
no, its simply the verbyte is out of date.
Extract BNetLogin.jar, Open GameData.java for editing.
Go to the private void initialize() function, and change the getwrite functions for war3 and w3xp to the following:
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");
This will fix the invalid game version issue.
Quote from: DarkTooLs on October 13, 2008, 08:53:27 AM
Quote from: Camel on October 13, 2008, 01:47:17 AM
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
no, its simply the verbyte is out of date.
Extract BNetLogin.jar, Open GameData.java for editing.
Go to the private void initialize() function, and change the getwrite functions for war3 and w3xp to the following:
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");
This will fix the invalid game version issue.
You can also override the hardcoded value by editing ~/.javaop2/_GameData.txt.
Quote from: DarkTooLs on October 13, 2008, 08:53:27 AM
Quote from: Camel on October 13, 2008, 01:47:17 AM
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
no, its simply the verbyte is out of date.
Extract BNetLogin.jar, Open GameData.java for editing.
Go to the private void initialize() function, and change the getwrite functions for war3 and w3xp to the following:
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");
This will fix the invalid game version issue.
thx to everybody, now the bod is running :D
oh hi, we all know lots of German.
Keine Mühe. :)
Quote from: Shubit on October 14, 2008, 02:19:01 PM
Quote from: DarkTooLs on October 13, 2008, 08:53:27 AM
Quote from: Camel on October 13, 2008, 01:47:17 AM
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
no, its simply the verbyte is out of date.
Extract BNetLogin.jar, Open GameData.java for editing.
Go to the private void initialize() function, and change the getwrite functions for war3 and w3xp to the following:
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");
This will fix the invalid game version issue.
vielen dank, das hat geholfen, jetzt läuft der Bot :)
auch Danke für die Mühe der anderen ;)
Willkommen.
Quote from: Shubit on October 14, 2008, 02:19:01 PM
Quote from: DarkTooLs on October 13, 2008, 08:53:27 AM
Quote from: Camel on October 13, 2008, 01:47:17 AM
At a glance, that looks like a bug in JavaOp - something to do with unsigned number conversion perhaps?
no, its simply the verbyte is out of date.
Extract BNetLogin.jar, Open GameData.java for editing.
Go to the private void initialize() function, and change the getwrite functions for war3 and w3xp to the following:
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");
This will fix the invalid game version issue.
vielen dank, das hat geholfen, jetzt läuft der Bot :)
auch Danke für die Mühe der anderen ;)
that is gewd chocolat ja?