Author Topic: Bug in 2.0.7c  (Read 6279 times)

gregmax17

  • Guest
Bug in 2.0.7c
« on: June 07, 2012, 06:05:42 AM »
I imported the NGUI framework into a new project and I am getting this error:

  1. Assets/NGUI/Examples/Scripts/InventorySystem/Editor/InvDatabaseInspector.cs(67,57): error CS1502: The best overloaded method match for `NGUIEditorTools.RegisterUndo(string, params Object[])' has some invalid arguments
  2.  

This is the line of code:

  1. NGUIEditorTools.RegisterUndo("Delete Inventory Item", db);
  2.  

Again, just imported this into a new project. Anyone else getting this? Anyone know how to fix this?

loopyllama

  • Guest
Re: Bug in 2.0.7c
« Reply #1 on: June 07, 2012, 06:17:43 AM »
I do not think that is a bug.
That code exists in OnInspectorGUI so it sounds like HOW you added NGUI to your project is the issue, but it really isn't an issue. I bet you only saw that message once then never saw it again, right? You can ignore it in that case.

fwiw, to install/update NGUI: open a blank empty new scene in your project, delete NGUI (if NGUI already exists), import NGUI, switch scenes back to one of your real scenes.


gregmax17

  • Guest
Re: Bug in 2.0.7c
« Reply #2 on: June 07, 2012, 06:46:03 AM »
Quote
fwiw, to install/update NGUI: open a blank empty new scene in your project, delete NGUI (if NGUI already exists), import NGUI, switch scenes back to one of your real scenes.

I did just this (twice) and I am still seeing the error. I even restarted Unity.

loopyllama

  • Guest
Re: Bug in 2.0.7c
« Reply #3 on: June 07, 2012, 06:52:58 AM »
what version of unity are you using?

gregmax17

  • Guest
Re: Bug in 2.0.7c
« Reply #4 on: June 07, 2012, 06:58:07 AM »
I am using 3.5.2f2

loopyllama

  • Guest
Re: Bug in 2.0.7c
« Reply #5 on: June 07, 2012, 07:20:26 AM »
you stumped me. I think there is a critical piece of information we are missing though. I just do not know what that is yet :)
perhaps something like: you are not importing the entire NGUI package, it really is an older version... I don't know

that method is used all over the place in NGUI so you should see a bunch of errors, yet you do not. that is something...
For instance, in NGUIMenu.cs on line 98...you do not get an error there yet it calls the same function.

If I were you I would try changing the offending line of code until it worked, to figure out what is going wrong. try right clicking on it select "go to declaration", etc. I think if you fiddle with that it will become apparent what went wrong....
 

PhilipC

  • Guest
Re: Bug in 2.0.7c
« Reply #6 on: June 07, 2012, 07:38:05 AM »
Is this the only error you are getting? Maybe there are some other compiler errors that appear before this one?

gregmax17

  • Guest
Re: Bug in 2.0.7c
« Reply #7 on: June 07, 2012, 07:52:29 AM »
This is the first error I am getting, and I am getting it throughout the same file.

Here is an image of all the errors I am getting when I import NGUI (hopefully the image works): http://tinypic.com/r/1564z09/6

PhilipC

  • Guest
Re: Bug in 2.0.7c
« Reply #8 on: June 07, 2012, 08:10:38 AM »
Hmm i'm lost as to why this would be happening. I just tried it myself into a fresh project and I get no such errors  :-\.

It is only a editor script so if you wanted to keep working you could delete that script and it would only effect the look of the DB inspector or you could also just remove the inventorySystem folder as its not required by NGUI.

I will check with Mike to see if he has any ideas.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Bug in 2.0.7c
« Reply #9 on: June 07, 2012, 09:43:14 AM »
Try not importing the examples folder.

loopyllama

  • Guest
Re: Bug in 2.0.7c
« Reply #10 on: June 07, 2012, 10:02:53 AM »
yeah I second that. I get no errors but I also do not import the entire folder of models.
...and every version I do a search for "Inventory" and change the menu item to an NGUI folder to get rid of the Inventory bar at the top of my small screen...

gregmax17

  • Guest
Re: Bug in 2.0.7c
« Reply #11 on: June 07, 2012, 10:49:51 AM »
Thanks for the suggestions, I will have to try them later tonight (at work right now, sadly - I want to work on game dev right now! ha)

I will let know the results later.

gregmax17

  • Guest
Re: Bug in 2.0.7c
« Reply #12 on: June 07, 2012, 09:16:41 PM »
Ok, I am back from work to try this again.

Try not importing the examples folder.

I did just that, and now I am getting this error:

  1. Assets/NGUI/Scripts/Editor/NGUIMenu.cs(42,49): error CS1502: The best overloaded method match for `NGUIEditorTools.RegisterUndo(string, params Object[])' has some invalid arguments
  2.  

I don't think this is a file I should be deleting though...

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: Bug in 2.0.7c
« Reply #13 on: June 07, 2012, 09:24:22 PM »
Just a quick thought, are you using Unity's Asset Server? I know that we had a whole set of random errors updating to a new version. Although since you are creating a new project that probably isn't the cause. You might want to try and create a small project that recreates the error and then upload it somewhere.