playMaker

Author Topic: DataMaker Tutorials  (Read 21255 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #15 on: April 21, 2016, 01:18:09 AM »
Hi,
thanks guys,
i am happy to hear that :D

MObrien78

  • Playmaker Newbie
  • *
  • Posts: 1
Re: DataMaker Tutorials
« Reply #16 on: April 24, 2016, 01:59:09 PM »
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: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #17 on: April 24, 2016, 05: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
Re: DataMaker Tutorials
« Reply #18 on: May 09, 2016, 01:25:02 PM »
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: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #19 on: May 11, 2016, 05:36:01 PM »
Hi,
I am happy you liked it and took time to say thank you  :D
« Last Edit: May 24, 2016, 10:09:37 AM by djaydino »

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: DataMaker Tutorials
« Reply #20 on: August 26, 2016, 01:04:52 AM »
love it

Riffel

  • Playmaker Newbie
  • *
  • Posts: 1
Re: DataMaker Tutorials
« Reply #21 on: August 27, 2019, 03: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: 15500
  • Official Playmaker Support
Re: DataMaker Tutorials
« Reply #22 on: August 29, 2019, 07:00:12 AM »
Hi,

 Can you explain or give a sample of your json?

What doesn't work for you?


Bye,

 Jean

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: DataMaker Tutorials
« Reply #23 on: July 28, 2020, 05: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: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #24 on: July 28, 2020, 05:25:03 AM »
Hi.
In what part of the tutorial is that?

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: DataMaker Tutorials
« Reply #25 on: July 28, 2020, 05: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: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #26 on: July 28, 2020, 05: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

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: DataMaker Tutorials
« Reply #27 on: July 28, 2020, 06: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: 7614
    • jinxtergames
Re: DataMaker Tutorials
« Reply #28 on: July 28, 2020, 06:46:59 AM »
Hi.
Maybe you should suggest this on the datamaker thread :
https://hutonggames.com/playmakerforum/index.php?topic=2583.0

Lucielu

  • Playmaker Newbie
  • *
  • Posts: 5
Re: DataMaker Tutorials
« Reply #29 on: May 27, 2021, 06:09:09 PM »
Your tutorials helped a lot ! Thank you so much  ;)