playMaker

Author Topic: BUG in call method, invoke method (works in editor, not build)  (Read 1135 times)

jumbojambo

  • Playmaker Newbie
  • *
  • Posts: 9
BUG in call method, invoke method (works in editor, not build)
« on: September 25, 2019, 04:52:43 PM »
So using the actions 'call method', 'invoke method' and others, there is a bug. 

- If the script is PRIVATE then playmaker will run the script in the EDITOR.
- If the script is PRIVATE and run in a BUILD (win 10), then the action will not work.  It just stops and will not run the c# script.

I am giving 2 screenshots as a reference.  This is from the workable change after adding in PUBLIC.

Solution:  Make the script PUBLIC

Issue:  It runs fine in the editor but not in a build.  One may think it works OK, but will not in the final build.




djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #1 on: September 26, 2019, 04:05:25 AM »
Hi.
Try using Linker Wizard

jumbojambo

  • Playmaker Newbie
  • *
  • Posts: 9
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #2 on: September 26, 2019, 12:28:27 PM »
Interesting.  I didn't know about that.  However, this is a different issue. 

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #3 on: September 27, 2019, 05:57:59 AM »
Hi.
Sorry i did not read the question correctly.

I will ping jean.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #4 on: October 17, 2019, 05:33:13 AM »
Hi,

 I actually think it is related.

 if no other script explicitly use this private function, it's stripped when compiled.

 use the linker wizard to detect the usage of this function and it will be flagged to survive stripping.

Bye,

 Jean