Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Shubit on October 08, 2008, 11:00:19 am

Title: Invalid game version
Post by: Shubit on October 08, 2008, 11:00:19 am
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?
Title: Re: Invalid game version
Post by: 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
Title: Re: Invalid game version
Post by: Lead on October 08, 2008, 01:43:42 pm
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
Title: Re: Invalid game version
Post by: Xoleum on October 10, 2008, 10:30:26 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?
Title: Re: Invalid game version
Post by: Camel on October 10, 2008, 02:51:43 pm
bnls.valhallalegends.com has been out of date for a long time, try using a different server first.
Title: Re: Invalid game version
Post by: Shubit on October 11, 2008, 04:04:03 pm
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)


Quote
On another note you may have to edit the verbyte in one of the java classes as well
what?
Title: Re: Invalid game version
Post by: 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?
Title: Re: Invalid game version
Post by: DarkTooLs on October 13, 2008, 08:53:27 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:

Code: [Select]
games.getWrite("WAR3", "Version byte", "15");
games.getWrite("W3XP", "Version byte", "15");

This will fix the invalid game version issue.
Title: Re: Invalid game version
Post by: Explicit on October 13, 2008, 10:47:21 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:

Code: [Select]
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.
Title: Re: Invalid game version
Post by: Shubit on October 14, 2008, 02:19:01 pm
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:

Code: [Select]
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
Title: Re: Invalid game version
Post by: Sidoh on October 14, 2008, 04:12:00 pm
oh hi, we all know lots of German.
Title: Re: Invalid game version
Post by: Blaze on October 14, 2008, 04:21:20 pm
Keine Mühe.  :)
Title: Re: Invalid game version
Post by: Joe on October 14, 2008, 06:16:31 pm
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:

Code: [Select]
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.
Title: Re: Invalid game version
Post by: Lead on October 15, 2008, 08:27:25 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:

Code: [Select]
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?