playMaker

Author Topic: Fixing IL2CPP linking errors[SOLVED]  (Read 172462 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Fixing IL2CPP linking errors
« Reply #15 on: May 06, 2015, 10:05:16 AM »
Hi,

 I am not sure I understand, but if that works for you, great!

Bye,

 Jean

meaphly

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Fixing IL2CPP linking errors
« Reply #16 on: May 10, 2015, 10:24:44 AM »
The "Set Property" works fine using IL2CPP just by doing that :D super happy here! Try it. It is a major ease :)

tyb51

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Fixing IL2CPP linking errors
« Reply #17 on: May 10, 2015, 06:45:47 PM »
The "Set Property" works fine using IL2CPP just by doing that :D super happy here! Try it. It is a major ease :)

Could you elaborate a bit more on what you did? An example would be very useful! I'm having the same issue, and for now I'm not focused on the iOs version of my game so rewriting all Set-actions is not really high on my to-do list? :p But if u have a more effective way of doing it, it would be very helpfull.

meaphly

  • Playmaker Newbie
  • *
  • Posts: 26
Re: Fixing IL2CPP linking errors
« Reply #18 on: May 11, 2015, 06:19:16 AM »
If you make an action that has - for example,

(add the required variables)      

         public override void OnEnter()
      {
         wheel.motorTorque = torque;
         wheel.brakeTorque = brake;
         Rect temp = cam.rect;
         temp.x = 1;
         temp.y = 1;
         temp.height = 1;
         temp.width = 1;
         cam.rect = temp;
         spriterenderer.sprite = sprite;
         gameobject.SetActive (false);
         wheel.steerAngle = steer;
         particles.enableEmission = enabled;
         canvas.renderMode = RenderMode.ScreenSpaceCamera;
         canvas.worldCamera = cam;
         Color tempA = spriterenderer.color;
         tempA.a = 1;
         spriterenderer.color = tempA;
         if (!everyFrame)
         {
            Finish();
         }
      }

You will see just by having the PlayMaker Action in the Project folder the Set Property for wheel collider motortorque works, set sprite works, set sprite alpha colour, the rect of a camera you use in your UI the particle emission
and all that just because you added those lines in a PlayMaker Action.
Make a copy of the Set Property action with a unique name and just modify it. If you have problems I will send you my own, or tell me what functionality exactly you want to add in.
« Last Edit: May 11, 2015, 06:22:47 AM by meaphly »

tyb51

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Fixing IL2CPP linking errors
« Reply #19 on: May 13, 2015, 06:16:50 AM »
Ahhh i think I understand.
Thank you very much for the example.
As I'm going into finals l,  I can't realy tesg if i understand correctly! But I'll keep you on that offer to help me. ;D

unclebob

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Fixing IL2CPP linking errors
« Reply #20 on: May 25, 2015, 03:41:58 PM »
Hi mate

sorry to ask but could you send that example. 

I have a massive deadline and like you had no idea that set property was depreciated and not working in ios.

Cheers

Peter




If you make an action that has - for example,

(add the required variables)      

         public override void OnEnter()
      {
         wheel.motorTorque = torque;
         wheel.brakeTorque = brake;
         Rect temp = cam.rect;
         temp.x = 1;
         temp.y = 1;
         temp.height = 1;
         temp.width = 1;
         cam.rect = temp;
         spriterenderer.sprite = sprite;
         gameobject.SetActive (false);
         wheel.steerAngle = steer;
         particles.enableEmission = enabled;
         canvas.renderMode = RenderMode.ScreenSpaceCamera;
         canvas.worldCamera = cam;
         Color tempA = spriterenderer.color;
         tempA.a = 1;
         spriterenderer.color = tempA;
         if (!everyFrame)
         {
            Finish();
         }
      }

You will see just by having the PlayMaker Action in the Project folder the Set Property for wheel collider motortorque works, set sprite works, set sprite alpha colour, the rect of a camera you use in your UI the particle emission
and all that just because you added those lines in a PlayMaker Action.
Make a copy of the Set Property action with a unique name and just modify it. If you have problems I will send you my own, or tell me what functionality exactly you want to add in.

