Search found 126 matches

by Gnoll
24 Nov 2010, 19:12
Forum: SFS2X ActionScript 3 API
Topic: Room exists
Replies: 2
Views: 6313

The client has the list of rooms so you can do something like: if (Network.sfs.getRoomByName("Lobby")) Network.sfs.send(new JoinRoomRequest("Lobby")) else Network.sfs.send(new CreateRoomRequest(new RoomSettings("Lobby"), t...
by Gnoll
24 Nov 2010, 19:11
Forum: SFS2X Questions
Topic: Send MySQL dump to client?
Replies: 6
Views: 10215

Well if 100 clients login, you only need to send 1 message to each containing your main data for each character, which is really nothing at all... Or do you mean things like, other clients need to know about the visible equipment they are wearing, display details etc? I assume every client wouldn't ...
by Gnoll
24 Nov 2010, 09:49
Forum: SFS2X Questions
Topic: Send MySQL dump to client?
Replies: 6
Views: 10215

Well, you only send the clients what they need to know.

Each client will only know about it's own inventory, so the server only needs to perform a select on the database for that character, and send that client the list of items.
by Gnoll
12 Nov 2010, 02:46
Forum: SFS2X C# API
Topic: Room = Scene?
Replies: 8
Views: 12706

Rooms are not just for chat, I believe most messages between clients should generally be contained to the room.

A room could be like a poker table, or a portion of an MMO. A zone would be your casino, or your shard/self-contained universe, with the rooms inside.
by Gnoll
11 Nov 2010, 08:47
Forum: SFS2X Questions
Topic: SFSEventParam Where Applicable
Replies: 6
Views: 10573

That's my point... :)

That works while

Code: Select all

ISession session = (ISession) event.getParameter(SFSEventParam.SESSION);
doesn't work.

I was asking that this be documented, so we know which cases it is available in. For example it works in the LOGIN event.
by Gnoll
11 Nov 2010, 08:40
Forum: SFS2X Questions
Topic: SFSEventParam Where Applicable
Replies: 6
Views: 10573

That's what I was doing for my AccountId when interfacing with the database.

I had a huge post written up wondering if sessions persisted, then I tried tracing my session object (got the same way) and it was null. >_> Then I tried using user.getSession() and all worked fine.
by Gnoll
11 Nov 2010, 08:15
Forum: SFS2X Questions
Topic: SFSEventParam Where Applicable
Replies: 6
Views: 10573

SFSEventParam Where Applicable

Hi Lapo, I was wondering is there documentation on where which SFSEventParam's are applicable? I was banging my head against the desk for a long time before realizing session was a null param at the UserJoinZone stage. I was also wondering, should the USER_LOGOUT event also fire when DISCONNECT happ...
by Gnoll
11 Nov 2010, 07:05
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

That's quite interesting.

Could we possibly resolve this through the TCP connection, getting the ip?? I assume sfs.currentIp would store the url or ip instead of resolving to ip right?

I seem to have lots of problems having a dynamic ip and dns!!
by Gnoll
11 Nov 2010, 04:13
Forum: SFS2X Questions
Topic: Can SFS2X 1 license for many games?
Replies: 19
Views: 22625

My understanding was each server in your cluster also needs it's own license? Although it seems a bit extreme to me, cost would go up quick if you wanted to spread load over a number of cheap low powered servers. :?
by Gnoll
11 Nov 2010, 03:02
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

So...

Your example used 127.0.0.1 as the host, while mine used a domain name. Datagram sockets don't support DNS??

Josh
by Gnoll
10 Nov 2010, 19:11
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

Hi Lapo, I created a Flex4 Air Application, configured it the same as my old one, and used your mxml and had no error... Went back to an Actionscript Project with the same configuration and it all blew up again! Really weird, it is an error with my system though, previously I could use the Datagram ...
by Gnoll
10 Nov 2010, 05:32
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

I am using the flex_sdk and in my case it is found inside C:\flex_sdk_4\AIR SDK Readme.txt

Not sure if it is building with 2.5, does 2.0 in the xml make it 2.x? Putting 2.5 in that xml tag doesn't work however.

I also tried with flex_sdk_3 with AIR2 with no luck.
by Gnoll
08 Nov 2010, 23:10
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

Okay here is the only class currently: package { import com.luaye.console.C; import com.smartfoxserver.v2.bitswarm.AirUDPManager; import com.smartfoxserver.v2.core.SFSEvent; import com.smartfoxserver.v2.requests.LoginRequest; import com.smartfoxserver.v2.SmartFox; import flash.display.Sprite; i...
by Gnoll
08 Nov 2010, 07:05
Forum: SFS2X ActionScript 3 API
Topic: UDP Parameter Error
Replies: 9
Views: 14431

UDP Parameter Error

Hi Lapo, I am using Adobe AIR SDK 2 and trying to use the initUDP functionality. When I call unitUdp(new AirUDPManager(); with the correct settings in the config, or manually specifying the host\port I get the error: ArgumentError: Error #2004: One of the parameters is invalid. at flash.net::Datagra...

Go to advanced search