2D Toolkit Forum

2D Toolkit => Support => Topic started by: CrowbarSka on February 20, 2013, 05:29:28 pm

Title: Error when building for WebPlayer or Google Chrome
Post by: CrowbarSka on February 20, 2013, 05:29:28 pm
I deploying a Google Native Client build, but I just got the following error in the console and nothing was created.

Quote
Assets/TK2DROOT/tk2d/tk2dIndex.cs(130,97): error CS0117: `System.IO.File' does not contain a definition for `GetLastWriteTime'

The same error displays when I try to make a web player build too, and there are serious rendering issues with the output which I can't even begin to describe. I just get my skybox with a white circle in the middle!

It's supposed to look like this:

(https://dl.dropbox.com/u/5370568/Luminesca/Screenshots/tk2d_good.jpg)



But it actually looks like this:

(https://dl.dropbox.com/u/5370568/Luminesca/Screenshots/tk2d_bad.jpg)

I've no idea what this error means or why I can't make a web player build. Standalone builds work fine on all platforms.

Can anyone help? Is this a problem with Unity itself or 2D Toolkit?
Title: Re: Error when building for WebPlayer or Google Chrome
Post by: unikronsoftware on February 22, 2013, 12:05:19 am
Please move tk2dIndex.cs to Assets/TK2DROOT/tk2d/Editor/tk2dIndex.cs
This file was moved in a previous build, but Unity doesn't move files during upgrades.

I can't say for certain what the rendering glitch is in your web player build... do you use any custom shaders?
Title: Re: Error when building for WebPlayer or Google Chrome
Post by: CrowbarSka on March 11, 2013, 03:17:25 pm
Sorry for the slow reply. This seems to have fixed the issue! Thank you for your help!