Galaxy Notepad++ Autocompletion
I'm not working on this anymore, just use Galaxy++
This is an autocompletion file for Notepad++
( http://notepad-plus-plus.org/ ). It completes all constants and functions from the natives.galaxy, NativeLib.galaxy, AI.galaxy and TacticalAI.galaxy files.
Install Guide
After you have downloaded the Galaxy_Autocompletion_and_Style_1.2.0 file, unzip it. There are 2 files inside:
- The userDefineLang.xml - this file contains syntax highlighting for Galaxy (and vJass). You only need this if you dont allready have a custom syntax highlight file. There are two ways to install this files:
- First way: Import in Notepad
++
- Open up Notepad
++
- Open the "User-Defined Dialogue..." by clicking the icon with the lightning in the toolbar
- Click on "Import..."
- Select the unzipped userDefineLang.xml
- Restart Notepad
++
- Open up Notepad
- Second way: Copy the File
- Copy the userDefineLang.xml to "%APPDATA%\Roaming\Notepad
++
" (path is different in winXP) - If you allready have a custom syntax highlighting for a language, they will be overwritten and you should use the first way
- Restart Notepad
++
if neccessary
- Copy the userDefineLang.xml to "%APPDATA%\Roaming\Notepad
- First way: Import in Notepad
- The Galaxy.xml - this file contains the autocompletion data for the Galaxy language (as seen in the screenshots)
- Copy the Galaxy.xml to your "<notepadDir>\plugins\APIs" directory.
- Restart Notepad
++
if neccessary
If something is missing, let me know.
Yes, they show code from an old andromeda version. There is no such thing as a "strcall" anymore (private still exists in andromeda). Maybe I will get some new screenshots in the next days.
Is this screenshot in andromeda or something? I'm curious as to why there is privatestrcall preceding every function. I'm not sure if that might spit an error at me if i directly copy and paste from notepad to custom script.
thx man notepad is the best!
Ok, with much delay (I was very busy with other stuff) I have uploaded the new autocompletion file - ready for StarCraft 2 v1.1.1.
I hope I got everything.
Hey Slarti,
anyway you might update the plugin/syntax highlighting for patch 1.1.0?
(Disregard this message if there we no trigger changes, I didn't check fully yet the patch notes.)
Thanks.
Ok I have found the file. It was the "TacticalAI.galaxy" which doesnt exists in the "core" mod. So the AI functions you mentioned are now autocompleted. The new file should be available soon.
On a side note: I also fixed a bug. So more constants from all files are now available :D
Ah yes, youre right. I havent found the file where these functions are defined yet. At first I thought they were beta functions that doesnt exist anymore but they are still used in some ai files...
I will look into it
I just noticed some AI Functions are still missing. ;)
AIFilter, AISetFilterAlliance to name a few.
Working perfectly, btw!
Thanks a lot Slarti!
Ah, great news. About the missing natives, I noticed Im not parsing the AI.galaxy file.
edit: Ok, I have uploaded an updated version including the AI functions. Should be available soon.
edit2: Its here :)
The last files works for me, but there seems to be missing some natives, such as AISetStock.
Other than that, it works. :)
I did add the file in "<notepadDir>\plugins\APIs" as I said, previously, did not seem to work, so I tried by uninstalling and then reinstalling (and deleting all temporary Notepad files), but didn't work.
I'll try again with 1.0.2 and report if it worked.
Thanks.
This is only the autocompletion file, not the user defined style (syntax highlighting) for the language that shows up in the language list. But I will upload my syntax file too. I guess its easier that way.
Updated the installation guide. It should be more clear now what to do. Wait until that 1.0.2 file is approved and try again.
I tried again, by uninstalling, reinstalling and adding Galaxy.xml in APIs again, without success. It doesn't seem to recognize the file, or something.
It doesn't show up in Language menu list, it doesn't recognize it at all. I have no idea why.
Really weird, I hope I get this sorted soon.
@Mudras: Im using 5.7 too and it works for me. When you import the API file what exactly fails? Doesnt it show up at all? Does notepad crash?
Oh and as you said "updated natives and constants list". Totally forgot to update this for the release functions :D . Thanks for remembering me, updating now.
I was really looking forward to try this Autocompletion, since there doesn't seem to be any script editor with a updated natives and constants list, but even when I try to import the file, it just fail to.
Using Notepad 5.7.
@ Martopikeur: I hope to have answered that with the pm. But for everyone else having the problem:
There is a "Function parameters hint on input" checkbox in the Preferences Window under the "Backup/Auto-Completion" tab. Make sure to have it activated.
You can also try the "Ctrl+Shift+Spacebar" combination while inside the function "()" bracktes. That should open up the Parameter List for that function.
Thanks for that! One question though: for some reasons it's not displaying the actual function parameters when doing the autocompletion, even though the xml API file seems to mention them. Am I missing a setting in NotePad, or is it simply not supported?
@Atl0s, zsabre: If you really want I can upload my style, but its really incomplete. I just code and if I find something that is missing, I add it.
@XPilot: The User-Defined Language is something different from the autocompletion. The User-Defined Language is just for the syntax highlighting stuff.
Have you turned on autocompletion in Notepad? Its under Settings->Preferences->Backup/Autocompletion
Did you change your autocomplete hotkey (normally Ctrl+Space)? The autocompletion only works if you have set the language in the "Language" menu to Galaxy.
Look up these settings and try to type something like "Unit" + (Ctrl+Space). Tell me if it worked.
Followed the instructions, and nothing happened. That is, there is a User-Defined language called "Galaxy", but it's empty (has no keywords, functions, etc...).