I have produced several Windows clients with Unity 3D, which use C# as the language, and no outside libraries. I use WWW for my network traffic, and I’m imported LitJSON’s source to the project to parse JSON from an MVC4 service. This works as the client.
The first line that my game does, is execute the OnStartup of the Main Camera, and make a WWW call. Fiddler did not detect this happening during the freeze, so it appears it is not from and communication issues.
This is on Windows 7 64 and Windows 8 64, on IE 9, FF Latest and Chrome Latest.
Any ideas what might be causing this?
Here is my log file:
130305 08:48:03 ------------------------------------------------------------
130305 08:48:03 Instance starting, version 4.0.1f2_9bb580cddf70, UNITY_WEB_ENABLE_AUTODOWNLOAD: 1, GetDisableAutoUpdates(): 0
130305 08:48:03 Datafile file:///C:/Data/unity%20proj/Built%20Game/Web%20Client/Built%20Game.unity3d
web: player version 4.0.1f2
web: load mono
Mono path[0] = 'C:/Users/bob/AppData/LocalLow/Unity/WebPlayer/player/Release3.x.x/Data/lib'
Mono path[1] = 'C:/Users/bob/AppData/LocalLow/Unity/WebPlayer/mono/Release3.x.x/Data/lib'
web: start, src=Built Game.unity3d abs=file:///C:/Data/unity%20proj/Built%20Game/Web%20Client/Built%20Game.unity3d flags=0x0
web: sucessfully initialized
130305 08:48:04 loader: start ok
130305 08:48:04 Times: download 0.1 load 0.9
Loading webdata version: 4.0.1f2
Initialize engine version: 4.0.1f2
GfxDevice: creating device client; threaded=0
Direct3D:
Version: Direct3D 9.0c [nvd3dum.dll 8.17.12.7600]
Renderer: NVIDIA Quadro 1000M
Vendor: NVIDIA
VRAM: 2014 MB (via DXGI)
Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0
Begin MonoManager ReloadAssembly
Platform assembly: C:\Users\bob\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\UnityEngine.dll (this message is harmless)
Non platform assembly: C:\Users\bob\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Assembly-CSharp.dll (this message is harmless)
Loading C:\Users\bob\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Assembly-CSharp.dll into Unity Child Domain
- Completed reload, in 0.253 seconds
<RI> Initializing input.
<RI> Input initialized.
desktop: 1920x1200 59Hz; virtual: 3840x1200 at -1920,0
Platform assembly: C:\Users\bob\AppData\LocalLow\Unity\WebPlayer\mono\Release3.x.x\Data\lib\System.dll (this message is harmless)
Platform assembly: C:\Users\bob\AppData\LocalLow\Unity\WebPlayer\player\Release3.x.x\Data\lib\CrossDomainPolicyParser.dll (this message is harmless)
I suppose it would help to indicate that 1 machine is an AMD 6 core 3.2, and the other is an I7 Laptop. Both have VS 2012 Ultimate, VS2010, SQL Express and other development tools on them, including Java SE 6 u43 and Java SE 7 u17. As well as Eclipse. This is also using the free version of Unity 3D, 4.0.1f2, but it was failing in a prior edition as well.
Nothing useful in that log file unfortunately, I recommend filing a bug report to us, include a repro project and specific repro steps. If you could let me know the 6-digit case id, I’ll have a look for you.
Thanks,
Chris
I added Debug.Log messages to it, and found out that the web service is not connecting. It works just fine if I run the player html file from my file system where unity built it. But then I copies the html and unity 3D file to my server. It loads and starts the game graphics, but it does not connect to the service.
Any reason why it can connect to a web site service (remote location) from my local machine, but when I host it on the same server as the service, it can’t see it?
Have you done any renaming of the html build file on your server? because I’ve seen that before, I would get a 404 not found on the .unity3d build because it’s trying to find the old .unity3d file name.
My example:
I have a build of my test project named: WebPlayer build.html and the .unity3d file is named WebPlayer build.unity3d
I have renamed both files to WebPlayer_build to eliminate the space. Even though I renamed both files I still get a 404 file not found, and that’s because in my html build file it’s still trying to find WebPlayer build.unity3d, this piece of JS code shows you here:
u.initPlugin(jQuery(“#unityPlayer”)[0], “WebPlayer build.unity3d”);
So, to fix I would need to rebuild with the correct name or just edit that JS code to and hit save:
u.initPlugin(jQuery(“#unityPlayer”)[0], “WebPlayer_build.unity3d”);
Maybe that’s why?
Thanks,
Chris
Have you done any renaming of the html build file on your server? because I’ve seen that before, I would get a 404 not found on the .unity3d build because it’s trying to find the old .unity3d file name.
My example:
I have a build of my test project named: WebPlayer build.html and the .unity3d file is named WebPlayer build.unity3d
I have renamed both files on the server to WebPlayer_build to eliminate the space. Even though I renamed both files I still get a 404 file not found, and that’s because in my html build file it’s still trying to find WebPlayer build.unity3d, this piece of JS code shows you here:
u.initPlugin(jQuery(“#unityPlayer”)[0], “WebPlayer build.unity3d”);
So, to fix I would need to rebuild with the correct name or just edit that JS code to and hit save:
u.initPlugin(jQuery(“#unityPlayer”)[0], “WebPlayer_build.unity3d”);
Maybe that’s why?
Thanks,
Chris