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
impossible to tell if you have received a new message #6
Comments
Hi, I'm afraid I don't quite understand your issue yet... can you please mention more details about your problem? Any project or code you can share so the problem can be reproduced? Thanks, |
I seem to have the same problem, even when I shut down my server (I'm sending from Processing) Unity keep telling me the same message over and over. Actually on closer inspection it seems that Unity only gets the first message and ignores any other message that's coming in. For the code I am using the test code placed on an empty object in de gameworld. If there is anything to show this behaviour I would be glad to provide anything. |
It would help if you share a project reproducing the problem please. In any case, you may also want to check whether the timestamp in each of the packets change (so you know that you have received a new packet). Also, have a look into the test here if you haven't done it already: https://github.com/jorgegarcia/UnityOSC/blob/master/tests/oscControl.cs |
Hi, I encountered the same problem. Data is received by unity but only the first value is used in update. I've created a project for reproduction which you can download here: http://www.yourule.nl/unityOSC/IncommingOSCtest.zip Noteworthy: Maybe it's got something to do with this warning which pops up after pressing stop. (but not always): I'm running Unity 4.5.5 (but also tried 4.3.0) on MacOSX 10.9.5 I also made a very small sending app for testing on Mac and PC using MaxMSP for debugging purposes BTW, i've been using the sending part for a while now, and I must say I'm impressed by your work! |
I encounter the same problem on Unity 4.6 Beta 20. Sending to OF works fine, but it does not update. It only updates when i start and stop the unity editor. |
Update: |
Hack to make UpdateLogs() in OSCHandler.cs work:
|
Apologies for the delay on this reply. @yourule Thanks for pointing out a fix. If you think it's appropriate (and you well-tested it) please fork and do a pull request. Then I can review/merge the changes and other users of UnityOSC can benefit from them. |
Thank you for your reply. |
Hi everyone ! I got the same problem. The fix of yourule works. I did it another way (but I'm not sure this is better :p) In my unity app, I check an internal timestamp compared with the UnityOsc packet timestamp. The limitation I see is that you have to store a timestamp reference for each of your OSCServer. Which is annoying. Hope this will be fixed in the best manner found :) |
I can confirm this issue both on Unity 4.6 and Unity 5 ( I've used it without any issues in older versions ). Timestamps for all packets are "0". @jorgegarcia I've skimmed through the code and couldn't really pick out how timestamps are handled. Any insight would be very helpful. |
Hi @ntkeep and the rest, Apologies for the slow response! I've just commited the change 3dba77c for generating a timestamp using the machine time when it's zero. This would happen when receiving OSC packets from applications that don't send timestamps, or if the data is not deserialised properly. I've been doing a bit of testing today and all seems OK. Please pull and check whether this fixes the issues mentioned above. As always, feel free to create a new issue if you have further problems with UnityOSC :) Thanks, |
I'm not sure I understand the design of this library. Every other OSC lib I've used gets rid of old messages as you read them out. Even when I clear a ServerLog.log, the messages somehow come back.
I can't check to see if a OSCPacket is new because the TimeStamp on them is always 0.
The text was updated successfully, but these errors were encountered: