Search found 19 matches

by oalasergiu
30 Oct 2014, 19:50
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

Re: SFSObject as UserVariable

Damn it! I found the problem...
The score variable have been overridden in some other place :D

Sorry for taking your time.

However I find the getApi().setUserVariables() useful.

Thanks.
by oalasergiu
30 Oct 2014, 19:35
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

Re: SFSObject as UserVariable

Hmm... Via the admin tool as you suggested, I see the score variable of type INT, which must have been of type SFSObject.
by oalasergiu
30 Oct 2014, 19:11
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

Re: SFSObject as UserVariable

Hi Bax,

I've tried using "getApi().." as you suggested. It didn't work.

Some more information, I'm setting the variables when user joins a zone. Can this be the problem?
Also, on client, I'm not doing this inside a OnUserVarsUpdate method.

To clarify the flow:
1. User login.
2. Join zone.
3. The ...
by oalasergiu
29 Oct 2014, 18:46
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

Re: SFSObject as UserVariable

No errors, I've checked.
Also, I've updated the client API to 1.5.3 and it didn't solve the problem.
by oalasergiu
29 Oct 2014, 16:38
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

Re: SFSObject as UserVariable

Server Version: Version 2.7.0.
C# Client API: 1.4.0.0

I didn't notice any errors on client/server.
However, I'll check again when I'm home. Though, I've debugged the extension, and it seems like the SFSObject variable is set to the user.
by oalasergiu
28 Oct 2014, 21:32
Forum: SFS2X C# API
Topic: SFSObject as UserVariable
Replies: 9
Views: 12977

SFSObject as UserVariable

Hi,

I've been trying to set a SFSObject as an UserVariable on the server and play with it.

So, on the server side I have something like:


ISFSObject score = new SFSObject();
score.putInt("wins", 20);
score.putLong("points", 800);

List<UserVariable> uvList = new ArrayList<>();

uvList.add(new ...
by oalasergiu
14 Feb 2014, 16:24
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Re: Zone Configurator won't work

I didn't know I should exclude sfs2x.jar when building the artifact, maybe it's worth noticing it in the documentation?
I'll make the necessary changes and let you know if it works.

Thanks a lot for your help guys.
by oalasergiu
13 Feb 2014, 18:02
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Re: Zone Configurator won't work

I've sent you the jar via email. Please let me know if it arrived.
Thanks!
by oalasergiu
13 Feb 2014, 08:27
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Re: Zone Configurator won't work

Yep, what's your email?
by oalasergiu
12 Feb 2014, 23:28
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Re: Zone Configurator won't work

Hey Bax,
The server starts just fine:
serverstart.png
(37.8 KiB) Not downloaded yet
And I cannot see any errors right after clicking the Zone Configuration in the Admin Tool.

Do you think it can be because of the extension itself?
by oalasergiu
11 Feb 2014, 17:30
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Re: Zone Configurator won't work

Seems like there's nothing.

I'm looking into /SmartFoxServer_2X/SFS2X/logs/smartfox.log - a txt file. Am I doing it right?
by oalasergiu
10 Feb 2014, 18:53
Forum: SFS2X Questions
Topic: Zone Configurator won't work
Replies: 12
Views: 13458

Zone Configurator won't work

Hi,

I've just finished writing a bit of my Server-side extension, which has as a dependency a Hibernate project. I've built the jar, and everything seemed to work nice.
Next, I add it to {sfs-install-dir}/SFS2X/extensions/MyExtenstion/MyExtension.jar.

After that, when I go to Admin Panel, open ...
by oalasergiu
04 Feb 2014, 12:24
Forum: SFS2X Questions
Topic: Connection Issue
Replies: 10
Views: 12249

Re: Connection Issue

Yeah, I guess.
But now another problem, I cannot login into the Administration Panel. :(
by oalasergiu
03 Feb 2014, 21:31
Forum: SFS2X Questions
Topic: Connection Issue
Replies: 10
Views: 12249

Re: Connection Issue

I figured it out. - Changed the default port 9933 to a different one (1933). Now anyone can connect to my server!

Thanks!
by oalasergiu
03 Feb 2014, 19:52
Forum: SFS2X Questions
Topic: Connection Issue
Replies: 10
Views: 12249

Re: Connection Issue

So, it looks like it's a crossdomain.xml issue.

In my code, I have these lines:

if (Application.isWebPlayer || Application.isEditor) {
if (!Security.PrefetchSocketPolicy(serverName, serverPort, 500)) {
Debug.LogError("Security Exception. Policy file loading failed!");
}
}

Where should be ...