Page 1 of 1

using openspace and red box

Posted: 13 Apr 2012, 16:55
by kuzniz
Hello,

How do I use the openspace and the redbox in the same application ( using the same zone) ?

I have notice that in SFS2X we can use only one extention

regards

Shachar

Re: using openspace and red box

Posted: 18 Apr 2012, 09:50
by Bax
This is not possible out-of-the-box. As you said, you can't have two Extensions attached to a Zone.
What you can do is get the RedBox Extension source code and port its methods to your custom Extension which, also, extends the OpenSpace Extension.

Re: using openspace and red box

Posted: 09 Mar 2014, 18:51
by kuzniz
can you put here please a sample code how to do it ?

Re: using openspace and red box

Posted: 11 Mar 2014, 08:20
by Bax
1) Create an OpenSpace Extension as described in the documentation (SFS2X or SFS Pro).
2) Open the RedBox server-side source code and copy all the classes in your project, except the RedBoxExtension.java file.
3) Open the RedBoxExtension.java file and copy all its methods and properties to the Extension you created before (step 1). Just pay attention to the init method. In fact you will need to merge it with the _init method you are supposed to create in the OpenSpace Extension.
Hope this helps.