Search found 20 matches

by sebako
04 Jun 2011, 22:30
Forum: SFS2X Questions
Topic: smartfox stops accepting connections/requests
Replies: 15
Views: 6106

I have just read it now, I will try to play with it, unfortunately it won't even let me login to the admin panel when the issue occurs, so doesn't seem to be related to it.
by sebako
04 Jun 2011, 15:39
Forum: SFS2X Questions
Topic: smartfox stops accepting connections/requests
Replies: 15
Views: 6106

smartfox stops accepting connections/requests

Hey guys, I got a bit of trouble here. I have setup my smartfox on a CentOS machine and try to access it using unity webplayer / editor which works fine. However after a few hours of beeing idle or ~20 logins in a row, smartfox stops accepting any requests and the login will fail. After restarting t...
by sebako
31 May 2011, 12:46
Forum: SFS2X C# API
Topic: SFSObject array
Replies: 2
Views: 1994

thanks thomas ... I moved over to ArrayList + Hashtable now to accomplish what I need. Thank you for the inspiration ;)
by sebako
30 May 2011, 11:33
Forum: SFS2X C# API
Topic: SFSObject array
Replies: 2
Views: 1994

SFSObject array

hey guys, I would like to know if it is possible to create an SFSObject array on the unity client, like this: public SFSObject[] areas; I am trying to store different SFSObjects on the client for a later use - from the server I get: ISFSArray arr = dt.GetSFSArray("objects"); for &#...
by sebako
23 May 2011, 10:28
Forum: SFS2X Questions
Topic: get id after insert
Replies: 3
Views: 2007

alright this works - thanks kincade :)
by sebako
20 May 2011, 17:05
Forum: SFS2X Questions
Topic: get id after insert
Replies: 3
Views: 2007

get id after insert

Hey guys, I am inserting something into a database table which works fine: stmt = con.prepareStatement("INSERT INTO `planet` (`user_id`, `main`, `size`, `type`, `seed`) VALUES (?, ?, ?, ?, ?);"); stmt.setInt(1, dbId); stmt.setInt(2, 1); stmt.setInt&#...
by sebako
28 Apr 2011, 21:14
Forum: SFS2X Questions
Topic: sessions
Replies: 5
Views: 2374

yeah i already found that but thank you :)
by sebako
28 Apr 2011, 09:37
Forum: SFS2X Questions
Topic: sessions
Replies: 5
Views: 2374

i am such a dump ^^

thanks Sigtran
by sebako
27 Apr 2011, 20:14
Forum: SFS2X Questions
Topic: sessions
Replies: 5
Views: 2374

sessions

Hey guys, i am wondering a bit about session objects and how they're handled on the server side. I run into trouble when i try to store the database id of the user to the session and read it later on, maybe someone has an idea whats wrong? I set the id using: // Store the client dbId in the session ...
by sebako
21 Apr 2011, 23:25
Forum: SFS2X C# API
Topic: kick user - client code
Replies: 7
Views: 3977

Alright i got it fixed now, just realized that i wasn't catching the admin message nor the disconnect event. Everything is fine now, thanks again.
by sebako
21 Apr 2011, 05:28
Forum: SFS2X C# API
Topic: kick user - client code
Replies: 7
Views: 3977

how could the login error handler help me in that case? what i am trying to archive: 1. user foo logs in to the game and is in the lobby 2. user foo opens a new browser tab and login again with the same account 3. kickuser will be fired by my loginextension 4. display the message that someone has lo...
by sebako
21 Apr 2011, 02:31
Forum: SFS2X C# API
Topic: kick user - client code
Replies: 7
Views: 3977

that is already working, the user will get kicked if someone else is logging in with the same account. I just don't know how can send the info to the client to provide the message why he has been kicked. In the admintool for example there is a message to user field, but how do i catch it on the clie...
by sebako
20 Apr 2011, 22:44
Forum: SFS2X C# API
Topic: kick user - client code
Replies: 7
Views: 3977

no one?
I tried to catch it in the ExtensionResponse, but unfortunately that won't work, or should just send another response to the user before kicking him?
by sebako
18 Apr 2011, 19:14
Forum: SFS2X C# API
Topic: How to check if SFS can be reached
Replies: 2
Views: 1667

when you try to connect // try to connect smartFox.Connect(ip, port); you will have a response and you can catch the response with // check if handshake was successful public void OnConnection(BaseEvent evt) { serverStatus = (bool)evt.Params["success"]; if (...
by sebako
18 Apr 2011, 18:30
Forum: SFS2X C# API
Topic: kick user - client code
Replies: 7
Views: 3977

kick user - client code

Hey guys, on my sfsx2 server i have this code getApi().kickUser(u, null,"Someone else has logged into your account",1); running to kick a user - which works totally fine and the user is removed when desired. What i am wondering about is how to catch the message "Someon...

Go to advanced search