pufmat / skillsmod

A Minecraft mod that adds a fully configurable skill system to the game.
Other
36 stars 10 forks source link

I trying to setup a skill tree but I think my connections.json are wrong #94

Closed lucastayar12 closed 2 months ago

lucastayar12 commented 2 months ago

First of all I made connections.json from web editor but seens off cause my JSON looks like this:

{
    "normal": {
        "bidirectional": [
            [
                "1aqxfdqvic2vcnr7",
                "xctx5zkkmcilakjd"
            ],
            [
                "xctx5zkkmcilakjd",
                "83r18l7wtyum7wji"
            ],
            [
                "83r18l7wtyum7wji",
                "lnus5h3g5vjx9fc5"
            ],
            [
                "lnus5h3g5vjx9fc5",
                "jkmj5wfjryl1nq42"
            ],
            [
                "jkmj5wfjryl1nq42",
                "kx5skg0r1h6vp50s"
            ],
            [
                "kx5skg0r1h6vp50s",
                "1aqxfdqvic2vcnr7"
            ],
            [
                "xctx5zkkmcilakjd",
                "cgm2jemyeg4ehyx7"
            ],
            [
                "cgm2jemyeg4ehyx7",
                "t0nxj92b6v0dt0ch"
            ],
            [
                "t0nxj92b6v0dt0ch",
                "d57ynr84xh88nrg1"
            ],
            [
                "cgm2jemyeg4ehyx7",
                "gtwn5zvu5js8fa7b"
            ],
            [
                "gtwn5zvu5js8fa7b",
                "d57ynr84xh88nrg1"
            ],
            [
                "gtwn5zvu5js8fa7b",
                "0gd68id9pl4f1fxn"
            ],
            [
                "0gd68id9pl4f1fxn",
                "xctx5zkkmcilakjd"
            ],
            [
                "kx5skg0r1h6vp50s",
                "ny60mmj5623ru2sh"
            ],
            [
                "ny60mmj5623ru2sh",
                "6cy0ho7hehko5wjk"
            ],
            [
                "6cy0ho7hehko5wjk",
                "oeda3zngapvbe4iq"
            ],
            [
                "oeda3zngapvbe4iq",
                "y1nd2fhgseelpr38"
            ],
            [
                "y1nd2fhgseelpr38",
                "ny60mmj5623ru2sh"
            ],
            [
                "36gbmlouat42oxzy",
                "y1nd2fhgseelpr38"
            ],
            [
                "36gbmlouat42oxzy",
                "kx5skg0r1h6vp50s"
            ],
            [
                "lnus5h3g5vjx9fc5",
                "nr3sl3tdittkuufu"
            ],
            [
                "lnus5h3g5vjx9fc5",
                "8zwg74w0tngqhthc"
            ],
            [
                "8zwg74w0tngqhthc",
                "0oaxz75jluw1du8m"
            ],
            [
                "nr3sl3tdittkuufu",
                "0oaxz75jluw1du8m"
            ],
            [
                "nr3sl3tdittkuufu",
                "8kaslkq19er3nme7"
            ],
            [
                "8kaslkq19er3nme7",
                "o4w0xmspaw7aygci"
            ],
            [
                "8zwg74w0tngqhthc",
                "m4tlrngsrhrjnfzx"
            ],
            [
                "m4tlrngsrhrjnfzx",
                "vi9ucd49garkrdhh"
            ],
            [
                "0oaxz75jluw1du8m",
                "mcjvj05znvfrgdkn"
            ],
            [
                "mcjvj05znvfrgdkn",
                "10gv3zdszszl52xt"
            ],
            [
                "m4tlrngsrhrjnfzx",
                "mcjvj05znvfrgdkn"
            ],
            [
                "mcjvj05znvfrgdkn",
                "8kaslkq19er3nme7"
            ],
            [
                "10gv3zdszszl52xt",
                "vi9ucd49garkrdhh"
            ],
            [
                "10gv3zdszszl52xt",
                "o4w0xmspaw7aygci"
            ],
            [
                "1aqxfdqvic2vcnr7",
                "5r70vkebubxsigeo"
            ],
            [
                "5r70vkebubxsigeo",
                "zbncenp8abdqr2b3"
            ],
            [
                "36gbmlouat42oxzy",
                "jkmj5wfjryl1nq42"
            ],
            [
                "83r18l7wtyum7wji",
                "0gd68id9pl4f1fxn"
            ],
            [
                "3r2h381aolpomc95",
                "lnus5h3g5vjx9fc5"
            ]
        ]
    }
}

