Search found 19 matches

by dragagon
02 Jul 2011, 00:16
Forum: SFS2X Questions
Topic: How can I send message from server to all users?
Replies: 10
Views: 21468

This is something you have to write yourself. In your extension, when someone logs into the server, you will want to add them to a list of users, and remove them when they disconnect. Then when you need to send a message to all users, you run through the list and send a message to each one.

I cover ...
by dragagon
02 Jun 2011, 20:08
Forum: SFS2X C# API
Topic: External tutorials and resources
Replies: 3
Views: 45163

Last time I posted I was part way through with my current development. I have now completed what I call part 1. It takes you from nothing to having a web server, Smart Fox Server 2x, and a Unity3d client that can create an account, connect, log in with encryption, create characters, and select a ...
by dragagon
21 Dec 2010, 20:11
Forum: SFS2X C# API
Topic: Ping
Replies: 4
Views: 10509

That is why you make sure all your times are in UTC by doing something like this in c#

DateTime convertedDate = DateTime.SpecifyKind(
DateTime.Parse(dateStr),
DateTimeKind.Utc);
DateTime dt = converted.DateToLocalTime(); which will read in a datetime string as a UTC date time and will convert ...
by dragagon
21 Dec 2010, 17:36
Forum: SFS2X Questions
Topic: Moderator, Admin, Standard, etc.
Replies: 21
Views: 27576

I could see you do something slightly different that makes the code a little cleaner, but no less lengthy:


IPermissionProfile profile = null;

switch(Short.parseShort((userData.getUtfString("PRIVILEGE")).trim()))
{
case 1:
profile = DefaultPermissionProfile.STANDARD;
break;
case 2:
profile ...
by dragagon
21 Dec 2010, 05:44
Forum: SFS2X Questions
Topic: Admin password
Replies: 3
Views: 8528

I'm pretty sure he means in the admin panel, and I would say that unless they use public/private key in the flash application, its passed in the clear. the lack of masking hints that it isn't. I know within the application that it doesn't, but the admin panel is another thing.
by dragagon
21 Dec 2010, 05:39
Forum: SFS2X Questions
Topic: Catching Server Events
Replies: 2
Views: 6385

make sure in the admin panel that you have the check box that says "Custom Login" otherwise you will see the message but your custom handler won't be called.
by dragagon
21 Dec 2010, 05:33
Forum: SFS2X C# API
Topic: Visual Basic .NET
Replies: 13
Views: 20615

Seems you are going about it wrong. You should be doing something closer to

Code: Select all

         smartFox.AddEventListener(SFSEvent.CONNECTION, OnConnection);
not doing that on a SFSEvent.
by dragagon
20 Dec 2010, 16:23
Forum: SFS2X C# API
Topic: Where does the object go to?
Replies: 11
Views: 18174

You can do one of two things, either you can add multiple if/else blocks so like

public void OnExtensionResponse(BaseEvent evt) {

string cmd = (string)evt.Params["cmd"];
SFSObject dataObject = (SFSObject)evt.Params["params"];

if(cmd == "add")
{
// add
}
else if(cmd == "subtract ...
by dragagon
17 Dec 2010, 04:48
Forum: SFS2X C# API
Topic: How hard is it to instantiate 2+ users on one map?
Replies: 6
Views: 11715

No problem. Hopefully it helps people. If you already know alot of networking and are familiar with programming, I would say part 11, part 12, and part 13 would be of the biggest help when just wondering what functions you need to use, etc.
by dragagon
16 Dec 2010, 16:07
Forum: SFS2X C# API
Topic: External tutorials and resources
Replies: 3
Views: 45163

Hi everyone,

I have a series of blog entries that detail starting from scratch and working its way up to messaging between Unity3D and SmartFox. We use a few other technologies to handle a web application side. So if you are interested in getting a Web Application up and running with Symfony that ...
by dragagon
16 Dec 2010, 05:59
Forum: SFS2X C# API
Topic: How hard is it to instantiate 2+ users on one map?
Replies: 6
Views: 11715

sciguy,

If you are interested, my blog has a series of tutorials. If you only want to learn about messaging between unity and smartfox and don't care about integrating with a web server and using symfony you can just read parts 2, 3, 4, and 8 and on. Ignore anything you see dealing with symfony ...
by dragagon
14 Dec 2010, 20:54
Forum: SFS2X C# API
Topic: Tutorials?
Replies: 5
Views: 10632

I'm in the process of typing up a series of tutorials on my blog that cover this. If you want to follow along it is up at http://mmocraftershaven.blogspot.com .

I started from bare scratch with Unity3d, SmartFoxServer, and I'm walking through setting up the development environment. Tonight I will ...
by dragagon
13 Dec 2010, 13:46
Forum: SFS2X Questions
Topic: SFS 2x and Hibernate help
Replies: 8
Views: 12571

The version of hibernate I was attempting to use is the one that came with Netbeans 6.9. Many of the Hibernate libs were older than the ones in SFS 2x. The most notable one that was not was sfl4j. I had put in 1.6.0, but in doing so, it broke sfl4j-log4j, so I had to go get the latest version for ...
by dragagon
12 Dec 2010, 16:55
Forum: SFS2X Questions
Topic: SFS 2x and Hibernate help
Replies: 8
Views: 12571

SFS 2x and Hibernate help

Hey everyone,

So I've been trying for several hours to get hibernate to work with SFS2x and was wondering if anyone else has had any luck and what steps you tried in order to get it to work.

My problem is that I see the lib directory for SFS2x and I notice that the jar file versions are different ...
by dragagon
10 Dec 2010, 18:50
Forum: SFS2X Questions
Topic: User.Disconnect?
Replies: 5
Views: 10088

Andy,

I think you may have missed my paragraph in the middle. My Web Server has a registration and stores the password in its own fashion. Unless the Custom Login Handler can give me the password as plain text on the server, its useless as I cannot rebuild the password on the server unless it is in ...