Bonsai Posted January 7, 2016 Share Posted January 7, 2016 Hey Guys, I was just trying to use "getLatentEventHandles" clientside, but it doesn't seem to work. I triggered a very slow latent event, made one client and one server-side command to test that. Only the serverside command returned the correct value. Is this function not working the way I think on clientside or is there a different problem? Bonsai Link to comment
Gallardo9944 Posted January 7, 2016 Share Posted January 7, 2016 Clientside function returns latent events triggered from the client, serverside - from the server. Trigger client with information to know server data. Link to comment
Moderators IIYAMA Posted January 7, 2016 Moderators Share Posted January 7, 2016 What is the bandwidth limit? How large is the transfer? And do you have ping in your test server? And how is your code structure... Test code, you can use. addEventHandler("onClientRender",root, function () dxDrawText(#getLatentEventHandles(),300,300) end) Link to comment
Bonsai Posted January 7, 2016 Author Share Posted January 7, 2016 What is the bandwidth limit? How large is the transfer? And do you have ping in your test server?And how is your code structure... Test code, you can use. addEventHandler("onClientRender",root, function () dxDrawText(#getLatentEventHandles(),300,300) end) Well, I already tested and its not a that complicated task. Code and other stuff doesn't have much to do with the problem. Clientside function returns latent events triggered from the client, serverside - from the server. Trigger client with information to know server data. That seems to be the problem then.. Pretty bad problem even. This way the server has to do the check for all players and send it to them. That kinda sucks. Anyway, thanks for making this clear. Link to comment
Moderators IIYAMA Posted January 7, 2016 Moderators Share Posted January 7, 2016 If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles(). Link to comment
Bonsai Posted January 7, 2016 Author Share Posted January 7, 2016 If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles(). Right, but it was triggerLatentClientEvent, therefore serverside, then the client doesn't seem to know about the handles. Link to comment
Moderators IIYAMA Posted January 7, 2016 Moderators Share Posted January 7, 2016 Ah, now I understand your struggle. My bad. Link to comment
Bonsai Posted January 7, 2016 Author Share Posted January 7, 2016 Ah, now I understand your struggle. My bad. Maybe I should have mentioned which direction I'm talking about. Now I'm requesting the status every 500ms from the server for every client. Bonsai Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now