Search found 298 matches
- 11 Jul 2015, 00:50
- Forum: SFS2X Questions
- Topic: Collection<String> getUtfStringArray() returns a SFSA
- Replies: 8
- Views: 10882
Re: Collection<String> getUtfStringArray() returns a SFSA
I was just saying that I was having a similar problem to the original poster. I was building a generic nested array in AS3, client side, which consisted of an array of a bunch of string arrays. Then I used this to convert the AS3 array to SFSArray: var sfsPlayList:SFSArray = SFSArray.newFromArray(pP...
- 10 Jul 2015, 03:22
- Forum: SFS2X Questions
- Topic: Collection<String> getUtfStringArray() returns a SFSA
- Replies: 8
- Views: 10882
Re: Collection<String> getUtfStringArray() returns a SFSA
Ah I had the same problem reading an array on the extension that was built on the client like this: var sfsPlayList:SFSArray = SFSArray.newFromArray(pPlayListArray, false); Since there were no examples in the docs, it took me a while to even figure out that it was the "SFSArray." part.... ...
- 09 Jul 2015, 23:00
- Forum: SFS2X Questions
- Topic: Remove room after creator leaves
- Replies: 6
- Views: 10074
Re: Remove room after creator leaves
Hmm, yea, good point!
- 09 Jul 2015, 14:28
- Forum: SFS2X Questions
- Topic: Remove room after creator leaves
- Replies: 6
- Views: 10074
Re: Remove room after creator leaves
I agree, room objects should have a "removeAllUsers" method, or better yet "sfsApi.removeRoom" should have a boolean parameter to specify if the room can be destroyed with users are in it, or not.
- 26 Jun 2015, 22:10
- Forum: SFS2X ActionScript 3 API
- Topic: Need server timer
- Replies: 5
- Views: 14472
Re: Need server timer
In the old SFS1X extensions it was very easy to get the server time. I think the SFS2X method is something like this: package com.xxx.myProject.requestHandlers; import com.smartfoxserver.v2.entities.User; import com.smartfoxserver.v2.entities.data.ISFSObject; import com.smartfoxserver.v2.extensions....
- 27 Sep 2014, 22:38
- Forum: Server Side Extension Development
- Topic: set user variables
- Replies: 6
- Views: 13853
Re: set user variables
I think it says here that what I'm trying to do is not possible. I think it SHOULD be possible and useful in certain situations but I got my answer
viewtopic.php?t=8281
viewtopic.php?t=8281
- 27 Sep 2014, 21:14
- Forum: Server Side Extension Development
- Topic: set user variables
- Replies: 6
- Views: 13853
Re: set user variables
Ok, I thought I was adding a lot of context! 1. I want to be able to keep track of which users are in certain limbo rooms, so I want them to be able to join those rooms I don't understand how this should work When users join a room that represents what they're doing (such as visiting the map screen ...
- 27 Sep 2014, 02:38
- Forum: Server Side Extension Development
- Topic: set user variables
- Replies: 6
- Views: 13853
Re: set user variables
Lapo, in SFS2X is it possible to set a user variable locally only on the client side? I want to be joined to a room that doesn't have the userVar broadcasting flag active, set some things through an extension, and also set the variable client -side to match. Because: 1. I want to be able to keep tra...
- 22 Aug 2014, 15:30
- Forum: Job offers and requests
- Topic: Upcomming MMO Game - Toonauts
- Replies: 2
- Views: 10521
Re: Upcomming MMO Game - Toonauts
You should post screen grabs from your game on this site of yours.
- 28 Apr 2014, 16:09
- Forum: SFS2X C++ API
- Topic: How to run SimpleChat(2010)
- Replies: 4
- Views: 8691
Re: How to run SimpleChat(2010)
So Smartfox is comparable with Cryengine, with some fiddling?
- 07 Mar 2014, 07:06
- Forum: SFS2X ActionScript 3 API
- Topic: Player synchronization
- Replies: 6
- Views: 9879
Re: Player synchronization
Also note.. if you validate on the client-side instead of server side, it's faster and prone to cheating, as Lapo says, but you can also add validation on the recipient. In other words, if a hacker places his character in a non-walkable spot, that's ok because all the other clients can check this as...
- 07 Mar 2014, 06:49
- Forum: SFS2X HTML5 / JavaScript API
- Topic: High latency when playing a game
- Replies: 36
- Views: 53777
Re: High latency when playing a game
I'm doing a realtime robot fighting game deploying to android. The client wanted a type of motion control which can't be reliably synched with small immediate messages as I would rather do. My solution, which I have used for other games, is to store up location and rotational values for a number of ...
- 07 Mar 2014, 02:08
- Forum: SFS2X C# API
- Topic: putIntArray problem
- Replies: 1
- Views: 4548
putIntArray problem
In all the examples for putting an array into an SFSObject it has something like: sendObj.putIntArray("posint", Arrays.asList(100000,200000,300000)); As seen above...But what if I have a normal C# Array or List that has 100 items or so, that I want to put into sendObj? I've been looking al...
- 03 Mar 2014, 22:14
- Forum: SFS2X Questions
- Topic: The use of .class in addRequestHandler or addEventHandler
- Replies: 14
- Views: 16237
Re: The use of .class in addRequestHandler or addEventHandle
I guess part of my problem is, if I move the "handleClientRequest" handler to my lobby class, it requires me to change my class to extend "BaseClientRequestHandler", and that apparently can't find my main class like it can when I extends "SFSExtension"... Some things I ...
- 03 Mar 2014, 16:23
- Forum: SFS2X Questions
- Topic: The use of .class in addRequestHandler or addEventHandler
- Replies: 14
- Views: 16237
Re: The use of .class in addRequestHandler or addEventHandle
Yes, but what if I want to send several commands to the same class? I just want to have one, organized class that deals with everything involving the lobby,and there are several extension calls the clients can make in regards to the lobby. I can route the calls to various functions by using a "...