shupershuff / Diablo2RLoader

D2rLoader - Diablo 2: Resurrected launcher for multi-boxing
MIT License
61 stars 11 forks source link

Unable to connect to battle net #39

Closed CAPsMANyo closed 4 months ago

CAPsMANyo commented 4 months ago

I'm unable to connect to battle net. I'm using simple password auth, no MFA. My accounts.csv looks like this

ID,Acct,AccountLabel,Batches,TimeActive,CustomLaunchArguments,AuthenticationMethod,PW,Token
1,email1@gmail.com,account1,,,,Parameter,password1,
2,email2@gmail.com,account2,,,,Parameter,password2,

When I run the launcher I see this error before it eventually goes the the menu. I'm able to launch instances but none can connect to battle.net

Screenshot 2024-06-15 215816

shupershuff commented 4 months ago

Did you obtain account.csv from the latest release zip or directly from this Github page? Don't download accounts.csv from the repo directly, I've edited it for the new version which I'll be releasing soon as the new script will no longer use the PWIsSecureString column.

CAPsMANyo commented 4 months ago

I had cloned the entire repo. I'll try downloading the release.

shupershuff commented 4 months ago

I had clones the entire repo. I'll try downloading the release.

Blame my GitHub inexperience/incompetence for that :)

CAPsMANyo commented 4 months ago

I'm now using the releases zip. No errors in the program, but both accounts say "Cannot connect to server"

shupershuff commented 4 months ago

I just released the new version which may help (made it a bit easier to reset passwords). If it's not connecting then it's one of the following issues:

CAPsMANyo commented 4 months ago

I'm actually still having the same issue with the latest release. I added this write-host on line 2946

if ($Script:AccountChoice.AuthenticationMethod -eq "Parameter" -and $Script:ForceAuthToken -ne $True -and $Script:Config.ForceAuthTokenForRegion -notmatch $RegionLabel){
    $arguments = (" -username " + $Script:acct + " -password " + $Script:PW + " -address " + $Script:Region + " " + $CustomLaunchArguments).tostring()
    Write-Host = $arguments
}

And when it outputs, after the -username is blank. Happens with either account I'm using. I'll do some more debugging and see if I can figure out where it drops.

Edit: No MFA enabled on either account, accounts aren't locked, regions aren't locked. Both accounts work fine launching from battle.net

shupershuff commented 4 months ago

After -username it should show the email address of the account that your signing into. It must be an issue with what's in accounts.csv. What does your accounts.csv look like? Does it look something like this:

"1","your.email@email.com","BO Barb","","3.16:00:12.5809042","","Parameter","",""

Contact me via Discord if you want to share anything you don't feel comfortable sharing here, my username is Shupershuff.

CAPsMANyo commented 4 months ago

Thanks, I messaged you on discord.

CAPsMANyo commented 4 months ago

Issue related to ConvertPlainTextPassword being set to false. Leave True to avoid issues. Also recommend switching all accounts to Token based auth instead of password.

shupershuff commented 4 months ago

Issue related to ConvertPlainTextPassword being set to false. Leave True to avoid issues. Also recommend switching all accounts to Token based auth instead of password.

Thanks for your feedback and testing! Issue with ConvertPlainTextPassword will be fixed in next release. I've updated readme to further highlight Auth Token setup step for problematic accounts.

Cheers!