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
using openspace and red box
Re: using openspace and red box
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.
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.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: using openspace and red box
can you put here please a sample code how to do it ?
Re: using openspace and red box
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.
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.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 26 guests