unclebob

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Fixing IL2CPP linking errors
« Reply #21 on: May 25, 2015, 05:34:46 PM »
Hi Jean

we use Set Properties to display text in a scene.  Essentially an empty object activated by a user action.  What would be the quickest way to replace these actions. 

Hate to ask but we have a tight tight deadline to make and have to get this on ios pronto.

Fixed almost everything else bar the odd warning but we need this functionality.

Cheers for everything

UB


Hi,

 You should not use SetProperty when targeting iPhone, some work some doesn't, I never could make sense of the rule for this. I removed all SetProperties and built custom actions for each one of them, and all problems where gone from that front, that was before IL2CPP, but I we stick to this.

 Bye,

 Jean

tyb51

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Fixing IL2CPP linking errors
« Reply #22 on: June 02, 2015, 01:22:16 PM »
take a look here if it's only to set the tekst (that is if you are using uGui):

http://hutonggames.com/playmakerforum/index.php?topic=8452.15

unclebob

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Fixing IL2CPP linking errors
« Reply #23 on: June 11, 2015, 04:37:46 AM »
take a look here if it's only to set the tekst (that is if you are using uGui):

http://hutonggames.com/playmakerforum/index.php?topic=8452.15

Thank you, wrote our own unoptimized custom action to put text on an attached textmesh.  It works for us and have shared it for improvements.

Thanks for the pointer though

Cheers

Unclebob

serkanos

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Fixing IL2CPP linking errors
« Reply #24 on: June 21, 2015, 03:11:50 PM »
I did these but didnt work my ipad. What is the solution do you know?
Import Assets/PlayMaker/Versions/PlayMakerNACL.unitypackage. These dlls have networking stripped out.
Delete the PlayMaker/Actions/Network folder.
Edit PlayMaker/Actions/CreateObject.cs and add UNITY_IPHONE To the #if list of platforms that don't support networking.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Fixing IL2CPP linking errors
« Reply #25 on: June 22, 2015, 08:18:35 AM »
Hi,

 I made several tests and indeed I made it work with the Nacl version.

The trick is to find which property fails to be accessed with "Set/get Property" action and include the class definition in the link.xml file like so:

http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html

if that doesn't work, can you explain what doesn't work exactly? Is it the same as describe in the original post?

Bye,

 Jean


serkanos

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Fixing IL2CPP linking errors
« Reply #26 on: June 22, 2015, 11:26:35 AM »
my some Xcode outputs

at HutongGames.PlayMaker.Actions.GetProperty.OnUpdate () [0x00000] in <filename unknown>:0
  at Mono.Security.Cryptography.PKCS8+EncryptedPrivateKeyInfo.get_IterationCount () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.FsmState.OnUpdate () [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state) [0x00000] in <filename unknown>:0
  at HutongGames.PlayMaker.Fsm.Update () [0x00000] in <filename unknown>:0
  at PlayMakerFSM.Update () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.EqualityComparer`1+DefaultComparer[System.TimeSpan].Equals (TimeSpan x, TimeSpan y) [0x00000] in <filename unknown>:0
System.Collections.Generic.DefaultComparer:Equals(TimeSpan, TimeSpan)
 
(Filename: currently not available on il2cpp Line: -1)


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Fixing IL2CPP linking errors
« Reply #27 on: June 24, 2015, 08:15:38 AM »
Hi,

 It would be great if you can send me a repro case.

what are you trying to get as property, the component name and the propert, and maybe that will be enough for me to repro.

Bye,

 Jean

serkanos

  • Playmaker Newbie
  • *
  • Posts: 38
Re: Fixing IL2CPP linking errors
« Reply #28 on: June 24, 2015, 08:36:35 AM »
I have a lot of set and get property actions in my game. I dont know how I can change these actions to other action. These are my example actions



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: Fixing IL2CPP linking errors
« Reply #29 on: June 25, 2015, 08:21:01 AM »
Hi,

 ok, then let's try the following:

pubish withot any stripping option and the full .net20 set ( not the sub set).

does that work then?

Bye,

 Jean