-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to GameSurge not working for some #481
Comments
This exception is most likely raised by Need to attach a debugger and observe which command raises the exception. |
+1. Printing stacktrace might be also helpful:
- Logger.Log("Unable to connect to the server. " + ex.Message);
+ Logger.Log("Unable to connect to the server. " + ex.Message + "\n" + ex.StackTrace); |
|
private void HandleMessage(string message)
{
string msg = overMessage + message;
overMessage = "";
while (true)
{
int commandEndIndex = msg.IndexOf("\n");
if (commandEndIndex == -1) whatever;
else if (msg.Length != commandEndIndex + 1)
{
// throw exception here? so commandEndIndex is 0?
string command = msg.Substring(0, commandEndIndex - 1); |
Seems like |
diff --git a/DXMainClient/Online/Connection.cs b/DXMainClient/Online/Connection.cs
index ba1341ba..f8e8c570 100644
--- a/DXMainClient/Online/Connection.cs
+++ b/DXMainClient/Online/Connection.cs
@@ -499,7 +499,7 @@ namespace DTAClient.Online
/// <param name="message">The message.</param>
private void HandleMessage(string message)
{
- string msg = overMessage + message;
+ string msg = overMessage + message.Trim();
overMessage = "";
while (true)
{ |
Problem:
Some players from the RotE client are experiencing connection issues to GameSurge. They did not have this issue with the client before Net7 changes.
Client logs supplied from latest client:
the server. Length cannot be less than zero. (Parameter 'length')
Previous client.log working in cliente before all NET7 changes:
The text was updated successfully, but these errors were encountered: