I solved it by moving all the Room classes into the package that I put in __lib__, at startup I store the Zone in a Singleton class and instead of doing "getParentZone()" I do "Global.getZone()"
Greetings
Search found 79 matches
- 30 Mar 2023, 18:16
- Forum: SFS2X Questions
- Topic: NullPointerException error during room creation with SFS2X
- Replies: 2
- Views: 1341
- 30 Mar 2023, 10:27
- Forum: SFS2X Questions
- Topic: ClassCastException error in TestRoomExtension initialization
- Replies: 1
- Views: 1268
ClassCastException error in TestRoomExtension initialization
Hello everyone, I'm facing an issue with initializing the TestRoomExtension class in my SFS2X server. I'm getting a java.lang.ClassCastException error with the following message: class test.zone.ZoneExtension cannot be cast to class test.zone.ZoneExtension (test.zone.ZoneExtension is in unnamed modu...
- 30 Mar 2023, 09:34
- Forum: SFS2X Questions
- Topic: NullPointerException error during room creation with SFS2X
- Replies: 2
- Views: 1341
NullPointerException error during room creation with SFS2X
Hi everyone, I am developing an application with SmartFoxServer 2X and I am encountering an error during the creation of a room. I am trying to create a new room with the following code: Room room = getApi().createRoom(getParentZone(), crs, null); But I am receiving the error: Error Generic: java.la...
- 14 Mar 2023, 14:42
- Forum: SFS2X Questions
- Topic: One Instance or Multiple Instances
- Replies: 4
- Views: 2069
Re: One Instance or Multiple Instances
Is it possible to get support?
Greetings
Greetings
- 10 Mar 2023, 11:45
- Forum: SFS2X Questions
- Topic: One Instance or Multiple Instances
- Replies: 4
- Views: 2069
Re: One Instance or Multiple Instances
The hardware is currently very limited, but if I understood correctly, each individual Unity instance will have minimal weight. However, if I were to create a Client Master with all the simulated matches inside, I would have only one instance that simulates all the matches. Wouldn't that be better t...
- 10 Mar 2023, 03:01
- Forum: SFS2X Questions
- Topic: One Instance or Multiple Instances
- Replies: 4
- Views: 2069
One Instance or Multiple Instances
Hi,
For a real-time 3D multiplayer game with 4 players and many objects that move using Unity's physics, and the same for colliders, is it better to create 1 Headless Unity instance for each match, or to put 3 or 4 matches inside each instance?
Regards.
For a real-time 3D multiplayer game with 4 players and many objects that move using Unity's physics, and the same for colliders, is it better to create 1 Headless Unity instance for each match, or to put 3 or 4 matches inside each instance?
Regards.
- 06 Mar 2023, 20:08
- Forum: SFS2X Questions
- Topic: Normal Room with Task vs MMORoom
- Replies: 7
- Views: 2526
Re: Normal Room with Task vs MMORoom
I have designed a basic 2D physics engine to simulate matches on the server, but I have noticed that it has many bugs. I was wondering if there is a way to have the same physics on both the server and the client? I would need a very lightweight physics engine because my intention is to have many obj...
- 06 Mar 2023, 11:46
- Forum: SFS2X Questions
- Topic: Error creating custom server-side extension for Room
- Replies: 5
- Views: 2305
Re: Error creating custom server-side extension for Room
It does not have to update the clients about the existence of the room, only the server needs to know the rooms, in any case I will replace it. Regarding the Class not found problem, what does this come from? in my extension there are all the necessary classes, on SFS2X to create a minimal server do...
- 06 Mar 2023, 11:31
- Forum: SFS2X Questions
- Topic: Error creating custom server-side extension for Room
- Replies: 5
- Views: 2305
Re: Error creating custom server-side extension for Room
The problem is that it doesn't find the "codeball.Match_Extension" class, but the class is there.
Greetings
Greetings
- 04 Mar 2023, 15:26
- Forum: SFS2X Questions
- Topic: Error creating custom server-side extension for Room
- Replies: 5
- Views: 2305
Error creating custom server-side extension for Room
Hi, I'm trying to create a Room with a custom server-side extension in this way: public void TEST_startMatch_Ranked(Menu_Player player_1) { RoomExtensionSettings res = new RoomExtensionSettings("Server", "codeball.Match_Extension"); CreateRoomSettings crs = new CreateRoomSettings...
- 02 Mar 2023, 16:47
- Forum: SFS2X Questions
- Topic: Normal Room with Task vs MMORoom
- Replies: 7
- Views: 2526
Re: Normal Room with Task vs MMORoom
Thanks for the informations
Greetings
Greetings
- 01 Mar 2023, 12:44
- Forum: SFS2X Questions
- Topic: Normal Room with Task vs MMORoom
- Replies: 7
- Views: 2526
Re: Normal Room with Task vs MMORoom
Hi, I'm working with Unity. The map is very simple, but I want to create an authoritative server to prevent possible cheats by users. So if I understand correctly: Normal game rooms; I need to create and move objects on the server (I don't need to create MMOItems, but normal objects); Send the posit...
- 01 Mar 2023, 01:06
- Forum: SFS2X Questions
- Topic: Normal Room with Task vs MMORoom
- Replies: 7
- Views: 2526
Re: Normal Room with Task vs MMORoom
Yes, I want to simulate the interaction between players and objects.
Greetings
So, do I have to define a map on the server to have movement boundaries for the players?No, they should be part of your map data.
Greetings
- 28 Feb 2023, 10:57
- Forum: SFS2X Questions
- Topic: Normal Room with Task vs MMORoom
- Replies: 7
- Views: 2526
Normal Room with Task vs MMORoom
Hi, in my game concept, there are 8 users per game who can only move along the X-axis in real-time. Should I create a normal room and use a Task to send positions every 250ms, or should I create an MMORoom? Additionally, there will be objects that move along both the X and Y axis. Should these objec...
- 14 Feb 2023, 13:00
- Forum: SFS2X Questions
- Topic: Session.SetProperty logic
- Replies: 3
- Views: 1625
Re: Session.SetProperty logic
Perfect thanks