Search found 77 matches

by corwin
27 Sep 2010, 08:07
Forum: Server Side Extension Development
Topic: One browser - many connections
Replies: 1
Views: 1331

One browser - many connections

Hi, We have the following problem - we have browser based game and we are using sfs for internal (constantly connected in iframe) chat in the game. We connect players to sfs using their unique ids for usernames. The problem is that our users are playing the game in tabs. When they open more than one...
by corwin
01 Sep 2010, 08:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Remoting vs. Custom extensions
Replies: 10
Views: 2410

I am not an expert, but how can you secure A, when the client is responsible for db operations.
Also from my exp sfs have no problems with db communications if you put insert/update queries into separate threads and optimize a bit selects..
by corwin
27 Aug 2010, 14:08
Forum: SmartFoxServer 1.x Discussions and Help
Topic: h2 crash
Replies: 2
Views: 1150

Fixed it - added temporary in config file: <DatabaseManager active="true"> <Driver>org.h2.Driver</Driver> <ConnectionString>jdbc:h2:tcp://localhost:9004/__sfscore__;Recover=1</ConnectionString> <UserName>sa</UserName> <Password></Password> <TestSQL><![CDATA[SELECT 1]]></TestSQL> <MaxActive...
by corwin
27 Aug 2010, 13:09
Forum: SmartFoxServer 1.x Discussions and Help
Topic: h2 crash
Replies: 2
Views: 1150

h2 crash

Hi after server restart i got the following error: [ SEVERE ] > DbManager could not retrive a connection. org.h2.jdbc.JdbcSQLException: General error: java.lang.Error: File ID mismatch got=0 expected=21 pos=43003 true org.h2.store.DiskFile@6badc6a5 blockCount:0; SQL statement: INFO | jvm 1 | 2010/08...
by corwin
27 Jul 2010, 09:03
Forum: Server Side Extension Development
Topic: sendRoomList
Replies: 2
Views: 1622

sendRoomList

Is it possible on login not to send all the rooms to the user? I need to send him just the lobby to join it, he doesn't need to know all the rooms. As I have 9k+ rooms, I get very high traffic only in sending room lists on login...
by corwin
27 Jul 2010, 07:31
Forum: Server Side Extension Development
Topic: create room sendUpdate param
Replies: 1
Views: 1604

create room sendUpdate param

I have that simple piece of code: Double roomId = -1.0; if (blah) { try { room = extension.currentZone.getRoomByName(roomName); if (room == null) { room = extension.helper.createRoom(extension.currentZone, params, user, false, true); } extension.he...
by corwin
27 Jul 2010, 07:19
Forum: Server Side Extension Development
Topic: Disable events for room
Replies: 3
Views: 1666

Limbo room doesn't have public messages. I still need help on this topic...
by corwin
20 Jul 2010, 08:39
Forum: Server Side Extension Development
Topic: Disable events for room
Replies: 3
Views: 1666

I managed to do that setting broadcast param to false when calling joinRoom. The problem is that this disables publicMessages also and I need them. Is it possible to send public messages to a room, when you don't know who is inside?
by corwin
19 Jul 2010, 08:58
Forum: Server Side Extension Development
Topic: Disable events for room
Replies: 3
Views: 1666

Disable events for room

Is it possible to disable certain events (user enter/ user leave) for a room? I know it is possible for the zone (DisabledSysEvents), and I know that they are disabled by default for the lobby, but that doesn't work for me (I need other rooms in zone to handle the events and I need users in room to ...
by corwin
19 Jul 2010, 08:24
Forum: Server Side Extension Development
Topic: Many rooms
Replies: 2
Views: 1391

Ok, thanks.
by corwin
16 Jul 2010, 08:52
Forum: Server Side Extension Development
Topic: Many rooms
Replies: 2
Views: 1391

Many rooms

Currently I am developing chat extension for one of our games. We have tons of guilds (tens of thousands) and each guild should have separate chat room. Currently I create those rooms when the first guild member come online and on every new user I just join him in that room - I never destroy those r...
by corwin
07 Jul 2010, 13:13
Forum: Server Side Extension Development
Topic: Add buddy offline
Replies: 5
Views: 1927

I see, you mean calling ExtensionHelper's addBuddy, not BuddyListManager's, because the latter adds the friend directly, without asking permission.
Ok, whatever, I will use my database to store friend requests and make custom extension permissionResponse..
by corwin
06 Jul 2010, 08:27
Forum: Server Side Extension Development
Topic: Add buddy offline
Replies: 5
Views: 1927

ok, I guess I'll make custom addFriend method. If user is online will "addBuddy" and send request to the friend. If not online will "addPermissionRequest". On login I'll "getPendingRequests" and check if my user has such. If so, will ask him to accept/reject. So my prob...
by corwin
06 Jul 2010, 07:26
Forum: Server Side Extension Development
Topic: Loading CPU after few days of SFS uptime
Replies: 5
Views: 2221

I have mysql connections, but I think the problem it is not related. I have hours with much more users, making more queries, but the server is ok. The problem always occurs at least some days after server start and when cpu go high once, it does not go back ok unless restart. Also I have all my inse...
by corwin
05 Jul 2010, 10:44
Forum: Server Side Extension Development
Topic: Loading CPU after few days of SFS uptime
Replies: 5
Views: 2221

I have absolutely the same behaviour - the period is about a week, then I get 100% cpu. Also when open admin tool can't see any stats from it. No errors in the logs too...

Edit: I am with 1.6.7...

Go to advanced search