Page 2 of 2

Re: How to access room extension variables from another class

Posted: 24 Oct 2016, 08:17
by Lapo
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

Re: How to access room extension variables from another class

Posted: 24 Oct 2016, 15:59
by Carl Lydon
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?

Re: How to access room extension variables from another class

Posted: 24 Oct 2016, 16:21
by Lapo

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

Re: How to access room extension variables from another class

Posted: 24 Oct 2016, 17:01
by Carl Lydon
Sorry, typo, meant "main" class. Thanks.

Re: How to access room extension variables from another class

Posted: 11 Oct 2020, 07:20
by Basto
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 ?

Re: How to access room extension variables from another class

Posted: 11 Oct 2020, 16:36
by Lapo
Hi,
can you please give us an example of code that is not working and the stack trace of the relative error?

Thanks