Author Topic: NGUI, Unity 4.2 and windows phone 8  (Read 6242 times)

samlucas001

  • Guest
NGUI, Unity 4.2 and windows phone 8
« on: July 23, 2013, 12:18:08 AM »
Hi Guys,

Attempting to get NGUI working with WP8, and just adding the package to a blank project and trying to deploy to my phone I am getting an error
Error building Player: Exception: Error: type `System.Collections.Specialized.OrderedDictionary` doesn't exist in target framework.
I have looked through the code but cannot see any reference to the OrderedDictionary.
Thanks for any help.

Cheers
Sam

dev_xprt

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #1 on: July 23, 2013, 03:48:18 AM »
+1 :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #2 on: July 23, 2013, 05:07:50 AM »
OrderedDictionary is used only in one place -- UIPanel -- and it is not used if the target is WP8. What version of NGUI are you running?

samlucas001

  • Guest
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #3 on: July 23, 2013, 07:13:14 AM »
Hello there,

I am using the evaluation version from "http://www.tasharen.com/?page_id=140" and then have also tried the NGUI distribution service (I am waiting to get paid to buy the full version, and also wanted to test out NGUI to see if it does what I want it to - and it does  :) )

Cheers
Sam

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #4 on: July 23, 2013, 06:23:56 PM »
If the OrderedDictionary is not used - and it is #ifdef'd out -- why would it not compile? Is WP8 directive not working when you do a build? If so, which directive does?

samlucas001

  • Guest
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #5 on: July 23, 2013, 07:56:54 PM »
Hi ArenMook,

Thanks for your help so far.
I can create a simple project, a plane, a cube with rigid body attached, then build and run this, and it runs on my phone and also creates a solution for VS.
As soon as I add in the NGUI package, the error occurs.
If I ONLY add the NGUI DLL part of the package the error still occurs, is there a reference in the DLL to the OrderedDictionary?

Cheers
Sam

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #6 on: July 24, 2013, 03:35:20 AM »
NGUI DLL? Free version of NGUI is well over a year old and is not meant to work on anything other than editor and stand-alone builds. Its purpose is evaluation / preview, not deployment. If you want deployment, you need the full version.

MarceloBarce

  • Guest
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #7 on: September 16, 2013, 10:48:09 PM »
Hello,

I'm replying this thread because I was getting the same error when building for Windows Phone 8, and I'd think the problem was NGUI, BUT then I realized the problem was with other plug-ins.

I solved it by removing all Prime31 plug-ins from my Project. It wasn't a problem for me, since these plug-ins were only for the Android and iPhone versions of my game Retro Runners, and since the WP8 version is a separate Project, removing all the plug-ins didn't affected anything for Windows Phone.

Maybe this is the issue you've got and you were misleaded to think it was NGUI's fault.

(sorry for any english errors, I'm brazilian)
« Last Edit: September 16, 2013, 11:15:07 PM by MarceloBarce »

CazicThule

  • Guest
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #8 on: December 07, 2013, 06:04:14 PM »
I get an error building for WP8 on UIAtlasMaker.cs

System.IO.File.WriteAllBytes(newPath, bytes);

"Doesn't exist in target framework"

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #9 on: December 07, 2013, 06:31:40 PM »
Which version of NGUI?

CazicThule

  • Guest
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #10 on: December 09, 2013, 03:53:23 PM »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI, Unity 4.2 and windows phone 8
« Reply #11 on: December 09, 2013, 04:20:24 PM »
2.6.4 is way out of date.