and the mine default connections.json is like this:

{
    "normal": {
        "bidirectional": [
            ["-11_-2", "-13_-1"],
            ["-11_2", "-13_1"],
            ["-10_-4", "-11_-2"],
            ["-10_4", "-11_2"],
            ["-9_-6", "-10_-8"],
            ["-8_-3", "-10_-4"],
            ["-8_3", "-10_4"],
            ["-9_6", "-10_8"],
            ["-10_-4", "-9_-6"],
            ["-8_-3", "-9_-1"],
            ["-8_3", "-9_1"],
            ["-10_4", "-9_6"],
            ["-6_-9", "-8_-10"],
            ["-6_-2", "-8_-3"],
            ["-6_2", "-8_3"],
            ["-6_9", "-8_10"],
            ["-8_-3", "-7_-5"],
            ["-8_3", "-7_5"],
            ["-4_-10", "-6_-9"],
            ["-4_-1", "-6_-2"],
            ["-4_1", "-6_2"],
            ["-4_10", "-6_9"],
            ["-3_-8", "-5_-7"],
            ["-3_8", "-5_7"],
            ["-3_-8", "-4_-10"],
            ["-2_0", "-4_-1"],
            ["-2_0", "-4_1"],
            ["-3_8", "-4_10"],
            ["-2_-6", "-3_-8"],
            ["-2_6", "-3_8"],
            ["-4_-10", "-2_-11"],
            ["-1_-4", "-2_-6"],
            ["0_0", "-2_0"],
            ["-1_4", "-2_6"],
            ["-4_10", "-2_11"],
            ["-2_-11", "-1_-13"],
            ["-3_-8", "-1_-9"],
            ["0_-2", "-1_-4"],
            ["0_2", "-1_4"],
            ["-3_8", "-1_9"],
            ["-2_11", "-1_13"],
            ["0_0", "0_-2"],
            ["0_0", "0_2"],
            ["2_-11", "1_-13"],
            ["3_-8", "1_-9"],
            ["0_-2", "1_-4"],
            ["0_2", "1_4"],
            ["3_8", "1_9"],
            ["2_11", "1_13"],
            ["4_-10", "2_-11"],
            ["1_-4", "2_-6"],
            ["0_0", "2_0"],
            ["1_4", "2_6"],
            ["4_10", "2_11"],
            ["2_-6", "3_-8"],
            ["2_6", "3_8"],
            ["3_-8", "4_-10"],
            ["2_0", "4_-1"],
            ["2_0", "4_1"],
            ["3_8", "4_10"],
            ["3_-8", "5_-7"],
            ["3_8", "5_7"],
            ["4_-10", "6_-9"],
            ["4_-1", "6_-2"],
            ["4_1", "6_2"],
            ["4_10", "6_9"],
            ["8_-3", "7_-5"],
            ["8_3", "7_5"],
            ["6_-9", "8_-10"],
            ["6_-2", "8_-3"],
            ["6_2", "8_3"],
            ["6_9", "8_10"],
            ["10_-4", "9_-6"],
            ["8_-3", "9_-1"],
            ["8_3", "9_1"],
            ["10_4", "9_6"],
            ["9_-6", "10_-8"],
            ["8_-3", "10_-4"],
            ["8_3", "10_4"],
            ["9_6", "10_8"],
            ["10_-4", "11_-2"],
            ["10_4", "11_2"],
            ["11_-2", "13_-1"],
            ["11_2", "13_1"]
        ]
    }
}

What I made wrong? How I export like default trees? There's more errors on my "roll" ? (other JSONS)

category.json connections.json definitions.json experience.json skills.json

lucastayar12 commented 2 months ago

Also I forgot to say, fails to load in game Edit: I got it, many stuff were wrong like reward just being a object intead of array

lucastayar12 commented 2 months ago

This my new tree for those who use Combat Roll Mod -> https://modrinth.com/mod/combat-roll

category.json

[!WARNING] Don't forget to add the category on your config.json as the name of your dir, like:


{
"version": 2,
"categories": [
    "combat",
    "mining",
    "roll"
]

}


in that case my dir is called roll
[connections.json](https://github.com/user-attachments/files/16042114/connections.json)
[definitions.json](https://github.com/user-attachments/files/16042115/definitions.json)
[experience.json](https://github.com/user-attachments/files/16042116/experience.json)
[skills.json](https://github.com/user-attachments/files/16042117/skills.json)