
Originally Posted by
Lautaro
nice work!
I found two issues that most launchers have. On form1.cs line #87:
Code:
sw.WriteLine("start BlackDesert64.exe" + " " + textBoxUserName.Text + ", " + textBox_Password.Text);
There should be no space at the beginning of the password. By doing that and having the auto-registration enabled in the server, you're basically adding an empty space at the beginning of all passwords.
Secondly, by default Black Desert Online uses the combination of email + password for authentication, not username + password. By using username + password in the launchers and having auto-registration enabled in the server, the accounts are created with no email address. Instead the auto-registration sets the account username where the email address should be.
Here's a tip for you guys that want to do this in a clearer way using string interpolation (C# 6.0 or later):
Where you have :
Code:
sw.WriteLine("start BlackDesert64.exe" + " " + textBoxUserName.Text + "," + textBox_Password.Text);
you can use string interpolation to make it a little more readable :
Code:
sw.WriteLine($"start BlackDesert64.exe {textBoxUserName.Text},{textBox_Password.Text}");
None of that messy concatenation. You get a better idea exactly where spaces/punctuation/etc and the data you are putting out are.