Search found 10 matches

by Onion
14 Feb 2011, 17:16
Forum: SFS2X Questions
Topic: Hopefully my last issue... RequestHandler
Replies: 8
Views: 13076

Seems I run into a slight issue after testing some things out. First I cannot put a trace command inside the function generate model, it causes the NULL exception error. Next I cannot put


warehouse = ext.getWarehouse();


Edit:

Ok now I realize its because the constructor was causing the issue ...
by Onion
14 Feb 2011, 16:31
Forum: SFS2X Questions
Topic: Hopefully my last issue... RequestHandler
Replies: 8
Views: 13076

Here is the code from WarehouseInfo:


public ISFSObject toSFSObject()
{
ISFSObject sfso = new SFSObject();

sfso.putInt("id", id);
sfso.putInt("owner_id", owner_id);

return sfso;

}


Problem is with all the trace commands I have in the requesthandler none show up in my server log, so ...
by Onion
14 Feb 2011, 07:05
Forum: SFS2X Questions
Topic: Hopefully my last issue... RequestHandler
Replies: 8
Views: 13076

Ok inside the Main Extension Class I have the following:
This is inside init function which is part of CWMain class.

addRequestHandler("getModel", CWGetInfoHandler.class);


Then the handler class is :


package cw.extensions;

import com.smartfoxserver.v2.annotations.Instantiation;
import com ...
by Onion
13 Feb 2011, 20:47
Forum: SFS2X Questions
Topic: Hopefully my last issue... RequestHandler
Replies: 8
Views: 13076

Thanks for your help again but neither of those two fixed the issue.

My sfs is working fine and I even did an ip check and a connected check before I send the extension request. Both came back as connected and with the propery ip. Also changing to the params instead of what I had did not do the ...
by Onion
13 Feb 2011, 02:46
Forum: SFS2X Questions
Topic: Hopefully my last issue... RequestHandler
Replies: 8
Views: 13076

Hopefully my last issue... RequestHandler

I am looking over the RPG character example and was trying to do an addRequestHandler. In flash I have it send over the proper parameters when the player logs in correctly. Problem is I receive a NULL pointer error due to the



sfs.send(new ExtensionRequest("getModel", new SFSObject()));



I am ...
by Onion
12 Feb 2011, 19:44
Forum: SFS2X Questions
Topic: Could use some help on this extension
Replies: 3
Views: 6834

You rock.
by Onion
12 Feb 2011, 17:36
Forum: SFS2X Questions
Topic: Could use some help on this extension
Replies: 3
Views: 6834

Clarify

Ok since I didnt get any responses and after reading my thread I thought it might need a little clarifying.

Basically my situation is understanding and not really the code. If anyone could help me understand I would really appreciate it.

If you have just 3 classes (One is your SFSExtension ...
by Onion
12 Feb 2011, 02:35
Forum: SFS2X Questions
Topic: Could use some help on this extension
Replies: 3
Views: 6834

Could use some help on this extension

I am currently working on a custom extension and no matter how many examples I look at, I cannot find one that meets my answer.

I currently have 3 eventhandlers (login, zone login, and server ready), I was setting up a database read and a timer in the server read eventhandler but ran into an issue ...
by Onion
26 Jan 2011, 22:22
Forum: SFS2X Questions
Topic: Newbie Help
Replies: 3
Views: 7431

Yeah it was the examples going to a local number... thanks for your help!
by Onion
26 Jan 2011, 05:32
Forum: SFS2X Questions
Topic: Newbie Help
Replies: 3
Views: 7431

Newbie Help

Ok I installed the 2X version and runs fine with me through a localhost. I can connect to simple chat and everything. I setup my ports properly and gave my buddy my ip address to access to see if he could log into simple chat with me as well. He gets the same welcome screen as I do and clicks simple ...