Search found 29 matches

by roocell
16 Sep 2009, 22:31
Forum: iPhone Objective-C API
Topic: memleak when calling smartFoxClient:connect: twice
Replies: 0
Views: 5162

memleak when calling smartFoxClient:connect: twice

in my implementation I have reason to call connect twice (to reconnect to the server when the client disconnects). discovered a memleak on some objects. i release some objects before they're alloced to resolve the leak. - (void)connect:(NSString *)ipAdr port:(NSInteger)port &...
by roocell
16 Sep 2009, 22:26
Forum: iPhone Objective-C API
Topic: loadConfig memleak
Replies: 4
Views: 15862

loadConfig memleak

found this is leaking some memory
need to release NSURL* url;

added the release after it was used. this seems to stop the leak.

Code: Select all

doc = [[CXMLDocument alloc] initWithContentsOfURL:url options:0 error:&error];
[url release];
by roocell
14 Sep 2009, 14:12
Forum: Server Side Extension Development
Topic: Handling dropped messages?
Replies: 5
Views: 8020

ok - that's fair. it must have something to do with the way i'm doing things then. i'm creating room variables on the serverside via an extension message from the client. even with a stable connection sometimes: - my client msg doesnt get to the server - my client doesnt get notified of a roomvar ch...
by roocell
11 Sep 2009, 22:36
Forum: Server Side Extension Development
Topic: Handling dropped messages?
Replies: 5
Views: 8020

TCP isnt foolproof. take wifi for example - dropped packets can occur all the time. I've noticed this while developing my iphone app to work with smartfoxserver. normally it works flawlessy, but sometimes my extension messages get lost. (i'm setting up room vars with a serverside script coming from ...
by roocell
26 Aug 2009, 13:06
Forum: SmartFoxServer 1.x Discussions and Help
Topic: trace() in extension not appearing in admintool log
Replies: 12
Views: 19829

oh ok. thanks for the help - it's just my misunderstanding. i thought it was in the logs (the man tab of the adminTool). maybe the documentation on the trace() function could be explained a little better. Outputs the message to the SmartFoxServer console and to the Admininistrator Tool. It can be us...
by roocell
26 Aug 2009, 11:46
Forum: SmartFoxServer 1.x Discussions and Help
Topic: trace() in extension not appearing in admintool log
Replies: 12
Views: 19829

just to be sure I'm looking in the right spot - it's supposed to show up in the log in the adminTool? i'm using Pro 1.6.6 here's my zone config <Zones> <Zone name="zone1" emptyNames="true"> <Extensions> <extension name="srv" className="ServerRoomVars.as" type=...
by roocell
25 Aug 2009, 21:38
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Losing Room variables
Replies: 6
Views: 9102

i take that back. it only worked if the value is changed by the server.
if the value remains the same then
_server.setRoomVariables

doesnt update the owner of the variable.
looks like i'll have to do it completely through a serverside extension :(
by roocell
25 Aug 2009, 21:17
Forum: SmartFoxServer 1.x Discussions and Help
Topic: persistent rooms ?
Replies: 2
Views: 5014

yep - my theory worked. here's part of the extension script if you're interested realized this thread should be in the extension forum. else if (cmd == "createroom") { trace("createroom") //_server.createRoom(roomObj, user, sendUpdate, broadcastEvt, roomV...
by roocell
25 Aug 2009, 19:21
Forum: SmartFoxServer 1.x Discussions and Help
Topic: trace() in extension not appearing in admintool log
Replies: 12
Views: 19829

i already had these settings have <FileLoggingLevel>FINEST</FileLoggingLevel> <ConsoleLoggingLevel>INFO</ConsoleLoggingLevel> <ExtensionRemoteDebug>true</ExtensionRemoteDebug> should i try INFO ? does the trace statement show up in the adminTool somewhere else? I assumed the statement in the docs me...
by roocell
25 Aug 2009, 18:50
Forum: SmartFoxServer 1.x Discussions and Help
Topic: persistent rooms ?
Replies: 2
Views: 5014

persistent rooms ?

i require my rooms to be persistent (even after all users leave) because I would like to provide a robust gaming service that can handle disconnects. here's what i'm thinking. - rather than have the client create the room, have it send an xt message to the server, the server will create the room and...
by roocell
25 Aug 2009, 18:47
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Losing Room variables
Replies: 6
Views: 9102

so my theory above worked. i now have a serverside extension which reads in all the vars for a room and sets the ownership to the server. i call sendXtMessage everytime my client creates a roomvar, triggering the server to ownsership. function handleRequest(cmd, params, user, fromRoomId, proto&#...
by roocell
25 Aug 2009, 18:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: trace() in extension not appearing in admintool log
Replies: 12
Views: 19829

both of those conditions are true for me.
by roocell
25 Aug 2009, 17:15
Forum: SmartFoxServer 1.x Discussions and Help
Topic: trace() in extension not appearing in admintool log
Replies: 12
Views: 19829

trace() in extension not appearing in admintool log

the user doc says

Outputs the message to the SmartFoxServer console and to the Admininistrator Tool.
It can be useful for remote debugging when developing Extensions.


I get the trace log in the console, but not in the adminTool logs.
Is there something I have misconfigured ?
by roocell
25 Aug 2009, 16:01
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Losing Room variables
Replies: 6
Views: 9102

will this server-side extension achieve setting all room vars to server ownership? function handleRequest(cmd, params, user, fromRoom, protocol) { if (protocol == "xml") { switch (cmd) { case "permvars": var rVars = fromRoom.getVariables(...
by roocell
25 Aug 2009, 13:45
Forum: SmartFoxServer 1.x Discussions and Help
Topic: persistent room vars
Replies: 6
Views: 8663

what i'm going to try to do is predefine a whole bunch of rooms and permanent variables in the config.xml file. when a user 'creates' a room, I'm just going to kinda fake it and have him join one of the pre-existing rooms. And then the user can modify the server-owned variables without taking ownser...

Go to advanced search