• 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!

[General] Chat GPT in WE

Level 11
Joined
Dec 16, 2017
Messages
437
Hello guys, do you know any way to integrate the triggers into chat gpt or more likely how to give access to the triggers to chat gpt? The same way it works for Visual Studio Code when you can use AI Agents directly on the codes? Or how to properly open all triggers into Visual Studio Code?

Many thanks!
 
Of course it's 'possible'.

I assume since you say 'trigger' you mean GUI.

Make a fork of HiveWE and add a window to use your AI of choice. Edit: it might not be open source actually, I have not checked.
Or, make a VSCode plugin that reads the .j file to access the trigger data and at that point you can use copilot or whatever as usual.

If you're using a text based language list wurst you do all your editing in vscode anyway so it works out of the box.

That being said I would be quite skeptic about how well AI can code jass. Especially if you're using third party libraries.
 
I'm using it for jass, and it's doing quite good, but it's hard to put the libraries all the time when the output generated gets too heavy and you gotta start a new chat and send all of them again..I made some notepads to directly copy paste, but it takes a lot of space which could be used better..
 
You can create it if you have the database of all the triggers that appear in the GUI boxes. I'm not sure, but I imagine it must be in some text file of the MPQ files. Knowing that, you can create a SendKeys format for each trigger so the program does it for you. This ensures compatibility with all WorldEdit versions without needing extra tools.
In other words, it would translate any text response(of AI) into trigger as if you were doing it manually in the GUI. You can use pywinauto or win32gui.
Another way could be to manage the .wtg files of the maps to import/export triggers via trigger editor, first need to export the triggers of the map to a WTG file and merge them into the new triggers, then just need to import the merged WTG file.
 
I'm using it for jass, and it's doing quite good, but it's hard to put the libraries all the time when the output generated gets too heavy and you gotta start a new chat and send all of them again..I made some notepads to directly copy paste, but it takes a lot of space which could be used better..
Yeah that's the way to work around it, including dependencies in every question.
Still if you work in vscode and use the integrated copilot it should have full project access.

I know there was tooling for typescript and wurst so I assume there should be for jass too.
 
Personally found very little use of it. Just churns out non-functional code and argues with me. Even unable to mass translate the map to localize for Russian players. Maybe I just don't know how to use it properly?
 
Back
Top