Problem trying to use Tweego and vscode for the first time

Twine Version: 2.4.1

Hi all,

I am starting a new project and thought I would give the combination of Tweego and vscode a go to work in a better way than the tradition Twine editor. I found a basic guide and a very basic template to get me going . The code is literally just:

::StoryTitle
Twee!

:: StoryData
{
        "ifid": "180AB7DE-8822-4D17-9A8C-F45C16A343EB"
}

::Start
The story begins here.

And the build task is:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Tweego",
            "type": "shell",
            "isBackground": true,
            "command": "tweego -w -o index.html source",
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

When I run the build it runs and generates the index.html file but I also I get an error:
“Malformed StoryData: Story Format version not found!”

Given how basic the code is I guess I am doing something dumb. I am not much of a techy, so any pointers or advice would be appreciated.

In addition to an IFID, your StoryData section probably also needs the name and version of the story format. For current SugarCube I believe that’s:

    "format": "SugarCube",
    "format-version": "2.37.3"
2 Likes

That worked. Thank you for the help.

Yeah, just indicating an IFID only works for Twine 1 formats (because you indicate the format name in the Tweego command instead).