playMaker

Author Topic: Problem with CallMethod  (Read 3333 times)

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Problem with CallMethod
« on: May 08, 2014, 06:21:42 PM »
Hi!

I have used the callMethod action successfully on a package called Bird flock from the Asset Store.
I send LandAll and birds will land on predefined spots.. lovely... works like a charm.

Another method available is ScareAll. So i set a trigger area and via trigger event get to a state like this. /(See image)

However as you can se I get this red warning
Error editing action
Ambiguous Matching in method resolution..

Needless to say this doesnt work... what does the warning mean?
The console is throwing...

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.CallMethod.DoMethodCall () (at Assets/PlayMaker/Actions/CallMethod.cs:79)
HutongGames.PlayMaker.Actions.CallMethod.OnUpdate () (at Assets/PlayMaker/Actions/CallMethod.cs:56)
HutongGames.PlayMaker.FsmState.OnUpdate ()
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.Update ()
PlayMakerFSM.Update ()


regards

Mark
« Last Edit: May 08, 2014, 06:27:33 PM by markfrancombe »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Problem with CallMethod
« Reply #1 on: May 08, 2014, 09:57:21 PM »
Never seen that one.

Are you looking for Invoke Method instead?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with CallMethod
« Reply #2 on: May 09, 2014, 02:59:33 AM »
Hi,

 Can you share the ScareAll methods you have? I'll then try to repro.
 
Bye,

 Jean

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Re: Problem with CallMethod
« Reply #3 on: May 09, 2014, 06:18:15 AM »
Hi

If by share method you mean the script that im pointing to using this action?
Then yes I will send by PM later, better not publish here as its a paid package.
Im not sure if anything will work without The whole package though?

Will PM later

Mark

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Re: Problem with CallMethod
« Reply #4 on: May 09, 2014, 02:51:45 PM »
Hi Jean,

Sent you a PM with the script in it.. Did some digging, it MUST be something wrong with the ScareAll method.. cos I tried removing the first one (LandAll) and ONLY using ScareAll, same error...

Is this a PlatMaker thing now, or should I contact the dev?

Mark

markfrancombe

  • Sr. Member
  • ****
  • Posts: 338
Re: Problem with CallMethod
« Reply #5 on: May 10, 2014, 06:08:31 AM »
@Lane, what is the diffrence between invoke method and call method?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Problem with CallMethod
« Reply #6 on: May 10, 2014, 08:49:21 AM »
My understanding is that Call Method can return information while Invoke Method just executes the method. You weren't specifying any parameters in the screenshot, so it seems like you don't need to return any data.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Problem with CallMethod
« Reply #7 on: May 13, 2014, 08:35:27 AM »
Hi,

 Ok, I confirm it's not working, if you have signatures override, the solution is to name each method uniquely, like ScareALL and ScareAllWithDelay for the one with the two floats, then callMethod will be happier :)

hopefully this will be fixed in the next release of PlayMaker.

bye,

 Jean