Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jumbojambo on September 25, 2019, 04:52:43 PM

Title: BUG in call method, invoke method (works in editor, not build)
Post by: jumbojambo 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.



Title: Re: BUG in call method, invoke method (works in editor, not build)
Post by: djaydino on September 26, 2019, 04:05:25 AM
Hi.
Try using Linker Wizard (http://hutonggames.com/playmakerforum/index.php?topic=11126.0)
Title: Re: BUG in call method, invoke method (works in editor, not build)
Post by: jumbojambo on September 26, 2019, 12:28:27 PM
Interesting.  I didn't know about that.  However, this is a different issue. 
Title: Re: BUG in call method, invoke method (works in editor, not build)
Post by: djaydino on September 27, 2019, 05:57:59 AM
Hi.
Sorry i did not read the question correctly.

I will ping jean.
Title: Re: BUG in call method, invoke method (works in editor, not build)
Post by: jeanfabre 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