1. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  3. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  4. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  5. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  6. Shoot to thrill, play to kill. Sate your hunger with the 33rd Modeling Contest!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

JASS in Notepad++

Discussion in 'Warcraft Editing Tools' started by sethmachine, Jun 1, 2014.

  1. sethmachine

    sethmachine

    Joined:
    Aug 7, 2013
    Messages:
    1,318
    Resources:
    0
    Resources:
    0
  2. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    lmao, I deleted the repo, hahaha

    I have them, I just gotta search for them. I have the cpp project that generates the stuff and so on if you want to continue it (I only did some of it).

    notepad++ can't handle //! vs // and a few other things :\

    I have a parser thing in Antlr if you want to work on something for Eclipse (it uses Antlr)
     
  3. sethmachine

    sethmachine

    Joined:
    Aug 7, 2013
    Messages:
    1,318
    Resources:
    0
    Resources:
    0
    I was given a copy of the style and autocomplete files, but for some reason the autocomplete doesn't work. So I am using your vJASS language file for highlighting, but I am using someone else's autocompletion file for vJass.

    No idea what CPP is or Antlr. I guess I'm a little late to the party.

    I was just going to generate my own xml using Python, but there's no documentation it seems for how to make a Notepad++ xml (highlighting or autocompletion).

    But there's this whole exciting thing of a new TESH in WEditor. I guess that's why nobody has been using the Notepad++ stuff?
     
  4. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,146
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    here's the working autocomplete + the project

    the reason why it didn't work was because I didn't replace things like " inside of the strings, which messed up the xml file


    enjoy : )
     

    Attached Files:

    Last edited: Jun 7, 2014
  5. pred1980

    pred1980

    Joined:
    Mar 19, 2010
    Messages:
    842
    Resources:
    1
    Maps:
    1
    Resources:
    1
    i tried to import your vJass.xml into Notepad++ but i get an import fail error...

    can u help me pls
     
  6. sethmachine

    sethmachine

    Joined:
    Aug 7, 2013
    Messages:
    1,318
    Resources:
    0
    Resources:
    0
    Many thanks Nestharus! This Notepad++ project is a life saver. I hope more vJassers make use of your work!

    With the instructions you gave with NppExec, there is only one problem. If I try to save a script to the map which has a FileImport line, the script won't be saved or written to the map. I suspect perhaps this is because it is only writing the script and not actually able to call external commands without being in the world editor? What it means is, in order to use Lua scripts that make use of custom models, I need to go into the map and run the import scripts, then comment it out. Then run the code import from Notepad++. A small inconvenience.

    I am not sure if I would consider completing the autocomplete, as it appears all the arguments are shown for every function, which is all someone familiar with vJASS needs. But from my reading one of the intents was for the project to help beginners?

    In any case I think putting the description in hand is a bit slow--I would crawl the hive workshop forums and find the descriptions of each of the natives themselves, though this certainly wouldn't work for the more obscure ones.

    @pred1980

    The vJass.xml is not the language file, but the autocomplete file which needs to be placed in plugs\\api\\

    The vJass Style file is the language file you can import when going to "Define your own language."
     
  7. pred1980

    pred1980

    Joined:
    Mar 19, 2010
    Messages:
    842
    Resources:
    1
    Maps:
    1
    Resources:
    1
    ok, it works now. Thx!