Skip to content
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

proxy support #503

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rookgaard
Copy link
Contributor

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;

@Znote
Copy link
Owner

Znote commented Jan 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants