Search found 17 matches

by albymack
30 Sep 2022, 20:14
Forum: SFS2X Questions
Topic: Ping to keep alive
Replies: 3
Views: 1876

Ping to keep alive

I'm using SFS2X for a turn based multiplayer game in Unity. I notice that the client times out after a certain time (probably 60 seconds default zone setting). I assume the client library doesn't do any keepalive so I implemented my own thing to send a "Ping" message to the server once in ...
by albymack
06 Sep 2022, 21:23
Forum: SFS2X Questions
Topic: sfs2x.sh and log permissions
Replies: 1
Views: 1349

sfs2x.sh and log permissions

SFS2x version 2.18.3, ubuntu 20.03 SFS2x installed as smartfoxuser:nogroup user instead of root:root user I normally run smartfox as a service using systemctl. Things seem to work well. Recently needed to debug extension scripts remotely so I temporarily stopped using systemctl to run smartfox, and ...
by albymack
03 Aug 2022, 20:47
Forum: SFS2X Questions
Topic: Room Extension accessing Zone Extension functions
Replies: 5
Views: 2640

Re: Room Extension accessing Zone Extension functions

I did manage to get something working as a work around by creating an interface class in a shared __libs__ jar file with ICustomZoneExtension that exposes the public functions in the CustomZoneExtension. Is this a good workaround, other than moving the extension code itself into a jar in __libs__. S...
by albymack
03 Aug 2022, 17:40
Forum: SFS2X Questions
Topic: Room Extension accessing Zone Extension functions
Replies: 5
Views: 2640

Re: Room Extension accessing Zone Extension functions

To elaborate, the CustomZoneExtension.jar is in the extensions/CustomZoneExtension folder, and the CustomRoomExtension.jar in the extensions/CustomRoomExtension folder. The CustomZoneExtension is assigned to the zone and does work. The Room is dynamically created on the server in a handler for USER_...
by albymack
03 Aug 2022, 17:34
Forum: SFS2X Questions
Topic: Room Extension accessing Zone Extension functions
Replies: 5
Views: 2640

Re: Room Extension accessing Zone Extension functions

So I have an event handler in my room extension. Here's the code for it. public class JoinRoomHandler extends BaseServerEventHandler { @Override public void handleServerEvent(ISFSEvent pEvent) throws SFSException { CustomRoomExtension pExtension = (CustomRoomExtension)getParentExtension (); CustomZo...
by albymack
02 Aug 2022, 23:45
Forum: SFS2X Questions
Topic: User session property vs user variable
Replies: 1
Views: 1805

User session property vs user variable

In the example: https://smartfoxserver.com/blog/custom-login-with-database/ In the LoginEventHandler, you store the database id into the session property. Then in the ZoneJoinEventHandler, you have code that moves the session property into a hidden user variable: --- code from the example // dbid is...
by albymack
02 Aug 2022, 21:59
Forum: SFS2X Questions
Topic: Room Extension accessing Zone Extension functions
Replies: 5
Views: 2640

Room Extension accessing Zone Extension functions

So I was following along this page. http://docs2x.smartfoxserver.com/ExtensionsJava/advanced-concepts#classLoading I understand that each extension is loaded under their own class loader. I see in your documentation that one way to deal with this is to move shared model files into the __libs__ folde...
by albymack
06 Jul 2022, 22:42
Forum: SFS2X Questions
Topic: Remote Debugging
Replies: 2
Views: 1898

Remote Debugging

SFS2x 2.18 running on cloud server ubuntu 20.01 client development window 10 machine using Netbeans. I had the hardest time getting remote debugging working. Following the directions at: https://smartfoxserver.com/blog/how-to-debug-your-extensions/ Whenever I tried to attach remote debugger, I would...
by albymack
06 Jul 2022, 18:13
Forum: SFS2X Questions
Topic: Remember me
Replies: 1
Views: 1551

Remember me

Using SFS2X 2.18, windows 10, firefox browser On the sfs2x admin login page, there's a checkbox that says remember me. But it doesn't seem to remember me? Is there any way to get that working? I'm connecting to server via port 8443, encryption turned on. It's just that I reboot the server quite ofte...
by albymack
01 Jul 2022, 18:22
Forum: SFS2X Questions
Topic: Restart SFS2X from Web Admin Panel Fails
Replies: 11
Views: 4929

Re: Restart SFS2X from Web Admin Panel Fails

That seemed to work.
by albymack
30 Jun 2022, 21:18
Forum: SFS2X Questions
Topic: Restart SFS2X from Web Admin Panel Fails
Replies: 11
Views: 4929

Re: Restart SFS2X from Web Admin Panel Fails

So I was experimenting with the smartfox.service script that starts up smartfox server on ubuntu 20.04. I changed it to this and now the smartfox server restart server button from the admin panel seems to restart the smartfox server after it goes down. ------------------------------ [Unit] Descripti...
by albymack
14 Jun 2022, 17:17
Forum: SFS2X Questions
Topic: Restart SFS2X from Web Admin Panel Fails
Replies: 11
Views: 4929

Re: Restart SFS2X from Web Admin Panel Fails

Just wondering if there's been any new insights regarding this problem?
by albymack
18 May 2022, 17:35
Forum: SFS2X Questions
Topic: Custom Login Failure Disconnect Time
Replies: 1
Views: 1705

Custom Login Failure Disconnect Time

I've implemented a customlogin in my zone extension following the examples. It works. My question is about what happens when the user password is incorrect. I noticed on the client side, I get the login error thrown from the server with the error message pretty quickly. But the actual disconnect eve...
by albymack
16 May 2022, 17:58
Forum: SFS2X Questions
Topic: Can i add custom WAR in smartfoxserver tomcat?
Replies: 4
Views: 2758

Re: Can i add custom WAR in smartfoxserver tomcat?

In case this trips you up, in that tutorial, there's a line about testing the server that says http://localhost:8080/servlet?numbers=100,60,50,112,88 That's actually incorrect. It should be http://localhost:8080/ExtensionTest?numbers=100,60,50,112,88 Tripped me up for a while. The web.xml defines th...
by albymack
10 May 2022, 18:06
Forum: SFS2X Questions
Topic: Restart SFS2X from Web Admin Panel Fails
Replies: 11
Views: 4929

Re: Restart SFS2X from Web Admin Panel Fails

Looking at boot.log after hitting the webadmin restart button 10 May 2022 | 18:09:37,492 | WARN | Scheduler1-thread-1 | bootLogger | | Scheduler: scheduler interrupted. 10 May 2022 | 18:09:37,493 | INFO | SFSWorker:Ext:4 | bootLogger | | Scheduler stopped. Unprocessed tasks: 0 10 May 2022 | 18:09:37...

Go to advanced search