Search found 20 matches

by imteractive
07 May 2012, 17:46
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Thanks Bax! Works perfectly! ;)
by imteractive
07 May 2012, 17:09
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Thanks Bax! You are saying that Lapo suggestion won't work or that I need to use another method to save the SFSObject to the database?
by imteractive
07 May 2012, 10:48
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Any suggestion please?
by imteractive
05 May 2012, 00:17
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

I've used this to store the SFSObject on the DB and it works:

Code: Select all

user.getVariable("data").getSFSObjectValue().getHexDump()


But now I don't know how to convert it back into a SFSObject.

Am I on the right path? Can you please shed some light here?
by imteractive
04 May 2012, 23:30
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Thanks for your suggestions guys! They're really helpful.

However, I was just now trying to do a test saving a SFSObject to a BLOB field on my DB but I'm getting this error:

"java.sql.SQLException: Invalid argument value: java.io.NotSerializableException"

Any idea what am I doing wrong?
by imteractive
01 May 2012, 11:28
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Still on this subject, I'm wondering if there's a reasonable maximum for user variables. On the zone config it's set by default at 5, but I'd potentially need a lot more (50-100) if I'm going to store all user data in UserVariables. Is there a problem to have such a high number of user variables? Pl...
by imteractive
01 May 2012, 00:25
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Re: Saving user state/data

Thanks rjgtav!
by imteractive
30 Apr 2012, 17:08
Forum: SFS2X Questions
Topic: Saving user state/data
Replies: 12
Views: 13035

Saving user state/data

I would like to know if it's OK to save user state (energy, money, etc) during gameplay on UserVariables and then when the user leaves save that data to the database. I like this solution a lot because allows me to just do a DB call at the beginning and at the end of the game, but I would like to kn...
by imteractive
30 Apr 2012, 11:31
Forum: SFS2X Questions
Topic: Database queries performance
Replies: 7
Views: 7994

Re: Database queries performance

Thank you!
by imteractive
30 Apr 2012, 09:17
Forum: SFS2X Questions
Topic: Database queries performance
Replies: 7
Views: 7994

Re: Database queries performance

Thanks for your reply Lapo! I really appreciate it. How about how to handle those requests? Do you think it's better to create a request handler for each case or to create a generic one and then inside it do the logic to handle the different queries? i.e. is it fast/performant to have several differ...
by imteractive
28 Apr 2012, 15:28
Forum: SFS2X Questions
Topic: Database queries performance
Replies: 7
Views: 7994

Re: Database queries performance

Thanks guys.

@Lapo, can you explain further why #1 it's a lot better?
by imteractive
27 Apr 2012, 08:55
Forum: SFS2X Questions
Topic: Database queries performance
Replies: 7
Views: 7994

Database queries performance

I would like to know what you guys think it's the best option when needing to do a simple query to the game database: #1 - Send an extension request to the SFS2X asking for it to make the query and then send back the results directly to the user. #2 - Use just a regular PHP/MySQL combo to do the con...
by imteractive
22 Apr 2012, 20:02
Forum: SFS2X Questions
Topic: Extension not overwriting
Replies: 4
Views: 6241

Re: Extension not overwriting

Thanks for your suggestion Lapo! Although I would definitely prefer just to have a one-click deployment I guess for now that will have to do it.
by imteractive
19 Apr 2012, 19:32
Forum: SFS2X Questions
Topic: Extension not overwriting
Replies: 4
Views: 6241

Re: Extension not overwriting

While that's probably a bit better than my solution, it's still not ideal.

I know it should work in AUTO, but for some reason it's not.

Any suggestion?
by imteractive
19 Apr 2012, 18:24
Forum: SFS2X Questions
Topic: Extension not overwriting
Replies: 4
Views: 6241

Extension not overwriting

Hi, I'm having an annoying problem that every time I try to update an extension the Finder says the file is being used and it doesn't allow me to replace the .jar. I have to shutdown the SFS and do it... Is there something I can do to avoid this? P.S.: The reload extension mode is already set to AUTO.

Go to advanced search