playMaker

Author Topic: Convert Json String to xml node error on android build  (Read 1762 times)

edufurla

  • Junior Playmaker
  • **
  • Posts: 57
Convert Json String to xml node error on android build
« on: October 11, 2023, 12:16:55 PM »
Hi All.
I found some old posts about JSON errors, but nothing that helps me about this.
On the editor (Windows) all works fine, but when I build to Quest I always get the error event as a result. It does not save the string or store the reference.
Last playmaker version and just download it all from the ecosystem.
Any tips?
Thanks in advance.

edufurla

  • Junior Playmaker
  • **
  • Posts: 57
Re: Convert Json String to xml node error on android build
« Reply #1 on: October 11, 2023, 05:12:16 PM »
Complementing the previous info.
It seems to be an Android problem. Works fine on editor and windows build.
Do not work on Quest or Android phones. (I do not have an IOS to test).
Maybe is there some way (or plug-in) to do the conversion outside Playmaker from Json to XML and then I get the string back to the FSM? Did someone try something like this? (It needs to be easy though, C# is not my strength :))

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Convert Json String to xml node error on android build
« Reply #2 on: October 12, 2023, 07:33:59 AM »
Hi.
What are the errors that you get?
Maybe its a permission issue.
or location.
Have you tried with a xml file directly if it works as it might have the same issue.

https://discussions.unity.com/t/serialization-data-not-working-on-android/176755

edufurla

  • Junior Playmaker
  • **
  • Posts: 57
Re: Convert Json String to xml node error on android build
« Reply #3 on: October 13, 2023, 10:41:22 AM »
No error on Windows and Android just not complete the action. It does not seem related to permissions - unless there is a permission to convert to XML, which seems improbable. :).
If it is related to your post, it should be something to do the serialization on the streaming assets, but honestly, I have no idea if this is the problem and how to do it.
Some older posts say this package could help:
https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@2.0/manual/index.html
But I couldn't even figure out how to install it.
Now I am studying other possibilities to complete my project.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Convert Json String to xml node error on android build
« Reply #4 on: October 13, 2023, 03:06:05 PM »
are you using some Get/Set properties actions?

edufurla

  • Junior Playmaker
  • **
  • Posts: 57
Re: Convert Json String to xml node error on android build
« Reply #5 on: October 14, 2023, 05:51:41 AM »
No, I am not. Even so, I've run the link wizard, just for peace of mind and didn't work.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Convert Json String to xml node error on android build
« Reply #6 on: October 14, 2023, 07:43:15 AM »
Hi.
What data are you handling with the json?