playMaker

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

jumbojambo

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
BUG in call method, invoke method (works in editor, not build)
« on: September 25, 2019, 01: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: 4615
    • View Profile
    • jinxtergames
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #1 on: September 26, 2019, 01:05:25 AM »
Hi.
Try using Linker Wizard

jumbojambo

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

djaydino

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

I will ping jean.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: BUG in call method, invoke method (works in editor, not build)
« Reply #4 on: October 17, 2019, 02: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