• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Is there a good non-vJass unit indexer?

Status
Not open for further replies.
Level 10
Joined
May 31, 2019
Messages
135
What I'm really looking to do is integrate a unit indexer into my modified Blizzard.j, but it seems like all the ones I've found are made in vJass, with structs and things like that.​
I've never actually used vJass but since I'm working with Blizzard.j for a mod, and not within the confines of a single map, it'd probably better to stick with standard JASS.​
Is there a good non-vJass unit indexer?​
 
Last edited:

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
I am not sure if vJASS integration was designed with that in mind. Maybe you can run JASSHelper from the command line to compile the Blizzard.j script file and then import that compiled file. Logically you would need to make sure JASSHelper does not have a Blizzard.j file of its own to conflict with it.
 
Level 10
Joined
May 31, 2019
Messages
135
Hmmm, i tried to insert the compiled vJass of TriggerHappy's UnitDex into my blizzard.j, careful to put the 'globals' in the globals section instead of creating a second globals section, and moving all its functions to the bottom (yet still above InitBlizzard and my own functions)...

but war3 does not accept it unfortunately. Not sure where the problem would be, but I'd guess there are things expected to be present in a 'proper' vJass use case (within a map) that is not present before attempting to load a map. This is a total guess though.

Re-titled/worded OP to make more sense for what I'm trying to do.
 

Attachments

  • Blizzard triggerhappy unitdex BROKEN.j
    469.2 KB · Views: 14
Level 10
Joined
May 31, 2019
Messages
135
It seems it may have been a problem in my code. I renamed a function but forgot to update a line that was calling the function :p

Either way, I've switched over to Bribe's GUI Unit Indexer, except modified so it's all in Blizzard.j, and it appears to work like a charm.
BribeUnitIndexerTest.jpg
 
Status
Not open for further replies.
Top