Search found 42 matches

by Flying_Banana
16 Jun 2015, 15:46
Forum: SFS2X Questions
Topic: MMORooms and NPCs
Replies: 5
Views: 8461

MMORooms and NPCs

I am trying to reach a scalable solution to NPC AI in an mmorpg. If I were to do it all on the server, then suppose I have 50 monsters per map, if the whole game consists of 50 maps, then I have 2500 instances of AI running. No matter how simple my AI is (even if I try to simplify 3D down to 2D), th...
by Flying_Banana
15 Jun 2015, 04:35
Forum: Features Wish List
Topic: Is there a message/event that gets sent on shutdown?
Replies: 4
Views: 39186

Re: Is there a message/event that gets sent on shutdown?

I'm also interested on whether there is a method of detecting server shutdown.

I need an entry point to perform some tasks before server shutdown, like closing database connections, saving some data, etc. Is there a workaround?
by Flying_Banana
23 Jun 2014, 13:35
Forum: SFS2X Questions
Topic: Unexpected spiking in unity when sending request
Replies: 3
Views: 5283

Re: Unexpected spiking in unity when sending request

But shouldn't the request be sent async so it shouldn't be blocking the thread? Right now it seems like the client is freezing every so often :L I mean, I tried to optimise the movement by checking whether movement is dirty, controlling minimum time interval between requests, etc. But it seems messa...
by Flying_Banana
23 Jun 2014, 12:52
Forum: SFS2X Questions
Topic: Unexpected spiking in unity when sending request
Replies: 3
Views: 5283

Unexpected spiking in unity when sending request

I'm trying to send requests to server to update user locations. Everything works pretty smoothly when I'm testing on the local server. But when I try to test on a remote server (with about 500ms ping), every time I send a request on client, unity freezes for about 500ms. If I don't send any requests...
by Flying_Banana
19 Jun 2014, 14:46
Forum: SFS2X Questions
Topic: Unable to get user variables update
Replies: 2
Views: 4874

Unable to get user variables update

I'm trying to update user variables on the server and it seems somehow I can't do it... So each time user updates position, it sends x y z to the server. The server validates the position then updates that user's variables. This is how I'm doing it: SFSObject trans = new SFSObject(); trans.putFloat(...
by Flying_Banana
18 Jun 2014, 11:06
Forum: SFS2X Questions
Topic: Accessing position in MMORoom
Replies: 3
Views: 5988

Accessing position in MMORoom

I'd like to keep track of all the players' positions in an MMORoom, not just for the server to send messages based on AOI, but also for game calculations and such. After a quick browse through the API, I couldn't find any reference to getting a player's position in the MMORoom. Should I just store t...
by Flying_Banana
16 Jun 2014, 04:31
Forum: SFS2X Questions
Topic: Remove events callbacks
Replies: 3
Views: 5378

Re: Remove events callbacks

Client side :)
by Flying_Banana
14 Jun 2014, 04:53
Forum: SFS2X Questions
Topic: Remove events callbacks
Replies: 3
Views: 5378

Remove events callbacks

I'm not sure where I saw it, but I'm pretty sure it says somewhere that I need to remove event callbacks registered with a particular instance of smartfox when I do not need it anymore, or it will create performance problems or memory leaks. I'm just wondering when do I exactly have to remove them? ...
by Flying_Banana
12 Jun 2014, 16:50
Forum: SFS2X Questions
Topic: MMOItem as NPC?
Replies: 6
Views: 7752

Re: MMOItem as NPC?

Hahaha, should go through the API in more detail!

Is there by chance a createMob method too somewhere? :D
by Flying_Banana
12 Jun 2014, 13:11
Forum: SFS2X Questions
Topic: MMOItem as NPC?
Replies: 6
Views: 7752

Re: MMOItem as NPC?

Hahaha, should go through the API in more detail!

Is there by chance a createMob method too somewhere? :D
by Flying_Banana
12 Jun 2014, 09:28
Forum: SFS2X Questions
Topic: MMOItem as NPC?
Replies: 6
Views: 7752

Re: MMOItem as NPC?

What do you mean by "regular NPC's are created by one line of code"? If they are not MMOItems, what's the other alternative? We can create users on the serverside and make them enter rooms?
by Flying_Banana
12 Jun 2014, 05:53
Forum: 2X Features Wish List
Topic: Spherical MMO room AOI
Replies: 1
Views: 9557

Spherical MMO room AOI

in a 3D fps, it is weird to have a rectangular AOI (imagine you turn your character 45 degrees, now you see other characters, if they fill your AOI, spawning in a triangle before you). I think a spherical MMORoom aoi would solve the problem. How viable is it? Is the additional calculation going to a...
by Flying_Banana
11 Jun 2014, 19:58
Forum: SFS2X Questions
Topic: MMOItem as NPC?
Replies: 6
Views: 7752

MMOItem as NPC?

I'm just wondering about how NPC should be coded in an MMORPG. From the description of MMOItem, it seems it's not a bad idea to make an NPC out of an MMOItem. For security concerns, I don't think NPCs should be client based (they can be manipulated by hackers, teleported near the player's current po...
by Flying_Banana
11 Jun 2014, 19:52
Forum: SFS2X Questions
Topic: Unable to put class in login_out_data
Replies: 4
Views: 6872

Re: Unable to put class in login_out_data

Well, we decided to do our custom serialisation and it seems I've lost the opportunity to debug it :L
by Flying_Banana
09 Jun 2014, 14:51
Forum: SFS2X Questions
Topic: Unable to put class in login_out_data
Replies: 4
Views: 6872

Re: Unable to put class in login_out_data

Well, since the data is read by client side when the login event is fired, I don't think it is read prior to the handling method, OnLogin(). I put a debug message at the first line of OnLogin() and when I put the serialized class in, the message is never printed. In the end I tried to serialize the ...

Go to advanced search