playMaker

Author Topic: Many Playmaker console errors.[SOLVED]  (Read 313 times)

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Many Playmaker console errors.[SOLVED]
« on: April 04, 2019, 06:47:39 AM »
Hi, to explain the problem, I have a sample scene in a project with an attached playmaker prefab that worked fine.
I added the content of another project to try and merge the two together, I now have the following errors

Code: [Select]
-----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp.dll
Compilation failed: 34 error(s), 13 warnings
-----CompilerOutput:-stderr----------
Assets/Scripts/Movement.cs(7,19): warning CS0108: `Movement.camera' hides inherited member `UnityEngine.Component.camera'. Use the new keyword if hiding was intended
C:\Program Files\Unity\Editor\Data\Managed/UnityEngine/UnityEngine.CoreModule.dll (Location of the symbol related to previous warning)
Assets/PlayMaker/Actions/ActionHelpers.cs(149,36): error CS1061: Type `Animation' does not contain a definition for `AddClip' and no extension method `AddClip' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/AddAnimationClip.cs(68,15): error CS1061: Type `Animation' does not contain a definition for `AddClip' and no extension method `AddClip' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/AddAnimationClip.cs(72,15): error CS1061: Type `Animation' does not contain a definition for `AddClip' and no extension method `AddClip' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/AddMixingTransform.cs(50,28): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/AnimationSettings.cs(64,24): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/AnimationSettings.cs(71,9): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/AnimationSettings.cs(72,9): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/AnimationSettings.cs(76,10): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/AnimationSettings.cs(81,10): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/BaseAnimationAction.cs(18,36): error CS1061: Type `Animation' does not contain a definition for `AddClip' and no extension method `AddClip' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/BlendAnimation.cs(75,24): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/BlendAnimation.cs(84,14): error CS1061: Type `Animation' does not contain a definition for `Blend' and no extension method `Blend' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/EnableAnimation.cs(49,33): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/PlayAnimation.cs(72,20): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/PlayAnimation.cs(84,15): error CS1061: Type `Animation' does not contain a definition for `Play' and no extension method `Play' of type `Animation' could be found. Are you missing `UnityEngine.Playables' using directive?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/PlayAnimation.cs(88,15): error CS1061: Type `Animation' does not contain a definition for `CrossFade' and no extension method `CrossFade' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/PlayAnimation.cs(126,15): error CS1061: Type `Animation' does not contain a definition for `Stop' and no extension method `Stop' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/PlayRandomAnimation.cs(90,20): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/PlayRandomAnimation.cs(102,15): error CS1061: Type `Animation' does not contain a definition for `Play' and no extension method `Play' of type `Animation' could be found. Are you missing `UnityEngine.Playables' using directive?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/PlayRandomAnimation.cs(106,15): error CS1061: Type `Animation' does not contain a definition for `CrossFade' and no extension method `CrossFade' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/PlayRandomAnimation.cs(144,15): error CS1061: Type `Animation' does not contain a definition for `Stop' and no extension method `Stop' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/RemoveMixingTransform.cs(45,28): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/RewindAnimation.cs(40,27): error CS1061: Type `Animation' does not contain a definition for `Rewind' and no extension method `Rewind' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/SetAnimationSpeed.cs(48,33): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/SetAnimationSpeed.cs(55,9): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/SetAnimationTime.cs(50,14): error CS1061: Type `Animation' does not contain a definition for `Play' and no extension method `Play' of type `Animation' could be found. Are you missing `UnityEngine.Playables' using directive?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/SetAnimationTime.cs(52,24): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/SetAnimationTime.cs(61,10): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/SetAnimationTime.cs(65,10): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/SetAnimationTime.cs(71,16): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/SetAnimationWeight.cs(50,24): error CS0021: Cannot apply indexing with [] to an expression of type `Animation'
Assets/PlayMaker/Actions/Animation/SetAnimationWeight.cs(57,9): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
Assets/PlayMaker/Actions/Animation/StopAnimation.cs(41,27): error CS1061: Type `Animation' does not contain a definition for `Stop' and no extension method `Stop' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Animation/StopAnimation.cs(45,27): error CS1061: Type `Animation' does not contain a definition for `Stop' and no extension method `Stop' of type `Animation' could be found. Are you missing an assembly reference?
Assets/Scripts/Physics/Animation.cs(5,14): (Location of the symbol related to previous error)
Assets/PlayMaker/Actions/Material/SetMaterialMovieTexture.cs(28,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Material/SetMaterialMovieTexture.cs(48,38): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/MovieTextureAudioSettings.cs(14,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/MovieTextureAudioSettings.cs(33,38): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/PauseMovieTexture.cs(14,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/PauseMovieTexture.cs(24,38): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/PlayMovieTexture.cs(14,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/PlayMovieTexture.cs(27,38): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/StopMovieTexture.cs(14,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Movie/StopMovieTexture.cs(24,38): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Web/WWWObject.cs(28,22): warning CS0618: `UnityEngine.MovieTexture' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
Assets/PlayMaker/Actions/Web/WWWObject.cs(98,53): warning CS0618: `UnityEngine.WWW.GetMovieTexture()' is obsolete: `MovieTexture is deprecated. Use VideoPlayer instead.'
-----EndCompilerOutput---------------

So playmaker did work, until I tried to merge two projects together, is this something that is solvable?

« Last Edit: April 08, 2019, 11:53:07 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Many Playmaker console errors.
« Reply #1 on: April 04, 2019, 07:39:25 AM »
Hi,

 you have an issue with a script called Movement. Can you double check you don't have it twice or something in your project?

 Bye,

 Jean

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: Many Playmaker console errors.
« Reply #2 on: April 04, 2019, 08:09:23 AM »
Hi Jean, in assets I have 3 movement related scripts

FlyerMovementController
Movement
UIMovement

The Movement script is as follows

Code: [Select]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Movement : MonoBehaviour {
public Transform camera;
public Transform player;
public Rigidbody m_Rigidbody;
public float m_Speed;
public VRTeleporter teleporter;
private static bool created = false;
public bool teleport = true;
private PlayerInformation playerInfo;

// Update is called once per frame
void Awake() {
}

void Start () {
playerInfo = GameObject.Find("PlayerInfo").GetComponent<PlayerInformation>();
player.localPosition = new Vector3( player.position.x , playerInfo.height , player.position.z);
teleport = playerInfo.teleport;
}
void Update () {
if (!teleport) {
float vertical = Input.GetAxis("Vertical");
float horizontal = Input.GetAxis("Horizontal");
if (vertical!= 0){
m_Rigidbody.velocity = camera.forward * m_Speed * vertical;
}
else if (horizontal!= 0){
m_Rigidbody.velocity = camera.right * m_Speed * horizontal;
}
}
}

public void ChangeMovementMethod () {
teleport = !teleport;
playerInfo.teleport = teleport;
}
}


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14316
  • Official Playmaker Support
    • View Profile
Re: Many Playmaker console errors.
« Reply #3 on: April 04, 2019, 11:23:40 PM »
Hi,

 ok, I don't think that's actual problem, looking at the full log, it seems you don't have the latest playmaker or that it's not configured properly for your current build target.

 what platform are you trying to build to?

Bye,

 Jean

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: Many Playmaker console errors.
« Reply #4 on: April 05, 2019, 12:32:13 AM »
Trying to build to windows, it did build fine before I merged the two projects together. As I cannot see the playmaker window how can I check the version I have?
My unity version is 2018.2.3f1
I have downloaded the latest available version from the old store layout 1.9.0.p14 (Apr 01,2019)
« Last Edit: April 05, 2019, 01:05:38 AM by DIamod »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3627
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Many Playmaker console errors.
« Reply #5 on: April 05, 2019, 05:55:21 AM »
It looks like a script in the merged project defines an Animation type that overrides the Unity Animation type, breaking a lot of PlayMaker Animation actions. Did you write the scripts in the merged project? Can you find an Animation type definition?

DIamod

  • Playmaker Newbie
  • *
  • Posts: 17
    • View Profile
Re: Many Playmaker console errors.
« Reply #6 on: April 08, 2019, 03:35:19 AM »
I started again, updated to a newer version of unity, and removed all the custom scrips which has got it working.

Thanks for trying to troubleshoot it.