playMaker

Author Topic: DataMaker Tutorials  (Read 13388 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #15 on: April 20, 2016, 10:18:09 PM »
Hi,
thanks guys,
i am happy to hear that :D

MObrien78

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: DataMaker Tutorials
« Reply #16 on: April 24, 2016, 10:59:09 AM »
This seems really hard and complicated but I will try to do it anyway. How long are you doing this already?
If you want to know more about business and companies, check out www.anpoli.pl!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #17 on: April 24, 2016, 02:08:11 PM »
Hi,
I learned datamaker to make this tutorial :)
So not so long (a couple of days including learning about xml)

Anna57

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: DataMaker Tutorials
« Reply #18 on: May 09, 2016, 10:25:02 AM »
This is the best series ever. Thank you so much!
If you want to know more about saving environment, check out CDPH environmantal inspections!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #19 on: May 11, 2016, 02:36:01 PM »
Hi,
I am happy you liked it and took time to say thank you  :D
« Last Edit: May 24, 2016, 07:09:37 AM by djaydino »

play_edu

  • Full Member
  • ***
  • Posts: 116
    • View Profile
Re: DataMaker Tutorials
« Reply #20 on: August 25, 2016, 10:04:52 PM »
love it

Riffel

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: DataMaker Tutorials
« Reply #21 on: August 27, 2019, 12:09:54 PM »
Hi! I need some help with "Convert Json string to Xml Node" action. Can't find tutorial. I need to read and write JSON files. Thank you!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15370
  • Official Playmaker Support
    • View Profile
Re: DataMaker Tutorials
« Reply #22 on: August 29, 2019, 04:00:12 AM »
Hi,

 Can you explain or give a sample of your json?

What doesn't work for you?


Bye,

 Jean

Broken Stylus

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: DataMaker Tutorials
« Reply #23 on: July 28, 2020, 02:17:11 AM »
Bumping this.
There is the Store Reference field that remains always empty. Yet I checked  and it's supposed to store a string. I still manage to obtain results with the property of a node being correctly extracted and stored to a variable. Is this normal?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #24 on: July 28, 2020, 02:25:03 AM »
Hi.
In what part of the tutorial is that?

Broken Stylus

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: DataMaker Tutorials
« Reply #25 on: July 28, 2020, 02:36:53 AM »
Thus far went through part 1.
There is the Xml Select Single Node action.
In the video, the string field for Store Reference stays empty too. Now, aside from storing whatever should appear here in a string variable to reuse it later on in an action like Xml Get Node Properties, I'm not sure this field to be that useful but still, I wondered if I was doing something wrong.
I may push this issue into a general Datamaker thread because it's not really about the tutorials although this thread is often the first result one gets in a search engine for this forum.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #26 on: July 28, 2020, 02:50:28 AM »
Hi.
Reference is stored in memory and xml result in a variable.

A case where you would Set properties and get properties regular could be a use case.

But as xml is slow i usually convert to hash tables @ start and use those to reference, load / save.

here is a tutorial video on that (its not yet public as my unity asset was declined, as apparently i need to update my images to make it look better -.- )


Broken Stylus

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: DataMaker Tutorials
« Reply #27 on: July 28, 2020, 03:27:28 AM »
Reference is stored in memory

That's what I thought but then I don't see the point of having this field since it's not filled with a string. It's confusing because you expect it to be filled with some string data but it remains empty.

You can either leave it as it is by default, or decide to use a string variable, but the FsmString var remains empty nonetheless too.

Well, I think I got a eureka moment. That string is used to actually give a name to the reference, so that name can be used in other actions.
Being in the result area of the action led me to think it would actually store some text generated by the action.

The description of that field is confusing:

Quote
The result of the xPathQuery stored in memory. More efficient if you want to process the result further

You then expect a result to actually be displayed in this field.
When it should be:

Quote
Name of the reference that will be used to point to the result of the xPathQuery stored in memory

It's not perfect but I find it more explicit, especially since the code does this:

Code: [Select]
DataMakerXmlUtils.XmlStoreNode(node,storeReference.Value);
And we can see that a node is stored, attached to that specific reference.

Could be reworded:

Quote
Name of the reference that corresponds to the resulting node found with the xPathQuery. This node is stored in memory and can be called with this reference in other actions

A bit more wordy but at least it clearly explains what is going on and what is to be expected.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5156
    • View Profile
    • jinxtergames
Re: DataMaker Tutorials
« Reply #28 on: July 28, 2020, 03:46:59 AM »
Hi.
Maybe you should suggest this on the datamaker thread :
https://hutonggames.com/playmakerforum/index.php?topic=2583.0