[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums | Starcraft II |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Resources > Submissions > "Graveyard"

"Graveyard" Resources which were not approved are moved to this section.

 
 
LinkBack (1) Thread Tools
Old 07-03-2009, 11:20 AM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 426
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
[vJASS][Library]Hcn- Hash Categories

Because this was small and was practical for any map, it was moved into Mfn.

Please graveyard this.

Thank you : D.

Last edited by Nestharus; 07-11-2009 at 02:06 PM.
Nestharus is offline  
Old 07-03-2009, 03:53 PM   #2 (permalink)
Registered User aznricepuff
OOP freak.
 
Join Date: Feb 2006
Posts: 751
aznricepuff is a jewel in the rough (181)aznricepuff is a jewel in the rough (181)
Former Staff Member: This user used to be on the Hive Workshop staff. 
There's a feature in jasshelper that does exactly this: key.
aznricepuff is offline  
Old 07-03-2009, 04:46 PM   #3 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 426
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
I know keywords and keys relating to slk files... so I have no idea what you are talking about ^_^.

But yea, this is just a library of constants, very simple and basic : D.
Nestharus is offline  
Old 07-03-2009, 04:52 PM   #4 (permalink)
Registered User aznricepuff
OOP freak.
 
Join Date: Feb 2006
Posts: 751
aznricepuff is a jewel in the rough (181)aznricepuff is a jewel in the rough (181)
Former Staff Member: This user used to be on the Hive Workshop staff. 
Jass:
globals
    key REAL //creates a unique integer key meant for use in hashtables
endglobals
aznricepuff is offline  
Old 07-03-2009, 05:09 PM   #5 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 426
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Using Jass NewGen 1.5c and I get undefined type: key
Nestharus is offline  
Old 07-03-2009, 06:16 PM   #6 (permalink)
Registered User aznricepuff
OOP freak.
 
Join Date: Feb 2006
Posts: 751
aznricepuff is a jewel in the rough (181)aznricepuff is a jewel in the rough (181)
Former Staff Member: This user used to be on the Hive Workshop staff. 
The key thing is for jasshelper 0.9.H.1+
aznricepuff is offline  
Old 07-03-2009, 06:29 PM   #7 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 426
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
Ahh, and I have G : o, no wonder...

thanks for the help azn, I'll update this very small library then when I get H in : o.
Nestharus is offline  
Old 07-03-2009, 06:41 PM   #8 (permalink)
Forum Moderator Dr Super Good
Back to normal again. . .
 
Dr Super Good's Avatar
 
Join Date: Jan 2005
Posts: 6,537
Dr Super Good has much of which to be proud (1102)Dr Super Good has much of which to be proud (1102)Dr Super Good has much of which to be proud (1102)Dr Super Good has much of which to be proud (1102)Dr Super Good has much of which to be proud (1102)
It is far more important to make sure you do not structure your hashtables so collisions can occur. Eg avoid strings and handles being in the same field for the same table as if done improperly I believe you could end up with a chance of 2 of them having the same index (although very small).

EG for object types you should use your own hashtable and the same for handles and strings. Although like I said the chances for collisions are near none but I do think a string and a handle and an object type can shair the same value yet represent different things (do not shair the same index system.

However I am yet to encounter a collision in such a way so I can not confirm its existance but I do believe they can occur.
Dr Super Good is offline  
Old 07-03-2009, 06:49 PM   #9 (permalink)
Registered User Nestharus
User
 
Nestharus's Avatar
 
Join Date: Jul 2007
Posts: 426
Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)Nestharus has little to show at this moment (31)
This is for quickly naming things in a hashtable... a library of keys now I suppose, lol, that way the same keys aren't redefined over and over.

In no way does this promote the idea of all for 1 and 1 for all (all using 1 hashtable and 1 hashtable used by all) : P.

: D, and it's updated now too (or in a sec) : p
Nestharus is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.hiveworkshop.com/forums/graveyard-418/vjass-library-hcn-hash-categories-134375/
Posted By For Type Date
[System] Hash Categories - The Helper Forums This thread Refback 07-04-2009 12:00 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
[JASS] Hash tables, collision detection Element of Water Triggers & Scripts 8 03-04-2009 09:56 AM
[vJass] vJass Math Genious Needed! Dynasti Triggers & Scripts 4 11-21-2008 08:07 AM
vJass Teacher, vJass Demo Map Maker, etc. Dynasti Requests 0 11-10-2008 05:36 PM
Wow hash help please. doom1364 Warcraft Editing Tools 0 09-23-2005 07:08 AM

All times are GMT. The time now is 02:05 PM.






Hosting by SliceHost 
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1
Copyright©Ralle