Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: autumnboy on April 08, 2017, 07:21:41 PM

Title: Xml get node properties-property field bug[SOLVED]
Post by: autumnboy 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
Title: Re: Xml get node properties-property field bug
Post by: jeanfabre 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
Title: Re: Xml get node properties-property field bug
Post by: autumnboy 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

Title: Re: Xml get node properties-property field bug
Post by: jeanfabre 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


Title: Re: Xml get node properties-property field bug
Post by: autumnboy 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