playMaker

Author Topic: Compiler errors after importing XMLmaker[SOLVED]  (Read 3332 times)

ManicMinerUK

  • Junior Playmaker
  • **
  • Posts: 51
Compiler errors after importing XMLmaker[SOLVED]
« on: March 26, 2015, 11:05:32 PM »
I imported XML maker into my project and now I get a bunch of compiler errors -

Assets/PlayMaker Utils/PlayMakerUtils_Events.cs(14,28): error CS0111: A member `PlayMakerUtils.SendEventToGameObject(PlayMakerFSM, UnityEngine.GameObject, string)' is already defined. Rename this member or use different parameter types

There are 9 in total, all generated by the same file, but different members... They all look to my non-programmer's eye to be complaints that the file contains identical events?

I don't want to mess around with this too much as I'm basically scared of breaking Playmaker if I go mucking around in the .cs files :)
« Last Edit: March 27, 2015, 02:38:43 PM by jeanfabre »

ManicMinerUK

  • Junior Playmaker
  • **
  • Posts: 51
Re: Compiler errors after importing XMLmaker
« Reply #1 on: March 26, 2015, 11:24:56 PM »
Correction - there are 9 compiler errors, across a few different files...

For sake of completeness, I'll post them all here - I dunno what has caused this but as you can imagine it's pretty scary to just suddenly not have Unity any more - Is there an easy way to undo the import?

Assets/PlayMaker Utils/PlayMakerUtils_Events.cs(14,28): error CS0111: A member `PlayMakerUtils.SendEventToGameObject(PlayMakerFSM, UnityEngine.GameObject, string)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_Events.cs(19,28): error CS0111: A member `PlayMakerUtils.SendEventToGameObject(PlayMakerFSM, UnityEngine.GameObject, string, HutongGames.PlayMaker.FsmEventData)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_FsmVar.cs(25,28): error CS0111: A member `PlayMakerUtils.RefreshValueFromFsmVar(HutongGames.PlayMaker.Fsm, HutongGames.PlayMaker.FsmVar)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_FsmVar.cs(82,30): error CS0111: A member `PlayMakerUtils.GetValueFromFsmVar(HutongGames.PlayMaker.Fsm, HutongGames.PlayMaker.FsmVar)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_FsmVar.cs(163,28): error CS0111: A member `PlayMakerUtils.ApplyValueToFsmVar(HutongGames.PlayMaker.Fsm, HutongGames.PlayMaker.FsmVar, object)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_Serialization.cs(109,30): error CS0111: A member `PlayMakerUtils.ParseValueToString(object, bool)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_Serialization.cs(114,30): error CS0111: A member `PlayMakerUtils.ParseValueToString(object)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_Serialization.cs(197,30): error CS0111: A member `PlayMakerUtils.ParseValueFromString(string, bool)' is already defined. Rename this member or use different parameter types

Assets/PlayMaker Utils/PlayMakerUtils_Serialization.cs(467,30): error CS0111: A member `PlayMakerUtils.ParseValueFromString(string)' is already defined. Rename this member or use different parameter types

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Compiler errors after importing XMLmaker
« Reply #2 on: March 27, 2015, 01:34:36 AM »
Hi,

 It's ok, it's nothing dramatic, there is likely a mix up with an old version of either xmlmaker or another asset reyling on PlayMaker utils and they need to be updated/cleaned up.

The first thing I would do is delete the folder "PlayMaker Utils", and import xmlmaker again.

Else:
 Can you search in your project for "PlayMakerUtils_Events". You likely have two files. Simply delete the "PlayMaker Utils" folder that is NOT at the root of your project hierarchy ( in Assets/).


 Bye,

 Jean
 

ManicMinerUK

  • Junior Playmaker
  • **
  • Posts: 51
Re: Compiler errors after importing XMLmaker
« Reply #3 on: March 27, 2015, 10:05:23 AM »
I think I figured it out based on what you said - there wasn't a duplicate folder, but the four files that were throwing errors WERE duplicated... I deleted the four duplicate files, got an error message saying that some of my files were using out-dated APIs, pressed "automatic update" and now everything seems to be working again.

Thanks for the quick response - I was starting to panic :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Compiler errors after importing XMLmaker
« Reply #4 on: March 27, 2015, 02:38:13 PM »
Hi,

 yeah, when you have this kind of issues, it's typically the new way packages are imported in Unity5 and it duplicates files, so you get "xxx 2", be on the look at for this, it may/will happen with other packages too.

 Bye,

 Jean