Hi,
I am doing one task to improve user look and feel. For that i need to store data in DB and than that data will fetch each time when Player do any activity. So I am trying to do this by USER_VARIABLE.
Is this safe to store data in user_variable?
Did we need to store user preferences in user_variable?
Or
Can we update SFS2x Object by other server call?
Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
Hi,
I am not sure what you mean by "safe"? Safe as in secure?
UserVariables by default are transmitted to all other players in the Room, so if you have values that you want to keep private you will need to make the UserVariable private so that only its owner will see it.
Hope it helps
I am not sure what you mean by "safe"? Safe as in secure?
UserVariables by default are transmitted to all other players in the Room, so if you have values that you want to keep private you will need to make the UserVariable private so that only its owner will see it.
Hope it helps
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
Thanks for quick reply,
Yes safe means secure.
That means i will get uservariables in all rooms where player go and can I update private user variable(Updation done by Client)?
But still i having one question.
Can i update SFS2x Player uservariable from other server(like Tomcat)?
Yes safe means secure.
That means i will get uservariables in all rooms where player go and can I update private user variable(Updation done by Client)?
But still i having one question.
Can i update SFS2x Player uservariable from other server(like Tomcat)?
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
nik0990 wrote:Yes safe means secure.
That means i will get uservariables in all rooms where player go and can I update private user variable(Updation done by Client)?
Yes you can update variables from client side or server side.
But still i having one question.
Can i update SFS2x Player uservariable from other server(like Tomcat)?
In theory you could but it's kind of complicated to implement because you need Tomcat to call an SFS2X servlet via HTTP.
The servlet then should call the Extension which should change the variables.
Can you explain a bit more what you're trying to do? Maybe there is an easier way.
Also SmartFoxServer 2X runs its own servlet container (Jetty), so maybe you could use that instead of Tomcat? For better integration I mean.
Cheers
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
I have one project in tomcat and i will integrate few rest API calls to that project.(It is place some where else)
Now I need to update user preference and than preform action for that i need to get user preference on every event from DB.
To optimize this i want to use USER_VARIABLE and want to update it on run time.
Example:
Player Change some his/her preferences and this API call to tomcat server and this API insert/update player preference in DB.
SFS2x(Game Server) will read this preference on every event(like take seat,leave seat etc) from DB. To minimize/optimize this I want Tomcat server to update SFS2x player USER_VARIABLES.
If this is possible Please give me the way to do it.
Or This is the good idea or not to update SFS2x user_variable from other server(tomcat)?
Thanks in advance
Now I need to update user preference and than preform action for that i need to get user preference on every event from DB.
To optimize this i want to use USER_VARIABLE and want to update it on run time.
Example:
Player Change some his/her preferences and this API call to tomcat server and this API insert/update player preference in DB.
SFS2x(Game Server) will read this preference on every event(like take seat,leave seat etc) from DB. To minimize/optimize this I want Tomcat server to update SFS2x player USER_VARIABLES.
If this is possible Please give me the way to do it.
Or This is the good idea or not to update SFS2x user_variable from other server(tomcat)?
Thanks in advance
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
Why not using SmartFoxServer for this logic?
The client could send the new preferences to the SFS2X Extension which would update the DB and the UserVariables.
You would save a good number of steps and it would be simpler (and faster).
Cheers
The client could send the new preferences to the SFS2X Extension which would update the DB and the UserVariables.
You would save a good number of steps and it would be simpler (and faster).
Cheers
Re: Can I use USER_VARIABLE to store data and Is it available throughout the login and is it Safe?
Thinking the same.
Thanks
Thanks
Who is online
Users browsing this forum: Google [Bot] and 144 guests