Search found 21239 matches

by Lapo
11 Aug 2020, 13:22
Forum: SFS2X Questions
Topic: Hazelcast in smartfox
Replies: 5
Views: 712

Re: Hazelcast in smartfox

Hi,
the Room object is too complex and cannot be serialized.
What you could do, is serialize the object partially by extracting the properties that you want to transmit and only send those to the other side.

Cheers
by Lapo
11 Aug 2020, 10:18
Forum: SFS2X C# API
Topic: Player create room but not auto join
Replies: 2
Views: 14

Re: Player create room but not auto join

Hi, yes the problem is in your call. If you want the user to auto-join the Room just created you need to pass an extra boolean. As per the client C# API documentation (valid for all other languages): http://docs2x.smartfoxserver.com/api-docs/csharp-doc/html/4f94de33-90c6-80f8-db3a-557b8b9624c9.htm t...
by Lapo
11 Aug 2020, 06:47
Forum: SFS2X Questions
Topic: How to login Unity's execute as NPC user??????
Replies: 3
Views: 3786

Re: How to login Unity's execute as NPC user??????

In the article you have mentioned we explain two different ways to manage NPCs. 1) Create NPCs and manage their logic on the server side 2) Create NPCs and manage their logic using a client application that runs on a different machine running in the local network So it seems you want to use the 2nd ...
by Lapo
10 Aug 2020, 12:37
Forum: SFS2X Questions
Topic: Proximity Manager really big
Replies: 12
Views: 1461

Re: Proximity Manager really big

If MMORooms are supposed to linger for a long time it's best to that they are owned by the server itself (owner == null), rather than a User for the reasons you have outlined. Does Smartfox not recommend MMORooms that remain forever? There are many use cases, but I think the solution is the above (m...
by Lapo
10 Aug 2020, 09:24
Forum: SFS2X Questions
Topic: How to login Unity's execute as NPC user??????
Replies: 3
Views: 3786

Re: How to login Unity's execute as NPC user??????

Hi,
your question is not very clear.
First of all NPCs are created server side, so they don't need to "login in Unity". When a real User logs from client side to the server he will be able to interact with the NPCs once they are in the same Room.

Cheers
by Lapo
10 Aug 2020, 07:15
Forum: SFS2X Questions
Topic: Proximity Manager really big
Replies: 12
Views: 1461

Re: Proximity Manager really big

Now the room owner has a list of SFSUser in the proxyList, and the proxyList holds a whole bunch of SFSUsers, and each SFSUser in this list also has their own proxyList, and they never go away since the owner of the room is forever referenced by the MMORoom. Aren't these MMORooms removed at some po...
by Lapo
08 Aug 2020, 17:58
Forum: SFS2X Questions
Topic: Server Variable
Replies: 1
Views: 7669

Re: Server Variable

Hi,
from the Zone object you can get the Room ( getRoomById() or getRoomByName() )
With the Room you can get the variable via getRoomVariable(name)

In other words:

Code: Select all

var room = getParentZone().getRoomByName("myRoom");
var roomVar = room.getVariable("varName");


Cheers
by Lapo
07 Aug 2020, 14:27
Forum: SFS2X Questions
Topic: [SOLVED] Admin tool with 2 instances of Smartfox Server 2.16
Replies: 4
Views: 4158

Re: Admin tool with 2 instances of Smartfox Server 2.16

Hi, If I attempt to run two instances of SFS2X 2.16 on the same machine, after having reconfigured ports 8080 and 8443 so that they don't collide, I still get a port conflict on port 8005. The error can be seen if you run the second instance in the terminal (via sfs2x.sh) or directly in Tomcat's log...
by Lapo
07 Aug 2020, 13:13
Forum: SFS2X Questions
Topic: [SOLVED] Admin tool with 2 instances of Smartfox Server 2.16
Replies: 4
Views: 4158

Re: Admin tool with 2 instances of Smartfox Server 2.16

Hi,
you didn't specify clearly, but I suppose we're talking about two instances on the same machine? Right?

Have you checked the logs of the 2nd instance? It's likely that you'll find some Tomcat binding error.

Cheers
by Lapo
05 Aug 2020, 08:31
Forum: SFS2X Questions
Topic: Extension Upload in v2.16
Replies: 4
Views: 7436

Re: Extension Upload in v2.16

Thanks.
I was able to reproduce the issue on a Windows 10 machine. We'll look into it and release an update as soon as possible.

I will post updates here, when available.
by Lapo
04 Aug 2020, 05:43
Forum: SFS2X Questions
Topic: Custom Logging Best Practice
Replies: 3
Views: 1851

Re: Custom Logging Best Practice

Create a logger object in each class that requires it.

Cheers
by Lapo
04 Aug 2020, 05:38
Forum: SFS2X Questions
Topic: Extension Upload in v2.16
Replies: 4
Views: 7436

Re: Extension Upload in v2.16

Hi, under "Program Files" Windows typically doesn't give you write permissions, so that's a problem. However you should see the orange icons regardless, then get an error when SFS2X tries to upload the file(s). Is this what is happening? Also what browser are you using? Also what Windows v...
by Lapo
03 Aug 2020, 15:36
Forum: SFS2X Questions
Topic: Custom Logging Best Practice
Replies: 3
Views: 1851

Re: Custom Logging Best Practice

I don't like the global static log object for two reasons:
1- logging is synchronized
2- one of the fields in the log data is the class that generated the message. With the global approach it will always report the same class

Cheers
by Lapo
30 Jul 2020, 17:09
Forum: SFS2X Questions
Topic: Creating a new instance of the same room
Replies: 16
Views: 441

Re: Creating a new instance of the same room

I would like to see those startup logs :) Please check the log file and post here the relevant section from the server start up to the "SmartFoxServer READY" message at the end of the boot. Also attach the Zone config if possible. If you prefer to keep this private send the material to sup...
by Lapo
30 Jul 2020, 14:36
Forum: SFS2X Questions
Topic: Creating a new instance of the same room
Replies: 16
Views: 441

Re: Creating a new instance of the same room

The fact that the class name and the package name are exactly identical could be a problem. In Java. package names must be all lower case. From Oracle's documentation: Package names are written in all lower case to avoid conflict with the names of classes or interfaces. https://docs.oracle.com/javas...

Go to advanced search