Solved Weird skript-yaml issue

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

jaylawl

Active Member
Jan 29, 2017
173
31
0
I'm getting started with using skript-yaml right now.

Reading this file: (https://hastebin.com/goherasolo.php), i've come across an issue. For some reason, the script that i made to read the file, stops at some point and won't execute the rest.

So i've used this code to debug and find out where things are going wrong:
code_language.skript:
    loop all yaml nodes from "courses.yml":
        broadcast "%loop-value%"

I learned that the script stops directly after reading the node "Courses.petrichor.Holes". All other prior nodes are read fine without a problem.

Is this some YAML formatting issue i didn't know about? I had a similar script prior to this, it was working fine, although using SkUtilities instead.

/edit:
The script doesn't actually stop. It just fails to read any more yml data after the "Holes" node.

Cheers
 
im having a hard time figuring this out.

What was the code you used to set up the items under "holes"?
Or did you manually create your yaml file?
 
  • Like
Reactions: jaylawl
Found the solution... the numbered-nodes that come after "Holes" have to be within '1', '2', quotes like this for them to be readable by skript-yaml.
 
Status
Not open for further replies.