Search found 58 matches

by Damace
26 Jan 2012, 14:56
Forum: SFS2X Questions
Topic: Can't connect to BlueBox
Replies: 8
Views: 13304

I guess)

This is how it works:
1. You make an app
2. You upload the SWF to the social network's server
3. The game becomes available for everyone to play

I can tell you only about the first step. What does vk.com do after I uploaded my app on their servers - only god knows (and their staff). In ...
by Damace
26 Jan 2012, 13:46
Forum: SFS2X Questions
Topic: Architecture doubt
Replies: 10
Views: 15514

You wrote

I must have scope like:
- school (see in game only students from that school)
- city (see all students from that city)
- state (see all students from that state)

If you want to do that you need to be able to access different zones and communicate between them (if you decide multiple ...
by Damace
26 Jan 2012, 13:15
Forum: SFS2X Questions
Topic: Architecture doubt
Replies: 10
Views: 15514

You say that you want to see all the students in different scopes. That means that the data can be accessed and that some kind of communication takes place. If you choose to create multiple zones then you need to communicate between them (and as I mentioned above this practice is discouraged).

So ...
by Damace
26 Jan 2012, 13:08
Forum: SFS2X Questions
Topic: how to access room name
Replies: 2
Views: 5658

You can store the reference to the room that the user is trying to join in a variable on the client side. Then when an error occurs you can tell what room the user was trying to join.

There are only so many reasons for the ROOM_JOIN_ERROR to occur:


There are a number of possible things that ...
by Damace
26 Jan 2012, 12:39
Forum: SFS2X Questions
Topic: Can't connect to BlueBox
Replies: 8
Views: 13304

Ok, I caught the flash player error. It's a sandbox violation.


Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://cs5202.vk.com/u23515002/bcc9cfc24fd272.zip cannot load data from http://31.186.103.25:8080/BlueBox/BlueBox.do.
at com.smartfoxserver.v2 ...
by Damace
26 Jan 2012, 10:39
Forum: SFS2X Questions
Topic: Architecture doubt
Replies: 10
Views: 15514

You have 1 game, that's 1 zone. Communication between zones can be done but it is strongly discouraged. I think all scopes should be embedded in your game logic and there is no need for multiple zones.
by Damace
26 Jan 2012, 10:26
Forum: SFS2X Questions
Topic: Can't connect to BlueBox
Replies: 8
Views: 13304

How can I make sure that the http-server is not blocked in the live setup?

I can telnet ports 80 and 8080. But I can't telnet 9933.

Also there is another symptom - I can't connect to the AdminTool. I can load the login page, but when I enter all the info I just gets stuck and then reports a ...
by Damace
26 Jan 2012, 07:09
Forum: SFS2X Questions
Topic: Can't connect to BlueBox
Replies: 8
Views: 13304

up
by Damace
25 Jan 2012, 18:18
Forum: SFS2X Questions
Topic: SFS and Database usage
Replies: 2
Views: 5836

SFS doesn't require you to have a database installed. But if you need one - you can have it.

SFS2X has a nice dbManager which does all the communication between SFS and the database. You can look at the implementation here:
http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver ...
by Damace
25 Jan 2012, 09:09
Forum: SFS2X Questions
Topic: Architecture doubt
Replies: 10
Views: 15514

Sorry, but I didn't understand.

If you want to communicate between schools then use 1 zone for the game and many rooms for the schools. Communication can be easily done through the zone extension which has access to all of the rooms inside it.
by Damace
25 Jan 2012, 08:07
Forum: SFS2X Questions
Topic: Connecting to my server behind router
Replies: 6
Views: 9546

Try editing the server.xml (SFS2X/config folder). You can set socket address manually there.
by Damace
24 Jan 2012, 19:58
Forum: SFS2X Questions
Topic: The supplied index is out of bounds.
Replies: 14
Views: 17894

Hi

Is num - a long? Did you use the L suffix when the value was assigned?

Minimum/Maximum values
byte: [-128; 127]
short: [-32,768; 32,767]
int: [-2,147,483,648; 2,147,483,647]
long: [-9,223,372,036,854,775,808; 9,223,372,036,854,775,807]

If the range is 0;5000 I would use a short or an int.
by Damace
24 Jan 2012, 18:30
Forum: SFS2X Questions
Topic: Architecture doubt
Replies: 10
Views: 15514

Hi!

I don't see why you should create a zone for each school. Zones are meant for different applications with different extensions and different settings. If this is one MMO game, and all schools will be using the same version, then I suggest using 1 zone and many rooms.

I don't know about any ...
by Damace
24 Jan 2012, 18:22
Forum: SFS2X Questions
Topic: Can't connect to BlueBox
Replies: 8
Views: 13304

Can't connect to BlueBox

Hi everyone!

I've got some BlueBox problems.
Here is how I connect to the SmartFoxServer:

sfs = new SmartFox();
sfs.useBlueBox = true;
sfs.connect("some-ip-adress", 9933);

To test BlueBox I close the 9933 port on my machine and start the application. Everything works fine. sfs.connectionMode ...
by Damace
20 Jan 2012, 18:02
Forum: SFS2X Questions
Topic: Make sfs2x-service verbose
Replies: 2
Views: 5734

Thanks for the reply!

I found a solution for Linux users. In case you want to monitor your service use the tail command.

Type:
tail -f [SFS root folder]/SFS2X/logs/smartfox.log

The -f option is used to follow the logs as they are updated.