Search found 112 matches

by moccha
02 Jan 2018, 19:24
Forum: SFS2X Questions
Topic: UserVar intensive?
Replies: 2
Views: 3883

Re: UserVar intensive?

Hi, it's difficult to say "how intensive" because there isn't an scale of "intensiveness" with which we can express that :) In any case setting variables is an ultra light operation, so there should be no problem with a server having to set tens of thousands of vars per second. ...
by moccha
02 Jan 2018, 17:26
Forum: SFS2X Questions
Topic: UserVar intensive?
Replies: 2
Views: 3883

UserVar intensive?

How intensive is it an operation to save a UserVar? I was planning on saving a player's X and Y coordinate to a UserVar every time it is sent from the player, which is about every 300ms per user. Is this unreasonable / costly of an operation to do, or is there simply a better/faster way to save this...
by moccha
03 Feb 2017, 14:28
Forum: SFS2X Questions
Topic: UDP Crash on exit
Replies: 3
Views: 5269

Re: UDP Crash on exit

You can anyways try to see if there's a way in which it can be avoided. Have you tried listening for the "application quit" event and shutting down the SFS2X connection? Would that just be the sfs.disconnect() function, or is there another way to shut down the connection? Currentl...
by moccha
02 Feb 2017, 23:43
Forum: SFS2X Questions
Topic: UDP Crash on exit
Replies: 3
Views: 5269

UDP Crash on exit

It's taken me days but I was able to narrow down what's causing a crash. For some reason, when using an AIR Application and a release SWF, calling initUDP for me will trigger a crash during the application exit. If I don't enable UDP protocol, the app never crashes when exiting. Here's as much info ...
by moccha
08 Feb 2016, 20:03
Forum: SFS2X Questions
Topic: Only allowing a one specific request at a time
Replies: 9
Views: 12117

Re: Only allowing a one specific request at a time

Sorry to bump this topic but I'd like to say 'thank you' again for the additional help.
by moccha
05 Feb 2016, 17:38
Forum: SFS2X Questions
Topic: Only allowing a one specific request at a time
Replies: 9
Views: 12117

Re: Only allowing a one specific request at a time

Lapo, you scared me big time with that observation! As it turns out, I have set the Privilege Manager to disallow SetUserVar requests, but I greatly appreciate that you pointed that out as I wasn't even sure myself!! Thank you very much for the code suggestion. I greatly value your help and support ...
by moccha
04 Feb 2016, 19:12
Forum: SFS2X Questions
Topic: Only allowing a one specific request at a time
Replies: 9
Views: 12117

Re: Only allowing a one specific request at a time

Sure thing. Sorry for the confusion with a database, as I've actually changed it since then: Client asks for an item via a simple command: requestItem(20);//Requesting item #20 Server receives requestItem command, checks that they have the required items before giving them the item: if(player.getVar...
by moccha
04 Feb 2016, 15:45
Forum: SFS2X Questions
Topic: Only allowing a one specific request at a time
Replies: 9
Views: 12117

Re: Only allowing a one specific request at a time

In my case, I am working with a simple RoomVar integer. If I use the volatile keyword, would the server block all other requests for this type while processing or just additional requests from the user? My goal is to just block more than one request at a time from a single user, so if two users simu...
by moccha
03 Feb 2016, 19:14
Forum: SFS2X Questions
Topic: Only allowing a one specific request at a time
Replies: 9
Views: 12117

Only allowing a one specific request at a time

When a user submits a request to get an item, the server checks if they're allowed to get it and then rewards the item. However, I've noticed that if the client spams the request, for a short period of time the server constantly evaluates that they're allowed to receive the item and it will send mul...
by moccha
01 Sep 2015, 19:11
Forum: SFS2X ActionScript 3 API
Topic: How to update user ID?
Replies: 8
Views: 19455

Re: How to update user ID?

Thanks Lapo, I'll instead use the buddy list for this type of communication. I appreciate your detailed response.
by moccha
01 Sep 2015, 17:28
Forum: SFS2X ActionScript 3 API
Topic: How to update user ID?
Replies: 8
Views: 19455

Re: How to update user ID?

Sorry for the confusion. I was only saying that "room.getUserByName("userName").id" forces users to be in the same room to send private messages. The code you suggested does work properly though when a user logs in and out. Here's the scenario: Client1 is a Guest and Client2's na...
by moccha
01 Sep 2015, 03:20
Forum: SFS2X ActionScript 3 API
Topic: How to update user ID?
Replies: 8
Views: 19455

Re: How to update user ID?

I'm using the latest version of the API for as3. (1.6.0)
Also, it does work when i change the code to a local room, however I obviously can't work with other users this way if they're in different rooms as you know. Do you have any ideas or solutions? thanks Lapo. :cry:
by moccha
29 Aug 2015, 18:55
Forum: SFS2X ActionScript 3 API
Topic: How to update user ID?
Replies: 8
Views: 19455

Re: How to update user ID?

Yes, they're definitely in the same room. I join the Lobby, then player 2 joins lobby. My client says their ID was "18". After player 2 logout and rejoin Lobby, it still says their ID is 18 but it should retrieve 19. It tries to send to "18" but nothing happens since this user do...
by moccha
27 Aug 2015, 18:59
Forum: SFS2X ActionScript 3 API
Topic: How to update user ID?
Replies: 8
Views: 19455

How to update user ID?

I started using the PrivateMessageRequest function client side and when I go to send a message I get the User ID from their name via "sfs.userManager.getUserByName(username).id". When I first get a users name for example "Charles", it tells me Charles ID is 18. When he logs out a...
by moccha
12 Aug 2015, 17:49
Forum: SFS2X Questions
Topic: Log report?
Replies: 1
Views: 3618

Log report?

Is there a way to receive any and all error messages generated by the server? I've been manually going through the SFS logs on my server and checking for any exceptions or errors, but I realized how nice it could be if at any point an error happened that it simply contacted me or added it to a speci...

Go to advanced search