Search found 92 matches

by mixart
06 May 2012, 18:24
Forum: SFS2X ActionScript 3 API
Topic: room.istemp alternative in 2x?
Replies: 3
Views: 2811

Re: room.istemp alternative in 2x?

Thanks (as always) :) I did end up creating a room variable for this - does the job. I put it down to just another one of those SFS1 to SFS2 differences. I am a little disappointed how much more difficult things are in SFS2X. My AS code is about 200 lines larger so far, and my java extension - well ...
by mixart
06 May 2012, 16:22
Forum: SFS2X ActionScript 3 API
Topic: room.istemp alternative in 2x?
Replies: 3
Views: 2811

room.istemp alternative in 2x?

In SFS1 there was a room method called isTemp() that no longer exists in SFS2x — what is the alternate way to find out if a room is temporary or not?
by mixart
05 May 2012, 17:26
Forum: SFS2X Questions
Topic: private messages received as ***
Replies: 6
Views: 2806

Re: private messages received as ***

Turning off "apply words filter to private messages" seemed to do the trick. Seems like there might be a bug somewhere. I had all settings to default... "apply words to PM" was on (by default), but also my words filter and flood filter were both turned off, not active (by default...
by mixart
05 May 2012, 12:25
Forum: SFS2X Questions
Topic: private messages received as ***
Replies: 6
Views: 2806

private messages received as ***

Anyone know why when I send a private message, it is returned as asterisks? [SFS - INFO] Object going out: (short) a: 7 (sfs_object) p: (utf_string) m: hi there (byte) t: 1 (int) rc: 27 (byte) c: 0 Received as... [SFS - INFO] GenericMessage { Message id: 7 } { Dump: } (byte) t: 1 (int) r: -1 (int) u...
by mixart
02 May 2012, 11:01
Forum: SFS2X Questions
Topic: Fast way to dump an array as a string in extension?
Replies: 4
Views: 2403

Re: Fast way to dump an array as a string in extension?

I understand getdump and it's value - great for debugging. I was just hoping there was something for my needs - which is a dump that's compact for the purpose of saving data to a file that is imported into other web apps.

I ended up just using for loops - does the job.
by mixart
01 May 2012, 07:17
Forum: SFS2X Questions
Topic: Fast way to dump an array as a string in extension?
Replies: 4
Views: 2403

Re: Fast way to dump an array as a string in extension?

Not really what I was after... getDump() includes a pretty huge bloated amount of data (text such as datatype for each piece of data and also lots of tab data, etc.). E.g. a getDump outputs: (sfs_array) (utf_string) pen (utf_string) 154,75|1454,575|1154,475|81564,745|1354,765 (int) 4 (int) 100 (utf_...
by mixart
29 Apr 2012, 13:04
Forum: SFS2X Questions
Topic: Fast way to dump an array as a string in extension?
Replies: 4
Views: 2403

Fast way to dump an array as a string in extension?

Trying to find out if there is a fast way to dump a nested SFSarray as a string to a text file (in an extension). It seems SFSArray.toString() only converts simple objects to strings, not a whole array (like actionscript does). So I have to iterate through each array and sub array like this: String ...
by mixart
20 Apr 2012, 10:04
Forum: SFS2X Questions
Topic: Best approach for waiting for approval
Replies: 1
Views: 1131

Best approach for waiting for approval

Just curious from you all the best approach to this: Have a room full of users, a user can ask for the rest of the room users to approve a request and more than half the room needs to approve or deny the request. Which of these makes more sense? - user asking request sends an object to each user. Ea...
by mixart
18 Apr 2012, 09:32
Forum: SFS2X Questions
Topic: No _server.writeFile equivalent in 2X?
Replies: 1
Views: 1482

No _server.writeFile equivalent in 2X?

Looked through all the docs - is there no 2X _server.writeFile functionality in 2X java server-side extension?

Do we have to use Java.io classes for this?
by mixart
15 Apr 2012, 06:52
Forum: SFS2X Questions
Topic: Best way to create a serverside room Var (owned by server)
Replies: 6
Views: 3015

Re: Best way to create a serverside room Var (owned by serve

Thanks - this seemed to do the trick following your guidance... public class SetuproomHandler extends BaseServerEventHandler { @Override public void handleServerEvent(ISFSEvent evt) throws SFSException { User u = null; Room room = this.getParentExtension().getParentRoom(); ArrayList<RoomVariable> ro...
by mixart
14 Apr 2012, 21:46
Forum: SFS2X Questions
Topic: Best way to create a serverside room Var (owned by server)
Replies: 6
Views: 3015

Re: Best way to create a serverside room Var (owned by serve

The room is being created from the config file, but I will try moving it out of the init into another event handler and reply if I have some luck. Appreciate your help.
by mixart
14 Apr 2012, 15:24
Forum: SFS2X Questions
Topic: Best way to create a serverside room Var (owned by server)
Replies: 6
Views: 3015

Re: Best way to create a serverside room Var (owned by serve

Also... there are no users in the room at the time of this error. Since this is all in the init() class, it is calling this when the server starts up.
by mixart
14 Apr 2012, 15:22
Forum: SFS2X Questions
Topic: Best way to create a serverside room Var (owned by server)
Replies: 6
Views: 3015

Re: Best way to create a serverside room Var (owned by serve

Here is the error that I see...

Image

If I comment out the setroomvariable line, the error goes away:
//SmartFoxServer.getInstance().getAPIManager().getSFSApi().setRoomVariables(u, room, roomVars);
by mixart
14 Apr 2012, 06:38
Forum: SFS2X Questions
Topic: Best way to create a serverside room Var (owned by server)
Replies: 6
Views: 3015

Best way to create a serverside room Var (owned by server)

I have a server-side room extension and simply want to create a roomvariable for each room. I have room extensions set and was trying to create the room var on init() like this... @Override public void init() { trace("ext running."); User u = null; Room room = getParentRoom(); ArrayList<Ro...
by mixart
09 Apr 2012, 02:28
Forum: SFS2X Questions
Topic: SFS2 docs down (backup?)
Replies: 3
Views: 1909

Re: SFS2 docs down (backup?)

Perhaps if the SFS team hosted them in the cloud would make them more reliable :)

Go to advanced search