• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Problem starting with Wurst

Status
Not open for further replies.
Level 25
Joined
Jun 26, 2020
Messages
1,971
I tried to start to use wurst following the steps, but the VSCode throws me an error:
Code:
Loading Wurst version 1.8.1.0-jenkins-Wurst-1271
Workspace null. Make sure to open a valid project root using File->Open Folder, before opening code files.
[Error - 23:27:12] Server initialization failed.
TypeError: Cannot read property 'capabilities' of null
    at c:\Users\SEBAS\.vscode\extensions\peterzeller.wurst-0.5.10\node_modules\vscode-languageclient\lib\client.js:1972:34
And every time I wanna run the example map it also throws me an error, what did i do wrong?
 
It tells you the error... Read. And follow instructions from the guide correctly.
Oh I miss the word "Folder" I think it says "File" thank you, now I have another problem, when I wanna try run a wurst map with VSCode this happens:

1622502802317.png


And for some reason opens the Reign of Chaos and not the Frozen Throne.
 
At the end, how can I solve the problem?, these are the settings:
Code:
{
  "wurst.javaOpts" : [ "-XX:+UseG1GC", "-XX:+UseStringDeduplication", "-XX:+AggressiveOpts", "-Xmx1G" ],
  "files.associations" : {
    "wurst.build" : "yaml"
  },
  "search.useIgnoreFiles" : false,
  "yaml.schemas" : {
    "./.vscode/wbschema.json" : "/wurst.build"
  },
  "wurst.wurstJar" : "C:\\Users\\SEBAS\\.wurst\\wurstscript.jar",
  "wurst.wc3path" : "C:\\Users\\SEBAS\\Documents\\WarCraft III"
}
Edit: Wait, I are you trying to tell me that to use wurst I have to use Reforged?
 
Last edited:
Edit: Wait, I are you trying to tell me that to use wurst I have to use Reforged?
No, but reforged is default since we target the latest official patch. The standard library makes use of the new natives.
If you want to target older patches, you need to provide the old common.j and blizzard.j and use old standard library/no new features.
 
Well, after searching I found you already solved it in another tread
so now the problem is solved.
 
This is what's says:
Code:
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Info  - 17:55:01] Connection to server got closed. Server will restart.
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Info  - 17:55:01] Connection to server got closed. Server will restart.
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Info  - 17:55:01] Connection to server got closed. Server will restart.
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Info  - 17:55:01] Connection to server got closed. Server will restart.
Unrecognized VM option 'AggressiveOpts'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[Error - 17:55:01] Connection to server got closed. Server will not be restarted.
What is the problem with "Java Virtual Machine"?, is this because I added Java extensions to VSCode? or maybe because I installed another program to Java called "Apache NetBeans".
 
Sorry but what is obvious for you is not obvious for everyone (I'm not very into "advanced programming").
Anyway, I searched and I found that the option 'AggressiveOpts' is a function that becomes obsolete in JDK 11 and was removed in JDK 12, so the problem came from that I installed JDK 16 so I uninstalled it and reinstalled Java 8, and now the problem is solved again, thank you.
 
Last edited:
Sorry but what is obvious for you is not obvious for everyone (I'm not very into "advanced programming").
Anyway, I searched and I found that the option 'AggressiveOpts' is a function that becomes obsolete in JDK 11 and was removed in JDK 12, so the problem came from that I installed JDK 16 so I uninstalled it and reinstalled Java 8, and now the problem is solved again, thank you.
I'm not saying that the underlying cause is obvious, but the error itself, since it says "Error" in front.
Googling an error should be your first cause of action, before posting, imho.
You can also stay with Java 16, but then you need to remove the JVM option from settings.json
 
@Frotty this is the settings, what should I do?, I don't wanna mess it.
JSON:
{
  "wurst.javaOpts" : [ "-XX:+UseG1GC", "-XX:+UseStringDeduplication", "-XX:+AggressiveOpts", "-Xmx1G" ],
  "files.associations" : {
    "wurst.build" : "yaml"
  },
  "search.useIgnoreFiles" : false,
  "yaml.schemas" : {
    "./.vscode/wbschema.json" : "/wurst.build"
  },
  "wurst.wurstJar" : "C:\\Users\\SEBAS\\.wurst\\wurstscript.jar",
  "wurst.wc3path" : "C:\\Users\\SEBAS\\Downloads\\Warcraft III 1.27"
}
 
Status
Not open for further replies.
Back
Top