Search found 20 matches
- 25 Mar 2014, 09:56
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Re: Architecture for Room and Zone extensions.
Awesome, thanks guys, it's all there, just sometimes hard to know exactly where to look. I appreciate the help immensely. P.s. this product rocks.
- 25 Mar 2014, 09:37
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Re: Architecture for Room and Zone extensions.
Oh wow, that's perfect. Was wondering how to communicate to both of them! (http://docs2x.smartfoxserver.com/api-docs/csharp-doc/Index.html) for anyone following this thread. One question, how are server event handlers handled then. Say room variables are updated in a room that has an extension, does...
- 25 Mar 2014, 06:09
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Re: Architecture for Room and Zone extensions.
Thanks Lapo, I've headed down the RoomExtension path, and am trying to dynamically attach a room extension on room creation. I've tried looking for more info in the docs about this, but can't find anything that tells me how messages are routed when you have both a zone extension and a room extension...
- 24 Mar 2014, 12:27
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Re: Architecture for Room and Zone extensions.
Thanks for the replies Lapo, I didn't remember the MultiHandler stuff and had to look it up again. If I went down this route, would you typically write one handler for the game room, that handles all the requests for the game? Does smartfox pass the command that was used to invoke that handler in th...
- 24 Mar 2014, 01:42
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Re: Architecture for Room and Zone extensions.
Also, wondering how people have structure virtual worlds before, where you have an explorable world, with multi-player mini-games inside. Do you use one extension (Zone level) that handles everything including mini-games. Or do you instantiate a new RoomExtension per multiplayer game in progress? If...
- 24 Mar 2014, 00:20
- Forum: SFS2X Questions
- Topic: Architecture for Room and Zone extensions.
- Replies: 11
- Views: 11770
Architecture for Room and Zone extensions.
Am I right in assuming the handleInernalMessage doesn't have any default implementation, i.e. it is designed purely for overriding in an overridden SFSExtension class? Or does it use some form of reflection to actually call methods on an overridden SFSExtension class? Also, if I have a RoomExtension...
- 27 Feb 2014, 12:02
- Forum: SFS2X Questions
- Topic: SignupAssistantComponent problem
- Replies: 9
- Views: 11354
Re: SignupAssistantComponent problem
Cheers Lapo,
Would be very keen to have this option implemented, as we are still in development stage, I've just turned off all activation for now
Would be very keen to have this option implemented, as we are still in development stage, I've just turned off all activation for now
- 27 Feb 2014, 11:08
- Forum: SFS2X Questions
- Topic: SignupAssistantComponent problem
- Replies: 9
- Views: 11354
Re: SignupAssistantComponent problem
So is there no way to resend an activation code via the signup component? After these steps: Client logs in to the server as a guest. Client sends signup details via the $SignUp.Submit command. Client then displays an activation page. I have 2 scenarios: 1) If the user enters the activation code her...
- 26 Nov 2013, 20:27
- Forum: SFS2X Questions
- Topic: Updating UserVariables before joining a room.
- Replies: 7
- Views: 8783
Re: Updating UserVariables before joining a room.
I'd love not to fire an internal event, but I thought that was the correct way to update a users variables. I am trying to initialize a user from our database when then log in, I want to pre-populate their uservariables on login, and persist any changes to uservariables (well, a filtered list of the...
- 26 Nov 2013, 14:12
- Forum: SFS2X Questions
- Topic: Updating UserVariables before joining a room.
- Replies: 7
- Views: 8783
Re: Updating UserVariables before joining a room.
Thanks Lapo, My C# client version is 1.4.0 I call super.destroy() in my overriden destroy method on the extension, is that meant to de-register all event listeners/handlers from that extension, or am I meant to manually specify their removal? Here's a debug dump, it seems like the server is issuing ...
- 26 Nov 2013, 12:36
- Forum: SFS2X Questions
- Topic: Updating UserVariables before joining a room.
- Replies: 7
- Views: 8783
Re: Updating UserVariables before joining a room.
Hi Lapo, Smartfox Sever version: Version 2.7.0 C# API, I'm not sure of the version, as someone else downloaded for our project, and all I can see is the dll. but it would have been downloaded as the latest version about 1-2 months ago. I've run that code, and it gives me a type NULL 00:55:46,998 INF...
- 26 Nov 2013, 10:55
- Forum: SFS2X Questions
- Topic: Updating UserVariables before joining a room.
- Replies: 7
- Views: 8783
Updating UserVariables before joining a room.
I'm writing an extension that saves some user variables to a database (an avatar config). And I call the SetUserVariablesRequest straight after login, but before joining a room. On the server side I have a UserVariablesUpdateHandler registered, that picks up the event, and it contains a UserVariable...
- 07 Nov 2013, 09:48
- Forum: SFS2X C# API
- Topic: Client side check a user is logged in.
- Replies: 1
- Views: 5368
Client side check a user is logged in.
I feel like I'm going crazy. How do you check if a user is logged in to a certain zone (from the client)? is it just by a check that the CurrentZone variable is set? I've been searching for a "isLoggedIn" flag somewhere... Also, if a login command is sent to another zone from the same smar...
- 15 Oct 2013, 10:22
- Forum: SFS2X Questions
- Topic: Report: Invalid Class file crashing Hibernate with JPA
- Replies: 6
- Views: 23497
Re: Report: Invalid Class file crashing Hibernate with JPA
Thanks for the suggestion, i've edited my sfs2x.sh to have the following line: add_class_path "$app_home/SFS2X/hibernate" straight after this one: add_class_path "$app_home/SFS2X" then added the META-INF/persistence.xml to the hibernate directory. Is this the right way to add to ...
- 15 Oct 2013, 08:52
- Forum: SFS2X Questions
- Topic: Hibernate JPA Login Example
- Replies: 4
- Views: 227993
Re: Hibernate JPA Login Example
Where was your persistence.xml file located in Smartfox server? Have been trying to get this going for days, but am also running into unhelpful errors