Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity Web Player #12

Open
Flowan24 opened this issue Jul 9, 2014 · 11 comments
Open

Unity Web Player #12

Flowan24 opened this issue Jul 9, 2014 · 11 comments

Comments

@Flowan24
Copy link

Flowan24 commented Jul 9, 2014

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

@luzexi
Copy link

luzexi commented Jul 11, 2014

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

@Flowan24
Copy link
Author

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?

@luzexi
Copy link

luzexi commented Jul 11, 2014

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!!

@Flowan24
Copy link
Author

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?

@luzexi
Copy link

luzexi commented Jul 14, 2014

Ok,It's my pleasure!
Is it very huge? or you can send the email : jesse_luzexi@163.com

@Avatarchik
Copy link

Hi,please share me zloudoktor@gmail.com

@luzexi
Copy link

luzexi commented Aug 4, 2014

@realler
Copy link

realler commented Sep 17, 2014

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.

@luzexi
Copy link

luzexi commented Sep 18, 2014

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

@poelam
Copy link

poelam commented Mar 18, 2015

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?

@zk-luke
Copy link
Member

zk-luke commented Mar 18, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants