Page 1 of 1

[SOLVED] SUPPORTED SFS VARIABLE TYPES

Posted: 01 Jun 2017, 10:38
by TryMyGames
SFSError: Unsupport SFS Variable type: Byte

Really????
Why can't I optimize the network traffic by using smaller data types??? It is very frustrating because custom extension requests supports byte and short types :(

For example I want to add a user variable that can be an int value between 0-3, should I use int or a SFSObject with a byte variable in it?? Which one take more traffic?

Re: SUPPORTED SFS VARIABLE TYPES

Posted: 01 Jun 2017, 13:16
by Lapo
You can use an SFSObject with whatever values/types you need.
Cheers

Re: SUPPORTED SFS VARIABLE TYPES

Posted: 01 Jun 2017, 13:25
by TryMyGames
TryMyGames wrote:For example I want to add a user variable that can be an int value between 0-3, should I use int or a SFSObject with a byte variable in it?? Which one take more traffic?


If int takes 4 bytes, then how much will take a SFSObject with a byte int it?

Re: SUPPORTED SFS VARIABLE TYPES

Posted: 01 Jun 2017, 14:12
by TryMyGames
Lapo wrote:You can use an SFSObject with whatever values/types you need.
Cheers


I asked another question ;) Thanks.

Re: SUPPORTED SFS VARIABLE TYPES

Posted: 01 Jun 2017, 14:47
by Lapo
You can dump the SFSObject via getDump() and getHexDump() and count the bytes.