question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings in war3map.j

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Frottycommented, Mar 5, 2019

hm yeah, that was yet another warning.

0reactions
frederikaalundcommented, Mar 5, 2019

@Frotty Thanks for looking into this issue. Unfortunately, the warnings persist even after your latest commit: image

Have I missed something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

War3map.j error : Map Editing - Wc3Edit
UPLOAD THE JASS FILE IN A FOLDER OR MAKE IT AS A RAR/ZIP FILE!!!!! If u do it again, i'll give a Warning...
Read more >
Help With Editing war3map.j - The Helper
Using the map editor, I'd have to: Click New Trigger, rename the trigger, go to menu and select Convert To Custom Text, copy...
Read more >
war3map - npm
Overview. War3map is a module to convert between a JSON representation of WarCraft III (.w3x) data and war3map format files. TranslationExample.
Read more >
JASS Tools: Help
... (war3map.j), select Map Script; if it is a custom common.ai or Blizzard.j, ... You can just ignore these warnings since it will...
Read more >
W3X_Files_Format
war3map.j. The JASS2 Script. This is the main map script file. It's a text file and you can open it with notepad. Sometimes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found