-
Notifications
You must be signed in to change notification settings - Fork 10
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
glass.clear() is terminating Connection #43
Comments
Part or problem was your code, recreating objects every tick instead of updating fields, like this:
Object creation is very "heavy" operation, changing single attribute (text, color, position) - not. Other part of problem was race condition in our code. I fixed it, but now every change has to be manually send to players with |
So I won't be able to run my program without a sleep(0.5) anymore or it is possible to keep up the live notification system without that sleep? |
No. As I said, updates are no longer send automatically, you need to call |
So I can just keep spamming .sync()? |
They aren't cheap (one call - one net packet), so no. Once per loop should be enough. One after every |
That was what I meant with spamming. Once per loop without a sleep. |
Tried updating fields in latest verson from jenkins and as soon as i call l = glass.setText(1,255,"Morning") i get the error lua:1:attempt to call nil what am i doing wrong? |
For some time OpenPeripheralCore returned strings instead of objects. Please update that too. |
thanks, now it is working |
when I use this program: http://pastebin.com/PA92J9PH
it terminates the Connection after a few Seconds, when I wear the glasses.
The Errormessage from the console/log:http://pastebin.com/7YPmFzuB
Hope you can help me
The text was updated successfully, but these errors were encountered: