playMaker

Author Topic: Xml get node properties-property field bug[SOLVED]  (Read 2317 times)

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Xml get node properties-property field bug[SOLVED]
« on: April 08, 2017, 07:21:41 PM »
Hi, Updated playmaker and datamaker and Xml get node Properties action seems to not let me put any variables in the property field or if there is a reference field or variable field in the source selection that gets the variable instead.

get this error as well when selecting the property field:

ArgumentException: Object type HutongGames.PlayMaker.FsmString cannot be converted to target type: HutongGames.PlayMaker.FsmEvent
Parameter name: val

Using Unity: 5.5.0f3
Playmaker: 1.8.2.f7

thanks for your time
Josh
« Last Edit: July 04, 2017, 05:42:13 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Xml get node properties-property field bug
« Reply #1 on: April 10, 2017, 01:33:45 AM »
Hi,

 Yes, it's a know issue, I hope to release in any day a version with new versions of them actions that will be compatible with 1.8

Bye,

 Jean

autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Xml get node properties-property field bug
« Reply #2 on: July 02, 2017, 08:52:32 PM »
Hi,
I can put variables in now with no problem. But, when I specify an attribute from an xml file I want to store as a variable it grabs every attribute and stores it.

Example:
Xml contains:
<Player1>
 <Lives>1</Lives>
 <Lvl>2</Lvl>
 <UP>3</UP>
</Player1>

Properties node grabs 'Lives' and stores it as: 123

Thanks for your time,
Josh


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Xml get node properties-property field bug
« Reply #3 on: July 03, 2017, 02:57:54 AM »
Hi,

 This is typically because your xpath is not correct: can you show me that xpath you are using?

also in your example, there is no attributes, attributes would look like:

Code: [Select]
<Player1 @lives="1" @Lvl="2" @UP="3">
</Player1>

https://www.w3schools.com/xml/xml_attributes.asp

Bye,

 Jean



autumnboy

  • Junior Playmaker
  • **
  • Posts: 73
Re: Xml get node properties-property field bug
« Reply #4 on: July 03, 2017, 04:24:18 AM »
Okay my bad, I'll set up attributes.
My xpath is: /PlayerStats/Player1


Thanks for your time,
Josh