Hi, I've noticed today, when testing my gamemode under a lot higher stress than it has been before that entities keep having their nwvars (eg. Set/GetNWInt) lagged behind on the client, apposed to the servers state;
For example:
[CODE]PRINT SHARED -> me:GetNWInt("BaseWars.AFK")
[Server] 4181.4599609375
[STEAM_0:1:39499099 (gtfo)] 4159.6796875
[STEAM_0:0:137517574 (isacq123)] 4159.6796875
[STEAM_0:1:69858443 (TheLegend)] 4159.6796875
[STEAM_0:0:127964356 (pottupoika123)] 4159.6796875[/CODE]
and an exmaple of this happening on non-player entities:
[IMG]http://puu.sh/m8dHY/0704f6f7e0.jpg[/IMG]
[CODE]PRINT SHARED -> this:GetNWInt("MaxHealth")
[Server] 500
[STEAM_0:0:137517574 (isacq123)] 0
[STEAM_0:0:130588054 (Podpalacz12345)] 0
[STEAM_0:0:41533894 (clickfinger)] 0
[STEAM_0:1:39499099 (gtfo)] 0
[STEAM_0:0:127964356 (pottupoika123)] 0
[STEAM_0:0:72590234 (Michal ( ͡° ͜ʖ ͡°))] 0
[/CODE]
The variables do it intermitantly, with no seemingly determined pattern, so i can't figure out a cause.
Any ideas if this is caused by my own insolence or misuse of something, or if it is an actual issue?
If it is, or if this has been previously explained then i aplogise in advance.
Are you using NWvars for your entities?
You should probably use datatables.
Ah yes, I forgot about datatables, I assume they are more reliable than nwvars then?
[QUOTE=Q2F2ZSBKb2huc;49387584]Ah yes, I forgot about datatables, I assume they are more reliable than nwvars then?[/QUOTE]
I believe so, yes. You could also experiment with the new NWvars, though I believe they aren't documented yet.
[QUOTE=ms333;49387599]I believe so, yes. You could also experiment with the new NWvars, though I believe they aren't documented yet.[/QUOTE]
Thanks for the help, I will try using datatables for the common data among my entities rather than nwvars then.
Edit:
Works, thanks.
Sorry, you need to Log In to post a reply to this thread.