eAi Posted September 25, 2014 Share Posted September 25, 2014 I would expect that exporting methods for accessing a table would be more expensive than using un-synced element data. Calling methods between resources is a relatively expensive thing to do. setElementData and getElementData are great for syncing little bits of data easily. Unsynced, they're also a good way to share data between resources. If you don't care about doing either of those things, then the method described in the original post is obviously the best way to go - you're keeping your data inside the LUA virtual machine, which is much faster. Overusing synced element data - when you don't actually want to sync that data - is actually going to have quite a bit more of an impact than the original post states as it'll increase the amount of data that has to be sent (increasing bandwidth usage), increase the load on the clients and increase the load on the server (as some of the networking will be asynchronous). 1 Link to comment
Narrator Posted September 25, 2014 Share Posted September 25, 2014 eAi thank you. Really. Now i understand. But what is the best way for this method: creating client table for each player or creating serever table for all players? Link to comment
Narrator Posted September 25, 2014 Share Posted September 25, 2014 Why server? Why not client? I think client table for each player is more comfy than server table for all players. Link to comment
Anubhav Posted September 25, 2014 Share Posted September 25, 2014 Cheat-engine can hack it. Link to comment
eAi Posted September 25, 2014 Share Posted September 25, 2014 It depends what the data is. If you can put it on the server, you probably should, especially if it's something where the player would gain some advantage by change it. That's generally the principle of multiplayer networking - don't trust the client. Link to comment
Narrator Posted September 25, 2014 Share Posted September 25, 2014 Saml1er, Anubhav, eAi, thank you very-very much Link to comment
Kapupc Posted December 21, 2014 Share Posted December 21, 2014 so.. how dxscoreboard can get data from server side table like money, level, exp explain pls Link to comment
Saml1er Posted December 21, 2014 Share Posted December 21, 2014 so.. how dxscoreboard can get data from server side table like money, level, expexplain pls From table? Explain your question. O_o Link to comment
WASSIm. Posted December 31, 2014 Share Posted December 31, 2014 From table? Explain your question. O_o he mean if use script RottenFlesh for set/get element data how put info on scoreboard Link to comment
Recommended Posts