ZnoteAAC icon indicating copy to clipboard operation
ZnoteAAC copied to clipboard

proxy support

Open rookgaard opened this issue 3 years ago • 1 comments

That way if anyone have proxy server (in USA, Brazil or Austrialia for example) he can just uncomment world entry creation + player proxy entry. Because Cipsoft client won't allow for two the same character names, I'm adding suffix [proxy], so it require changes in engine to ignore that name part:

https://github.com/otland/forgottenserver/blob/master/src/protocolgame.cpp#L433

std::string characterName = msg.getString();

to

std::string rawCharacterName = msg.getString();
std::size_t proxyPos = rawCharacterName.find(" [");
std::string characterName = proxyPos != std::string::npos ? rawCharacterName.substr(0, proxyPos) : rawCharacterName;

rookgaard avatar Jan 21 '22 08:01 rookgaard

Wouldn't it be more organized to use a prefix instead of a suffix? Could you link me the code for this proxy system?

Znote avatar Jan 21 '22 09:01 Znote