WebPlayer (and WebG...
 
Notifications
Clear all

WebPlayer (and WebGL) support

6 Posts
3 Users
0 Reactions
1,195 Views
(@rahimi)
Posts: 2
New Member
Topic starter
 

Hi, 

Combu works perfectly for me in the unity player and on my Android device but my WebPlayer version doesn't work. With the WebPlayer version, I can not log in anymore. I'm getting errors for both log-in in and creating new accounts. I did try to create a crossdomain.xml file etc and thought the networking might be an issue but it didn't help much.

The network connectivity to the web server is not an issue as I'm using asset bundles that I am downloading from the same http server without any problem.

I'm wondering if Combu is compatible with the WebPlayer? Are there any networking security related limitations that I need to consider? 

Thanks in Advance!

Reza

 
Posted : 31/03/2015 4:01 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Hi,

I think they're bugs in Unity 5, both webplayer and WebGL, I discovered it right now by logging what is being sent from Unity and what was received in the webservice:

  • Webplayer: the first field added to WWWForm (in our case it's everywhere the "action" parameter) for some reason contains also the headers, the log output of the REQUEST in the webservice had "Content-Length:_143 Content-Type:_application/x-www-form-urlencoded X-Unity-Version:_5_0_0f4 action" instead of just "action" as it should have been (this happens to my iMac on Safari, while on Chrome it seems to work and on Firefox it doesn't send any parameter at all; so there's something wrong at all with webplayer compiler); this of course will invalidate any request because the parameter "action" is not found; to try yourself add the following line at top of users.php and open the file log file after trying to login: AppLog::Info("USERS: " . print_r($_REQUEST, TRUE));
  • WebGL: here is a bug in SHA1 hash computing (and presumably MD5 too), here is a thread on Unity forum about a similar issue that was in 4.6 but I tried with WebGL and it's there too, so I suppose there's something going wrong in their IL2CPP compiler; to try yourself: write CBManager.instance.EncryptSHA1("635633966750300000changeme") and see that it gives different results if you run in editor and in web browser

Since they're bugs in Unity I cannot do anything but I'm going to fill a report to Unity. Unity 3.5 and 4.6 haven't this issue.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 31/03/2015 12:28 pm
(@rahimi)
Posts: 2
New Member
Topic starter
 

Thanks for your super quick response.

Well, its not much we can do then right now but to wait for Unity to fix the bugs.

 
Posted : 31/03/2015 2:01 pm
(@artyom)
Posts: 16
Eminent Member
 

I 'll try to check my game with webPlayer

When I press play I have a bug:

Failed to get Combu server info

When I try to log in I have this error :

"Login failed: Rejected because no crossdomain.xml policy file was found" 

I'll add line in the top of users.php and open the file log file after trying to login: AppLog::Info("USERS: " . print_r($_REQUEST, TRUE));

and in log file I have this:

21/10/2015 11:29:56 [INFO] USERS:Array ( [action] => create [Password] => 202cb962ac59075b964b07152d234b70 [Username] => new [CustomData] => {} [sig_time] => 635810381968420000 [sig_crc] => b76eb8f800393ec12f1d3411c89bde9129cb406d )
21/10/2015 11:29:57 [INFO] USERS:Array ( [action] => create [Password] => 202cb962ac59075b964b07152d234b70 [Username] => new [CustomData] => {} [sig_time] => 635810381977920000 [sig_crc] => c228e0616b57e7d838195e673489c642040e2650 )

 
Posted : 21/10/2015 12:40 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Artyom said

"Login failed: Rejected because no crossdomain.xml policy file was found" 

As you may notice from this error it seems you haven't crossdomain.xml file on your site, it must be in the root of your domain folder. You will find a sample crossdomain.xml in the web files of Combu, just copy it in the root of your site.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 21/10/2015 1:40 pm
(@artyom)
Posts: 16
Eminent Member
 

Thank you very much for help. It worksbiggrin

 
Posted : 21/10/2015 2:43 pm
Share: