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

Can't connect when running from Editor #26

Open
Sposito opened this issue Oct 19, 2020 · 2 comments
Open

Can't connect when running from Editor #26

Sposito opened this issue Oct 19, 2020 · 2 comments

Comments

@Sposito
Copy link

Sposito commented Oct 19, 2020

On macOS, if I do compile client it works just fine, but when running in editor it gets stuck in as shown in the screen shot:
image

Steps:

  1. Hit Play on Unity's editor
  2. select any client version
  3. add account name and psw
  4. hit login
  5. you will get stuck

What you expect:
Move on to character selection window

What you see:
Stuck in the character being loaded window.

@slavidodo I am programmer with unity experience, if you need help to look into this issue let me know.
For now since I am just evaluating it, I probably can get away with it just by debugging connected to the compiled game.

@Znote
Copy link

Znote commented Oct 26, 2020

slavidodo unfortunately died 28th of June. This project currently has no maintainer.

@latenightbuddha
Copy link

I know this is an old post but in hopes to help someone else having this issue (I assume it has something to do with unity editor not liking the way a new thread is being spawned and being blocked by the editor) you can add this patch code here:

v2-pipeline Patch2 - replace line 498 with below

new Task(() => _protocolLogin.Connect(ip, port)).Start();

or

v2-pipeline main - replace line 538 with below

new Task(() => _protocolLogin.Connect(ip, port)).Start();

PATCH CODE:

#if !UNITY_EDITOR
new Task(() => _protocolLogin.Connect(ip, port)).Start();
#else
_protocolLogin.Connect(ip, port);
#endif

Screenshot_115

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

No branches or pull requests

3 participants