Search found 79 matches

by Jochanan
10 Jul 2019, 11:21
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15670

Re: NegativeArraySizeException during SFSApi.createRoom

When i set maxUsersCount to 1 000, it works. It does not work when set to 100 000. Is there any limit? I have not found any in the documentation
http://docs2x.smartfoxserver.com/api-do ... tings.html
by Jochanan
10 Jul 2019, 11:13
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15670

Re: NegativeArraySizeException during SFSApi.createRoom

Lapo wrote:Are you sure this is a positive number?


It was not. The property was MaxInt so MaxInt + 500 is negative number. I have fixed the issue, BUT same exception is being thrown anyway.
This is the content of CRS:
CRS.PNG
(22.74 KiB) Not downloaded yet


Do you have more ideas? :)
by Jochanan
10 Jul 2019, 09:04
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15670

Re: NegativeArraySizeException during SFSApi.createRoom

public Room createLobbyTournamentRoom(BgUser user, String name, long tourId, boolean registerUser) throws ResultException { Tournament tourDb = TournamentService.GetTournamentById(tourId); //Create game room Zone gameZone = getParentZone(); CreateRoomSettings crs = new CreateRoomSettings(); crs.set...
by Jochanan
10 Jul 2019, 07:59
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15670

Re: NegativeArraySizeException during SFSApi.createRoom

There is a task, which is run in different thread, that is creating new rooms. As you might see, from the stacktrace, the exception occcurs inside Caused by: java.lang.NegativeArraySizeException at com.smartfoxserver.v2.util.DefaultPlayerIdGenerator.init(DefaultPlayerIdGenerator.java:25) The " ...
by Jochanan
09 Jul 2019, 08:54
Forum: SFS2X Questions
Topic: NegativeArraySizeException during SFSApi.createRoom
Replies: 16
Views: 15670

NegativeArraySizeException during SFSApi.createRoom

Hi, do you have any idea, in when does it happen? There is a relevant part of the stack trace: Job (DEFAULT.6da64b5bd2ee-4a7df607-0bf3-407a-96cd-2debf92389ff threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NegativeArraySizeExcepti...
by Jochanan
24 May 2019, 12:50
Forum: SFS2X C# API
Topic: Disconnected while away
Replies: 6
Views: 9945

Re: Disconnected while away

In Unity it seems like you can check the Application.internetReachability value once in a while and if it has changed from NetworkReachability.ReachableViaLocalAreaNetwork to NetworkReachability.ReachableViaCarrierDataNetwork or vice-versa then you handle the reconnection. Thanks If you have a code...
by Jochanan
02 May 2019, 15:00
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

I am going to test it right now.
I have tried to test both versions (the version based on 1.7.12 in a special branch) and it looked good. No error so far.
by Jochanan
19 Apr 2019, 20:16
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

Thanks
by Jochanan
18 Apr 2019, 14:39
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

We are using Unity 2017.2 and SmartFoxServer client API 1.7.8, because we would like to support devices with Windows XP - at least from the start to see, whether it is needed or not. .NET 4.5 is not compatible with Windows XP, so we cannot have both XP support and .NET 4.5. In your download page, yo...
by Jochanan
17 Apr 2019, 14:19
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

I am not able to test it out, because we are using version 1.7.8 right now. I need to use this version, because , we are using Scripting runtime version .NET 3.5 equivivalent - stable.

May I ask you for a new version based on 1.7.8 with that change you have implemented there?
Thanks
by Jochanan
17 Apr 2019, 13:35
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

I will let you know
by Jochanan
17 Apr 2019, 10:43
Forum: SFS2X Questions
Topic: Changing room owner
Replies: 12
Views: 10589

Re: Changing room owner

I am just being curious here, but what is the purpose of the public method named "setOwner" inside the Room class if not changing the owner? ... As per our docs, methods that are not documented in the javadocs are for internal use only. ... Do you know, that java has a keyword called priv...
by Jochanan
17 Apr 2019, 09:40
Forum: SFS2X Questions
Topic: Changing room owner
Replies: 12
Views: 10589

Re: Changing room owner

I am just being curious here, but what is the purpose of the public method named "setOwner" inside the Room class if not changing the owner?
I have read a pages of text here, but no answer to be found.
by Jochanan
16 Apr 2019, 17:10
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

If you're expecting global variables to be non null I would recommend to check them with the AdminTool when the problem occurs. Already done during several hours of investigation this bug. Just to make sure that at least on the server side these variables are non-null. Already done during several h...
by Jochanan
16 Apr 2019, 15:04
Forum: SFS2X C# API
Topic: Room.GetVariable is randomly null
Replies: 25
Views: 26372

Re: Room.GetVariable is randomly null

I think that's the problem. As I mentioned it's not correct to access variables in the ROOM_ADD event because this not were you expect them. Unless we're talking about global variables. You should use the ROOM_JOIN event instead, which happens when the user finally has joined the Room and has full ...

Go to advanced search