pomelo-unityclient-socket icon indicating copy to clipboard operation
pomelo-unityclient-socket copied to clipboard

Unity Web Player

Open Flowan24 opened this issue 11 years ago • 11 comments

Hi,

You cann't build a Unity3d Web Player Release, the reason for this is the Security Sand Box of the Web Player (see http://docs.unity3d.com/Manual/SecuritySandbox.html).

The following error message appears when you try to build your Unity3d project on the Web Player Platform: ArgumentException: The Assembly System.Runtime.Serialization is referenced by SimpleJson. But the dll is not allowed to be included or could not be found.... SimpleJson is using Reflections these won't be supported by the Web Player Subset.

At the moment I'm trying to replace the SimpleJson.dll with the SimpleJSON from the Unify Community (http://wiki.unity3d.com/index.php/SimpleJSON). Maybe someone of you could give me some feedback to this decision and/or maybe someone comes up with an other idea.

Best Regards

Flo

Flowan24 avatar Jul 09 '14 16:07 Flowan24

Hi, The source of this repository is writed by netEase , but the source is cann't be use in the unity project. so , i just perfect it . i dont check in the unityweb , so i will fixed it recently.thanks

luzexi avatar Jul 11 '14 03:07 luzexi

Hi,

Thank you for your reply. I created in the last 2 days a Unity3d Project which uses instead of the SimpleJson.dll the SimpleJSON.cs from the Unify Community. Therefor I had to made changes on the pomelo-unityclient-socket and on the SimpleJSON.cs as well. I also integrated to the pomelo-unityclient-socket the Prefetch Socket Policy which is nessacery to allow a socket communiction within a Unity3d Web Player Release.

Finally it works now and I can connect to my pomelo server even if the Unity3d Web Player Release is hosted on a different server. I created also a Standalone and Android Release and it works.

While I'm playing around I found some other issues within the Unity3d Editor by breaking the internet connection while I'm connected to a server.

Maybe it would be better to release at this place a Unity3d Project instead of a Mono Project, what do you think?

Flowan24 avatar Jul 11 '14 09:07 Flowan24

sure,release at unity3d is the best way to show project.i will create another to place the demo. is there anything problem when you use the api?

in addition , i write some usefully plug like network-http , audio-media , resource , if you like you can use them in your project.if you know chinese , you also can visit blog : http://www.luzexi.com whatever , thank you!!

luzexi avatar Jul 11 '14 10:07 luzexi

Hi, I finished my work for the different platforms and now the API is working within the Web Player, on Android Devices and iOS Devices as well. Luzexi can I send you my Unity Project and you have a look at it and maybe could you upload it somewhere and provide a download link on the github side for it?

Flowan24 avatar Jul 14 '14 10:07 Flowan24

Ok,It's my pleasure! Is it very huge? or you can send the email : [email protected]

luzexi avatar Jul 14 '14 12:07 luzexi

Hi,please share me [email protected]

Avatarchik avatar Aug 02 '14 18:08 Avatarchik

Hi,it is here: https://github.com/luzexi/pomelo-unityclient-socket-demo

luzexi avatar Aug 04 '14 01:08 luzexi

Hi, how can i get session ID in this one. I need that session ID but i couldn't figure it out how to get it.

realler avatar Sep 17 '14 12:09 realler

Hi,there is no session ID.You can figure it by yourself.

luzexi avatar Sep 18 '14 02:09 luzexi

I used the client is luzexl's link and they work fine in Android, iOS and web player mode. I wonder why we don't request to merge it to this official repository?

poelam avatar Mar 18 '15 05:03 poelam

we don't want import any unity api in SDK level. it's a pure .net project.

zk-luke avatar Mar 18 '15 06:03 zk-luke