wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-25-2010, 03:09 AM   #136
Weep
User
 
Join Date: Aug 2009
Posts: 8

Weep has little to show at this moment (9)

Default

Allow me to add another request for RealTable. I was looking into Table in order to keep from having to make another useless dedicated hashtable for unlimited storage, but found that Table didn't save reals, and of course saving struct/array index integers gives no storage benefit.
Weep is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 12-09-2011, 07:01 AM   #137
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)cohadar is a jewel in the rough (246)

Default

Quote:
Originally Posted by Weep
Allow me to add another request for RealTable. I was looking into Table in order to keep from having to make another useless dedicated hashtable for unlimited storage, but found that Table didn't save reals, and of course saving struct/array index integers gives no storage benefit.

Collapse JASS:
    //! endtextmacro

    //! runtextmacro Table__make("Table","integer","key" )
    //! runtextmacro Table__make("StringTable","string", "StringHash(key)" )
    //! runtextmacro Table__make("HandleTable","handle","GetHandleId(key)" )
    
    // Add the line below this comment to your table script
    //! runtextmacro Table__make("RealTable","real", "StringHash(R2S(key))" )

endlibrary
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 12-09-2011, 10:08 AM   #138
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,085

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

I think he's trying to store reals, not use reals as keys.

I don't really think this feature is needed, care to give an example of what you need this for?
__________________
Anitarf is offline   Reply With Quote
Old 12-09-2011, 05:37 PM   #139
BBQ
User
 
Join Date: May 2011
Posts: 85

Submissions (2)

BBQ will become famous soon enough (30)BBQ will become famous soon enough (30)

Default

Quote:
Originally Posted by Anitarf
I don't really think this feature is needed, care to give an example of what you need this for?
Look at your very own UnitAppearanceTracker.

Personally, I don't have anything against a library such as Bribe's version of Table, but I don't see much reason for storing anything else other than integers too. I guess it's up to the majority. On the other hand, if Table was able to be used with everything that the native hash tables support, then resource submitted here would scarcely need their own hash tables.

I mentioned UnitAppearanceTracker as an example only because of the ugly PRECISION stuff (which can completely be ignored by having AutoIndex...).
BBQ is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:37 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services