• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

VJass environment?

Status
Not open for further replies.
Level 7
Joined
Oct 3, 2008
Messages
183
I remember JassCraft and such being a thing in the past but what's the common tool used to code in VJass these days? I know the World Editor itself allows it but I'd like something with a bit more functionality. :p
 

~El

Level 17
Joined
Jun 13, 2016
Messages
556
Unfortunately, there's not much in the way of alternative WE options like JNGP or WEX anymore, since neither work on the newest patches, and waiting for anything from Blizzard is like watching paint dry.

Like Purge mentioned, if you want an out-of-WE experience, you can use Wurst. If you insist on using vJASS or Zinc for whatever reason, there's a little trick you can do to use your code editor of choice.

1. Go to your WC3 directory, and find the JassHelper directory
2. Edit jasshelper.conf
3. Add a section called [lookupfolders] and under it, add a quoted path to where your project files will be, e.g.
Code:
[lookupfolders]
"C:\work\code\mymap\vjass"
4. Create an empty trigger in your map and convert it to custom text. Replace the code with
JASS:
//! import init.j
5. In your project folder, create a file with the same name, "init.j". This will be your "entry point.", where you can basically do anything you want - include other files, or just write libraries/triggers like you normally would in vJASS.
6. Now when you save your map, all the code from init.j (and whatever it includes) will be imported into your map.

Alternatively, if you want to use Zinc instead of vJASS, you can use "//! import zinc init.zn"

You can see an example of this approach in a map I used to develop here:
SamuelMoriarty/Yet-Another-RolePlay
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
Well if coding in vjass in the standard editor was 1/10 then coding in notepad++ has to be -10/10

If you use visual studio code with the wurst toolchain you can at the very least.
  1. Automatically Inject the code into the map without copy paste
  2. Test/launch the map from your text editor
Note that this does not require you to write in wurst ;P but you'll use the wurst extension for the launch and build tasks.
 
Level 7
Joined
Oct 3, 2008
Messages
183
Thank you all for the detailed explanations. :)

And yeah; that's basically the problem. I knew very little about programming when I did my first bout of mapping 10 years ago, but now I'm in a Java Course and dabbled in other stuff as well and IDEs just add a lot of useful features. And we never really got much documentation for JASS from Blizzard either so it's a bit of adjusting back into that mindset coming from the super detailed Java API.
 
Status
Not open for further replies.
Top