Josko / aura-bot

Warcraft III high-performance hosting bot written in C++14.
72 stars 41 forks source link

Error: logon failed - invalid username, disconnecting #85

Open nehuenpereyra opened 5 years ago

nehuenpereyra commented 5 years ago

Hello, I write because I already set up a pvpGN server that works and now I want to mount maps so that users can play. Install aura-bot without any problem but when configuring the aura.cfg file I found that I did not know some data. Also with the data that I knew try to run Aura Bot but I got the following error:

[BNET: myServerAlias] attempting to auth as Warcraft III: The Frozen Throne [BNET: myServerAlias] cd keys accepted [BNET: myServerAlias] logon failed - invalid username, disconnecting [BNET: myServerAlias] disconnected from battle.net

My file aura.cfg

bnet_server = myServer bnet_serveralias = myServerAlias bnet_username = userOfBnet bnet_password = passOfUser

Is it an administrator account that you have in battlenet with pvpGN?

bnet_rootadmin = ?? bnet_custom_war3version = 27

How to get this data from my pvpGN provider?

bnet_custom_exeversion = ?? bnet_custom_exeversionhash = ?? bnet_custom_passwordhashtype = pvpgn bnet_custom_pvpgnrealmname = PvPGN Realm

It would be very helpful if someone knows how to solve the problem.

Josko commented 5 years ago

Hey, just in case it wasn't clear, the hostbot connects to PvPGNs but it doesn't have to be yours. I guess you mean you registered to one etc.

[BNET: myServerAlias] attempting to auth as Warcraft III: The Frozen Throne [BNET: myServerAlias] cd keys accepted [BNET: myServerAlias] logon failed - invalid username, disconnecting [BNET: myServerAlias] disconnected from battle.net

The server is returning that your login info is being rejected. Means something in the aura.cfg file is not there.

Is it an administrator account that you have in battlenet with pvpGN?

bnet_rootadmin = ??

No, these are the server usernames that have the power to add additional admins to the bot. Think of it the highest privileged users to the bot.

How to get this data from my pvpGN provider?

bnet_custom_exeversion = ?? bnet_custom_exeversionhash = ?? bnet_custom_passwordhashtype = pvpgn bnet_custom_pvpgnrealmname = PvPGN Realm

It would be very helpful if someone knows how to solve the problem.

Try with bnet_custom_exeversion and bnet_custom_exeversionhash empty, if this fails, then we could explore further options. bnet_custom_passwordhashtype has to stay with pvpgn, you did this correctly. Alternatively, if you are using the official BNET server, it has to be empty.