Skip to content

Externally Loaded Scripts does not show up in script menu #52

@HellishBro

Description

@HellishBro

Describe the bug
basically externally loaded scripts doesnt show up in scripts menu

To Reproduce
Steps to reproduce the behavior:

  1. make a script json outside of the gui
  2. put it in /DFScript/Scripts folder
  3. /script reload

Mod Version and OS
DFScript-Z branch, Windows 11
note: i didnt change anything regarding to scripts loading

image
image

test.json:

{
    "name": "test",
    "owner": "c630f561-47d1-4fe6-8631-9510f1e64dfd",
    "server": "None",
    "description": "N/A",
    "headers": [
        {
            "type": "function",
            "name": "hello",
            "description": "",
            "icon": "lapis_lazuli",
            "args": {
                "args": [
                    {
                        "name": "wassup",
                        "type": "Number",
                        "optional": true,
                        "plural": false,
                        "default": null
                    }
                ]
            },
            "snippet": {
                "parts": [
                    {
                        "type": "functionCall",
                        "functionCall": "JoinStrings",
                        "arguments": [
                            {
                                "type": "VARIABLE",
                                "value": "another",
                                "scope": "TASK"
                            },
                            {
                                "type": "VARIABLE",
                                "value": "hello",
                                "scope": "FUNCTION"
                            },
                            {
                                "type": "STRING",
                                "value": "bruh"
                            },
                            {
                                "type": "FUNCTION_ARGUMENT",
                                "value": "wassup"
                            }
                        ]
                    }
                ],
                "hidden": false
            }
        }
    ],
    "config": [],
    "disabled": false,
    "version": 8
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions