fxed \r errors#121
Conversation
…ings
and .gitattributes typo ('test' instead of 'text'). There is also a bug in dependencies/gs2lib/src/CSettings.cpp. CSettings::getSettings() was explicitly converting line endings to CRLF
before saving, causing localip to be read as '10.x.x.x\r' which fails validation silently. Servers appear on the serverlist but clients cannot connect. I fixed the file by commenting out 'options.replaceAllI(n, rn);'
…ings
and .gitattributes typo ('test' instead of 'text'). There is also a bug in dependencies/gs2lib/src/CSettings.cpp. CSettings::getSettings() was explicitly converting line endings to CRLF
before saving, causing localip to be read as '10.x.x.x\r' which fails validation silently. Servers appear on the serverlist but clients cannot connect. I fixed the file by commenting out 'options.replaceAllI(n, rn);'
|
|
Thanks for the clarification. To answer your questions:
|
|
I think that this is better fixed in the gs2lib. I've checked and the handling of \r in the CSettings class is very poor and could even be an issue in the beta4 branch. I'll fix the CSettings stuff myself. It won't be an issue in the beta4 branch much longer, though, as I've been working on replacing CSettings with something much better. |
While investigating further, I also noticed TPlayerRC.cpp line 318 has the same pattern as CSettings: |
I fixed \r errors that were in the .txt files, which made it hard for GServers on Linux to get clients from other systems to connect.