Search found 35 matches

by hoanghuybao
21 Feb 2016, 11:26
Forum: SFS2X Java / Android API
Topic: How to print log in a java class in server.
Replies: 2
Views: 2407

How to print log in a java class in server.

Hi admin, How to print log in a java class in server. I reseach and try with an example but it don't work. private final Logger m_log; public ChessGameBoard() { m_log = LoggerFactory.getLogger("com.xdevteam.chess.ChessGameBoard"); .... } public boolean methodA() { m_log.info("It shoul...
by hoanghuybao
11 Jan 2016, 16:07
Forum: SFS2X Java / Android API
Topic: How to check an user join Zone?
Replies: 2
Views: 2117

Re: How to check an user join Zone?

Hi Lapo,

I appreciate your answer. It is very full :D. Thank you very much.

Cheer,
by hoanghuybao
06 Jan 2016, 16:20
Forum: SFS2X Java / Android API
Topic: How to check an user join Zone?
Replies: 2
Views: 2117

How to check an user join Zone?

Hi admin,
I have some small queries:
How an user client can be notified if the other user join Zone? Or How to check a user is online? Which the API of smartFox support this?
Please help give your comment. :D

Cheer,
by hoanghuybao
27 Dec 2015, 08:26
Forum: SFS2X Java / Android API
Topic: Problem with the event SFSEvent.USER_ENTER_ROOM
Replies: 1
Views: 1903

Problem with the event SFSEvent.USER_ENTER_ROOM

Hi admin, I read about the event USER_ENTER_ROOM at http://docs2x.smartfoxserver.com/api-docs/jsdoc/symbols/SFS2X.SFSEvent.html#.USER_ENTER_ROOM I want to that when an user enter room, I can get more information such as level, money...from the user. I think so we can use method user.setVariable(). B...
by hoanghuybao
29 Nov 2015, 09:40
Forum: SFS2X Questions
Topic: Custom Extension - No Extensions Can be Invoked
Replies: 17
Views: 11844

Re: Custom Extension - No Extensions Can be Invoked

The error should be self explanatory ==> LoginAssistant doesn't work with ROOM LEVEL Extensions! You are attempting to use the LoginAssistant with an Extension that attached to a Room. This is not possible because Rooms don't get a LOGIN event. Only Zones do. Thanks Thanks for your comment. This is...
by hoanghuybao
26 Nov 2015, 17:19
Forum: SFS2X Questions
Topic: Custom Extension - No Extensions Can be Invoked
Replies: 17
Views: 11844

Re: Custom Extension - No Extensions Can be Invoked

Hi Lapo, I understand problem and I think that we are having a bug with The Login Assistant component Steps to reproduce: 1) server side configures with Login Assistant component(for example: http://docs2x.smartfoxserver.com/DevelopmentBasics/login-assistant) 2) client side: send request to create a...
by hoanghuybao
24 Nov 2015, 15:34
Forum: SFS2X Questions
Topic: Custom Extension - No Extensions Can be Invoked
Replies: 17
Views: 11844

Re:

i'm calling this when i entered a room: public void SendSpawnRequest () { Room room = sfClient.LastJoinedRoom; ExtensionRequest request = new ExtensionRequest ("spawnMe", new SFSObject (), room); sfClient.Send (request); Debug.Log("request sent"); } I got the same issue, How to ...
by hoanghuybao
17 Nov 2015, 16:27
Forum: SFS2X Java / Android API
Topic: Advanced features of login-assistant
Replies: 2
Views: 2130

Re: Advanced features of login-assistant

Thanks for your help. It is very helpful. :D
by hoanghuybao
16 Nov 2015, 17:08
Forum: SFS2X Java / Android API
Topic: Advanced features of login-assistant
Replies: 2
Views: 2130

Advanced features of login-assistant

Hi admin, I see that we can set some extra fields after the credentials have been checked in server side. Document:http://docs2x.smartfoxserver.com/DevelopmentBasics/login-assistant // Store avatar in session object loginData.session.setProperty("avatar", avatarPic) // Set client as Modera...
by hoanghuybao
29 Oct 2015, 15:06
Forum: SFS2X Java / Android API
Topic: Login Assistant component should support change password
Replies: 10
Views: 3307

Re: Login Assistant component should support change passwor

Thanks Lapo,
I think I will build a new Login/Register Assistant component.
by hoanghuybao
29 Oct 2015, 10:33
Forum: SFS2X Java / Android API
Topic: Login Assistant component should support change password
Replies: 10
Views: 3307

Re: Login Assistant component should support change passwor

Do we have any solution to change password when user loged-in?
by hoanghuybao
28 Oct 2015, 16:34
Forum: SFS2X Java / Android API
Topic: Login Assistant component should support change password
Replies: 10
Views: 3307

Re: Login Assistant component should support change passwor

Problem: getApi().checkSecurePassword(session, dbPword, oldPassword) always returns false although oldPassword is sent correctly. For example: registered an account A with password is "123456789" and oldPassword is "123456789". The method getApi().checkSecurePassword(session, &qu...
by hoanghuybao
13 Oct 2015, 15:44
Forum: SFS2X Java / Android API
Topic: Login Assistant component should support change password
Replies: 10
Views: 3307

Re: Login Assistant component should support change passwor

Hi Lapo, I try to implementing a module to change password with the following code: Client: public void changePassword(String userName, String oldPassword, String newPassword) { SFSObject param = new SFSObject(); param.putUtfString("userName", getUserName()); param.putUtfString("oldPa...

Go to advanced search