Search found 21 matches
- 30 Sep 2022, 08:46
- Forum: SFS2X Questions
- Topic: Using docker for production server
- Replies: 13
- Views: 9510
Re: Using docker for production server
This sounds like exactly what I want to do, using SFS2X in production on AWS ECS services. Might even use HAProxy on it... How did you go about doing the licenses? Each instance needs it's own license to start, was there something you used to track and assign them? Currently I don't as we're still ...
- 23 Jan 2022, 22:45
- Forum: SFS2X Questions
- Topic: [NEW] SFS2X 2.18.0 is available!
- Replies: 8
- Views: 7203
Re: [NEW] SFS2X 2.18.0 is available!
Perfect, that helps. So I can replace my custom build RoomHandler class now.
Thanks!!
Thanks!!
- 15 Jan 2022, 21:21
- Forum: SFS2X Questions
- Topic: Using docker for production server
- Replies: 13
- Views: 9510
Re: Using docker for production server
Sorry to jump in but I use Docker for SFS2X and was unaware one shouldn't use sfs2x.sh in production because it works fine. ;) What I usually do is make a universal base image with the server itself, then extending that image in my projects and adding project-specific configurations and data. I also...
- 15 Jan 2022, 20:37
- Forum: SFS2X Questions
- Topic: [NEW] SFS2X 2.18.0 is available!
- Replies: 8
- Views: 7203
Re: [NEW] SFS2X 2.18.0 is available!
Lapo wrote:[NEW] RoomStorage API now support a 'CUSTOM' type where you can pass your own implementation of the IRoomStorage interface.
Yay! But how? There's no option to set a custom Storage class in the backend as for the Buddy Storage...
Cheers
- 02 Nov 2021, 09:29
- Forum: SFS2X Questions
- Topic: Server sending *public messages* into a room?
- Replies: 4
- Views: 4233
Re: Server sending *public messages* into a room?
Hi Lapo,
thank you for the explanation! I'll go with the admin/mod messages then, good hint with the separate event! This way I should be able to add it to the message history as it is.
Best,
Niklas
thank you for the explanation! I'll go with the admin/mod messages then, good hint with the separate event! This way I should be able to add it to the message history as it is.
Best,
Niklas
- 21 Oct 2021, 15:10
- Forum: SFS2X Questions
- Topic: Server sending *public messages* into a room?
- Replies: 4
- Views: 4233
Re: Server sending *public messages* into a room?
Hi Lapo, A public message is supposed to be sent by someone in the Room. If not the receivers won't know who actually sent the message. Makes sense? Sort of, but why can't the public message originate from "the server" instead of a person in the room? The server is omnipresent, it doesn't ...
- 20 Oct 2021, 20:54
- Forum: SFS2X Questions
- Topic: Server sending *public messages* into a room?
- Replies: 4
- Views: 4233
Server sending *public messages* into a room?
Hi Lapo, during my successful development journey with SFS2X, I came across a problem I couldn't solve. And at this near-finished stage, I somehow need to solve it without breaking all the code there is. :oops: The situation Players can form clubs. Each club has an own room. Players are automaticall...
- 07 Jul 2021, 16:44
- Forum: SFS2X Questions
- Topic: Custom IRoomStorage
- Replies: 9
- Views: 20173
Re: Custom IRoomStorage
Hi Lapo, we haven't made any progress on this front, sorry, the main reason being it's not a very requested features. Not a problem, but is there a way to replace the way Rooms are persisted? Because: Have you considered using plain local file storage? Room data files are very small and even if you ...
- 07 Jul 2021, 16:34
- Forum: SFS2X Questions
- Topic: Custom BuddyStorage and DBManager?
- Replies: 2
- Views: 3238
Re: Custom BuddyStorage and DBManager?
Hi Lapo,
it did!
So the lifecycle of the BuddyStorage is: instantiate, setBuddyListManager(), init().
Thank you very much!
Cheers,
Niklas
it did!
So the lifecycle of the BuddyStorage is: instantiate, setBuddyListManager(), init().
Thank you very much!
Cheers,
Niklas
- 07 Jul 2021, 15:21
- Forum: SFS2X Questions
- Topic: Custom BuddyStorage and DBManager?
- Replies: 2
- Views: 3238
Custom BuddyStorage and DBManager?
Hi Lapo, I've implemented a BuddyStorage that uses PostgreSQL as backend. I want to access the Zone's DBManager but it seems I cannot access it in my init() method as the Zone isn't initialized yet: In my own BuddyStorage.java: @Override public void init() { var zone = SmartFoxServer.getInstance().g...
- 07 Jul 2021, 14:28
- Forum: 2X Features Wish List
- Topic: Plugable serializers for ISFSObjects
- Replies: 5
- Views: 15117
Re: Plugable serializers for ISFSObjects
Lapo wrote:@Luke64
(and one we've recommended in several occasions too).
Pack whatever you want to send into a byte[] (using your custom serializer) and wrap it in an SFSObject.
I think in fact you recommended it to me. Works fine
- 07 Jul 2021, 10:09
- Forum: 2X Features Wish List
- Topic: Plugable serializers for ISFSObjects
- Replies: 5
- Views: 15117
Re: Plugable serializers for ISFSObjects
Just to jump in on the subject with an example because we internally use Google's Protocol Buffers (PB) for communication between server and client: with a little overhead per message (like ~10 bytes I'd think) we just wrapped serialized PBs (byte[]) into an SFSObject under key "p". That w...
- 06 Jul 2021, 21:08
- Forum: SFS2X Questions
- Topic: Custom IRoomStorage
- Replies: 9
- Views: 20173
Re: Custom IRoomStorage
Hi Lapo, I also came across the need to replace the RoomStorage class... for the simple reasons that PostgreSQL's syntax for binary fields ("bytea") is not supported by the supplied database implementation and even when switching to useTextSerialization = true , it serializes the room conf...
- 12 Jan 2021, 15:59
- Forum: SFS2X Questions
- Topic: How to send data back
- Replies: 7
- Views: 9536
Re: How to send data back
i know but how can i send data back with LOGIN_OUT_DATA using LOGIN_IN_DATA data Just get the SFSObject from the event and add to it. Everything you add will be returned. Here's an example from my code: // get SFSObject provided to return a new name to the client after login ISFSObject outData = (I...
- 11 Jan 2021, 12:03
- Forum: SFS2X Questions
- Topic: Authenticate from Facebook/Steam/Windows/iOS etc.
- Replies: 2
- Views: 4019
Re: Authenticate from Facebook/Steam/Windows/iOS etc.
1) Will the user name change mentioned above also be picked up by SFS2X? Will it use that name for logging out other sessions with the same name? Or will it eventually stick to the originally submitted name (e.g. above "user"), in which case my solution won't work? Yes, you can override t...