Hi,
you need to deploy your Room Extension under extensions/__lib__/ in order to be able to do what you're asking for...
Since you didn't mention it, I suspect that's the problem.
If not, then I would like to know what error are you getting exactly, if any...
Thanks
How to access room extension variables from another class
- Carl Lydon
- Posts: 298
- Joined: 12 Nov 2007, 16:15
- Location: NYC
- Contact:
Re: How to access room extension variables from another class
Ok, I read this doc:
http://docs2x.smartfoxserver.com/Advanc ... assLoading
Which mentions that you should "deploy the model classes in the extensions/__lib__/ folder...
When you say "deploy" you mean place the jar in that folder, then set the email class in admin tool or config file?
http://docs2x.smartfoxserver.com/Advanc ... assLoading
Which mentions that you should "deploy the model classes in the extensions/__lib__/ folder...
When you say "deploy" you mean place the jar in that folder, then set the email class in admin tool or config file?
Re: How to access room extension variables from another class
Code: Select all
When you say "deploy" you mean place the jar in that folder
Yes, deploying is the process of copying all the relevant files of your Extension to your server which may include also dependencies, additional resources, config files etc...
then set the email class in admin tool or config file?
The email class? No, you need to specify the top class of your Extension, the one extending SFSExtension.
hope it helps
- Carl Lydon
- Posts: 298
- Joined: 12 Nov 2007, 16:15
- Location: NYC
- Contact:
Re: How to access room extension variables from another class
Sorry, typo, meant "main" class. Thanks.
Re: How to access room extension variables from another class
Hello,
when i use handleInternalMessage with a custom type object in 2nd argument i cannot cast it back to the original type, can i have some help ?
when i use handleInternalMessage with a custom type object in 2nd argument i cannot cast it back to the original type, can i have some help ?
Re: How to access room extension variables from another class
Hi,
can you please give us an example of code that is not working and the stack trace of the relative error?
Thanks
can you please give us an example of code that is not working and the stack trace of the relative error?
Thanks
Who is online
Users browsing this forum: Baidu [Spider] and 74 guests