• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Hashtable Issues

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
Which variable types, specifically?

You have to be really careful with hashtables in GUI, because some of the types that are available to be saved in a hashtable are not accessible in GUI. For example, if you try to store a Unit Pool in a hashtable it will crash when you click on the "Unit Pool" field.

Its strange though because "Ability" is a proper variable-type even in GUI, yet when I try to use the GUI hashtable function to save an Ability, it crashes the World Editor. GUI just sucks I think.

  • Unit Pool
  • Item Pool
  • Ability
  • Widget
  • Event ID
  • Region

Seems pretty random actually... can anybody else use the hashtable functions for these types?
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
Thats cause what GUI uses as an ability is nothing more than an integer.
What an ability is is an incomplete type with no real use, even in JASS.

Regions crash cause they are regions, in GUI you use Rects so do not actually use regions.

I blame the maker of GUI being so dumb that people patching his code though it was better than it was (supported those types).
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
I first came across this when helping someone else with unit randomization from a unit array (because unit pools are not available in GUI). Its funny because there is absolutely nothing regarding Unit Pools or Item Pools in the GUI editor, yet there are functions that accommodate them for hashtables.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Dr Super Good said:
Cause they exist in JASS...

Yea, I figured that much all by myself. I don't actually use GUI I use vJass with the Jass NewGen Pack. The only reason I noticed the bug was because of some "debugging" I was doing to help somebody else with their questions.
 
Level 4
Joined
Apr 26, 2008
Messages
67
Thanks for the replies, and I guess that makes sense. Thanks again for the help at least I know it's not the WE's fault for crashing.
 
Status
Not open for further replies.
Top