Skip to content

Warnings in war3map.j #809

Closed
Closed
@frederikaalund

Description

@frederikaalund

Wurst reports errors in the auto-generated war3map.j file:

image

Is this intentional? If so, it would be a nice to be able to disable warnings in said file.

A Little Bit of Context

I'm defining some global variables (the udg_* stuff) in the map file (e.g., regions and names of said regions) that I want to use in my Wurst code. These global variables are neatly extracted into the war3map.j file when Wurst is run. Since war3map.j is merely extracted, I don't think that Wurst should report warnings in it. I have no control over the war3map.j code generation.

Side issue: It would be nice to have something like @extern for global variables that are not defined in .wurst files but defined in e.g. war3map.j (all the udg_* variables). Imagine a freshly cloned repo that doesn't have war3map.j. In said repo, the udg_* variables do not exist yet. Therefore, Wurst won't run since all the references to udg_* variables can't be resolved. I have to manually extract the war3map.j file first. This is annoying.

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