Sweet =)
But yea the best solution to this issue is disable as many default server events as possible and use extension calls with the JSON protocol. Its by far the best feature SFS has =)
Search found 127 matches
- 27 Aug 2010, 21:05
- Forum: Server Side Extension Development
- Topic: Write my own protocol
- Replies: 9
- Views: 11864
- 27 Aug 2010, 21:01
- Forum: Server Side Extension Development
- Topic: reload extension
- Replies: 4
- Views: 7595
Humm really? I always leave it on. Any reason (performance wise) why we should turn AutoReloadExtensions off? Sometimes during production some players find bugs that are so rare they can only be found in very specific situations. I find this tag extremely useful for me to fix these things in run tim...
- 27 Aug 2010, 20:50
- Forum: Server Side Extension Development
- Topic: Questions about getCreator()
- Replies: 9
- Views: 12650
- 27 Aug 2010, 18:05
- Forum: Server Side Extension Development
- Topic: Questions about getCreator()
- Replies: 9
- Views: 12650
Humm another find here: Turns out that getCreator() always retrieve the original creator of the room. It doesn't pass the host to the next player. At first it is useful, but since there is no setCreator, you can't rely on it to pass it over and over as people leave the room. example: - Player X is t...
- 25 Aug 2010, 06:17
- Forum: Server Side Extension Development
- Topic: Questions about getCreator()
- Replies: 9
- Views: 12650
- 25 Aug 2010, 05:30
- Forum: Server Side Extension Development
- Topic: Questions about getCreator()
- Replies: 9
- Views: 12650
Thanks for the quick reply and the suggestion BigFIsh. I didn't want to answer right away before I try everything myself =) Well turns out that getCreator() doesn't really return the creator of the room, but instead a SocketChannel (sorry, don't know what that is). I could probably just assign a pro...
- 24 Aug 2010, 05:08
- Forum: Server Side Extension Development
- Topic: Questions about getCreator()
- Replies: 9
- Views: 12650
Questions about getCreator()
hey there fellas I'll probably get to that by the end of this week, so I'm asking in advance just to make sure. I understand that room.getCreator() will get you the user that originally created that room. But what happens if that user leaves? Does the ownership of that room goes to the next user ins...
- 20 Aug 2010, 21:38
- Forum: Server Side Extension Development
- Topic: getUserByName from server extension
- Replies: 3
- Views: 6069
Cool thanks Big Fish =D Yes in fact there are room.getUserByName(uName) and zone.getUserByName(uName). I found them both on posts from Lapo in some old topics, but its not documented in the online docs (at least not in the AS extensions documentations) Is there a place where I can check for all the ...
- 19 Aug 2010, 19:25
- Forum: Server Side Extension Development
- Topic: getUserByName from server extension
- Replies: 3
- Views: 6069
getUserByName from server extension
Hi guys, Is there a way to retrieve the user class from a room instance in the server the same way we do client side? Client Side example: var user:User = sfs.getRoom(1).getUser(uName); In the Actionscript Server Side documentation (http://www.smartfoxserver.com/docs/docPages/serverS...
- 25 Feb 2010, 19:11
- Forum: Server Side Extension Development
- Topic: Question about CPU overload and extensions.
- Replies: 1
- Views: 4178
CPU overload resolved: - Turned out to be a sequence of events that would lead into an infinite function call loop. If one client would trigger that sequence, the server would then get stuck in a single loop that consumed the entire CPU in a matter of hours. But still, now just out of curiosity and ...
- 25 Feb 2010, 03:24
- Forum: Server Side Extension Development
- Topic: Question about CPU overload and extensions.
- Replies: 1
- Views: 4178
Question about CPU overload and extensions.
Hello there, We are on the final stages of our newest expansion and currently at the "stress test". Our CPU hits 100% every 10 to 16 hours forcing me to restart SFS. When I do, CPU gets back to normal and the process starts all over again. My first clue to what could be going wrong is our ...
- 21 Dec 2009, 18:54
- Forum: Server Side Extension Development
- Topic: Program too big jump offset (Line number not available)
- Replies: 9
- Views: 16021
I know this post is extremely old but for those who eventually have the same problem, here is the real reason for the error: - Rhino can't handle big chunks of code within one method alone. In my case I had a single function with over a thousand lines of code. Solution: Split your function into diff...
- 15 Oct 2009, 17:35
- Forum: Server Side Extension Development
- Topic: Quick question n.2: _server.createRoom
- Replies: 3
- Views: 5570
- 13 Oct 2009, 17:34
- Forum: Server Side Extension Development
- Topic: Quick question n.2: _server.createRoom
- Replies: 3
- Views: 5570
Let me refine my question: the create room method from the client API tells us that when a room is a game room (isGame = true) it automatically joins the creator of that room in. In order for that user not to leave the previous room, there is a tag called exitCurrentRoom where you set it to false du...
- 09 Oct 2009, 13:55
- Forum: Server Side Extension Development
- Topic: Dynamic Room Extension Issue
- Replies: 4
- Views: 6300