Search found 55 matches

by Zenith
25 Apr 2019, 06:54
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Re: Getting Null Pointer on Servlet trying to get zone !

The problem is running the code in the init() method I think, which is invoked very early when Jetty is starting up. I'd suggest to move the code in the init() method to the doGet/doPost methods and you should be fine. Cheers No I have done that it is still same. Earlier also init only ran when I h...
by Zenith
24 Apr 2019, 16:46
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Re: Getting Null Pointer on Servlet trying to get zone !

The problem is running the code in the init() method I think, which is invoked very early when Jetty is starting up. I'd suggest to move the code in the init() method to the doGet/doPost methods and you should be fine. Cheers No I have done that it is still same. Earlier also init only ran when I h...
by Zenith
24 Apr 2019, 16:38
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Re: Getting Null Pointer on Servlet trying to get zone !

The problem is running the code in the init() method I think, which is invoked very early when Jetty is starting up. I'd suggest to move the code in the init() method to the doGet/doPost methods and you should be fine. Cheers No I have done that it is still same. Earlier also init only ran when I h...
by Zenith
24 Apr 2019, 16:29
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Re: Getting Null Pointer on Servlet trying to get zone !

Can you show me the complete code executed in the servlet? Thanks package sfs2x.extensions.games.aqua.http; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRe...
by Zenith
24 Apr 2019, 16:26
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Re: Getting Null Pointer on Servlet trying to get zone !

Hi, did you investigate which object is null in the call? Also is the servlet being run after the sever has completed the boot process? If not that might be the problem. Thanks Hi , The null is because I was trying to get the zone by name and then its extension . The code is unable to pull any zone...
by Zenith
24 Apr 2019, 13:38
Forum: SFS2X Questions
Topic: Getting Null Pointer on Servlet trying to get zone !
Replies: 10
Views: 170

Getting Null Pointer on Servlet trying to get zone !

NullIssue.PNG Hello I am getting null pointer when trying to get the zone from a servlet. I wonder what I am doing wrong please help! Does both the extension and servlet code need be in same package ? I currently have both the servlet and extension code as seperate projects. Also I have noted that ...
by Zenith
17 Dec 2018, 17:39
Forum: SFS2X Questions
Topic: How to send Position and Rotation in smallest Packet size?
Replies: 1
Views: 117

How to send Position and Rotation in smallest Packet size?

Hi, I am making a third person shooter with Smartfoxserver + Unity in a mmo room setting. I need clients to transmit their x,y,z position to server from where it would be sent to nearby(Proximity) clients. I want to know what is best and most optimized way to send this. Approaches I know of: 1. User...
by Zenith
22 Nov 2018, 08:12
Forum: 2X Features Wish List
Topic: A benchmark of Websocket Efficieny as compared to Uwebsockets?
Replies: 1
Views: 488

A benchmark of Websocket Efficieny as compared to Uwebsockets?

Hi, There has been huge noise about great performance being given by uWebsockets library for websocket connections. While I read smartfoxserver uses Jetty server for managing websocket connections. So can we get a comparison about performance? Are you guys planning to upgrade the current websocket p...
by Zenith
07 Oct 2018, 14:10
Forum: SFS2X Questions
Topic: Unable to start sfs-service on linux. ./sfs2x.sh works fine!
Replies: 1
Views: 209

Unable to start sfs-service on linux. ./sfs2x.sh works fine!

Hey, I noticed that on my linux server I am unabel to start ./sfs2x-service start What happens is command runs but the server does not start up. While if I use ./sfs2x.sh it runs fine. The sfsserverice-start command was working fine earlier. Can you guide what to check? I restarted server but it sti...
by Zenith
21 Aug 2018, 16:27
Forum: SFS2X Questions
Topic: Proximity list Missing or leaving updates?
Replies: 1
Views: 166

Proximity list Missing or leaving updates?

hey I tried implementing a map where I have like trees, Stone mines, gold mines and most other units as MMOItems . Now I made the player map in his AOI update according to his proximity list updates. But I notice proximity list updates is missing or misgiving many updates. Like some trees, mines etc...
by Zenith
21 Aug 2018, 15:17
Forum: SFS2X Questions
Topic: How to make proximity updates not send updates for some items
Replies: 7
Views: 361

Re: How to make proximity updates not send updates for some items

Okay, that makes sense. I am still a bit unclear on how these bullets you have implemented work... Having an MMORoom with items that update very fast (as bullets) and items that don't shouldn't be an issue, in fact the MMOApi keep a list of objects that have been changed between proximityUpdates an...
by Zenith
20 Aug 2018, 19:29
Forum: SFS2X Questions
Topic: How to make proximity updates not send updates for some items
Replies: 7
Views: 361

Re: How to make proximity updates not send updates for some items

You should define "a lot of data" :) Off the top of my head it looks like a too complex feature to implement, where every client can customize a filter on the data the it should receive with the AoI system. In terms of server side performance it would be pretty resource intensive to apply...
by Zenith
19 Aug 2018, 15:00
Forum: SFS2X Questions
Topic: Would smartfoxserver work well on single CPU or Multiple CPU?
Replies: 1
Views: 167

Would smartfoxserver work well on single CPU or Multiple CPU?

Hi, I understand that Java is multi threaded. So is there any performance benefit of using multiple Cpu VPS for smartfox. In case I use a multiple CPU server is there some specific way I need to write my server code to get full benefit of the Multiple cores. Or should I just use a single CPU Dedicat...
by Zenith
18 Aug 2018, 16:23
Forum: SFS2X Questions
Topic: How to make proximity updates not send updates for some items
Replies: 7
Views: 361

Re: How to make proximity updates not send updates for some items

Hi, no it's not possible to do that. The server will send updates about all items in the AoI, then you can filter them out on the client side (maybe by their variables) and decide which one you want to show/render on screen etc... Cheers That would mean a lot of data getting synced though right? Ev...
by Zenith
18 Aug 2018, 10:46
Forum: SFS2X Questions
Topic: How could I make a login loading bar ?
Replies: 2
Views: 2870

Re: How could I make a login loading bar ?

This much process actually happens very quick. So maybe you an fake a loading bar for 1s and fill it fully once the update arrives back.

Go to advanced search