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

Login Unknown error with the Gui Handler #7

Open
oliverde8 opened this issue May 2, 2014 · 1 comment
Open

Login Unknown error with the Gui Handler #7

oliverde8 opened this issue May 2, 2014 · 1 comment

Comments

@oliverde8
Copy link
Contributor

Hi, I have recently being tracking down an Login Unknown error being thrown when displaying widgets or hiding them. This is quite a problem for us as we use the same window instance for all the players and refresh them for everyone. Problem is once an a while I reset the window so the window id changes, when this happens and the old windows aren't hidden they stay on the screen "forever".

To create them I do $win = Window::Create(Null);
then when a new player connect I update only that players widget because I need to refresh it(Maniascript updated data won't be uptodate so server controller need to do it)
$win->show($login);
Then to destroy all the windows
Window::EreaseAll();
And finnally when a player disconnects
Window::Erease($login);

When testing with fake players I couldn't reproduce the problem. It happens when player disconnects from the server just while the windows are being destroyed or created or at least that is what I believe.

When solution that should work is to keep the same windows id for a widget so that even it doesen't work once it fixes it self the next time, the other one would be to try and fix it in the Gui Handler. I might also being doing something wrong XD

@oliverde8
Copy link
Contributor Author

We have done some tests today and the problem can appear with all windows that was created using Window::Create(Null);
So the window I update arent the only ones affected by this. they might not show or might not hide.

@oliverde8 oliverde8 reopened this May 3, 2014
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

1 participant