Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get errors in RE2 #1

Open
zackymony opened this issue Feb 8, 2023 · 0 comments
Open

Get errors in RE2 #1

zackymony opened this issue Feb 8, 2023 · 0 comments

Comments

@zackymony
Copy link

when opening the editor in game,the nodes disappear and got this error
image
and the node:get_full_name() seems to have some trouble too.I change them all into "unknown" to temporarily fix it.

`
for i=0, tree:get_node_count()-1 do
local node = tree:get_node(i)

        if node then
            local insertion = {
                name = "unknown",
                children = {}
            }
            **for j=0, #node:get_data():get_children()-1 do
                local child_index = node:get_data():get_children()[j]
                table.insert(insertion.children, child_index)
            end**

            table.sort(insertion.children)

            custom_tree[i] = insertion
        end
    end`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant