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, 02: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, 06:01 AM   #137
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,558

Submissions (5)

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

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
__________________
<nosignature />
cohadar is offline   Reply With Quote
Old 12-09-2011, 09:08 AM   #138
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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, 04: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
Old 04-04-2013, 02:53 AM   #140
Almia
User
 
Almia's Avatar
 
Join Date: Apr 2013
Posts: 10

Almia has little to show at this moment (0)

Default

This has been deprecated by Bribe am i right?
Almia is offline   Reply With Quote
Old 04-04-2013, 07:42 AM   #141
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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

Default

Quote:
Originally Posted by Almia
This has been deprecated by Bribe am i right?
No.
__________________
Anitarf is offline   Reply With Quote
Old 04-05-2013, 05:30 AM   #142
Almia
User
 
Almia's Avatar
 
Join Date: Apr 2013
Posts: 10

Almia has little to show at this moment (0)

Default

How come?
Almia is offline   Reply With Quote
Old 04-05-2013, 08:32 AM   #143
PurgeandFire111
User
 
PurgeandFire111's Avatar
 
Join Date: Dec 2006
Posts: 236

PurgeandFire111 will become famous soon enough (54)PurgeandFire111 will become famous soon enough (54)

Default

This still works. It isn't deprecated because Bribe's doesn't improve on the current features. Rather, it adds extra ones.
__________________
'
PurgeandFire111 is offline   Reply With Quote
Old 04-05-2013, 08:37 AM   #144
Anitarf
Procrastination Incarnate


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

Submissions (19)

Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)Anitarf has a brilliant future (883)

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

Default

Quote:
Originally Posted by Almia
How come?
His library never got approved. (in fact, it got graveyarded but that got lost in our recent rollback)

Edit: Ah, PurgeandFire111 already beat me to it.
__________________

Last edited by Anitarf : 04-05-2013 at 08:41 AM.
Anitarf is offline   Reply With Quote
Old 04-05-2013, 10:01 AM   #145
Almia
User
 
Almia's Avatar
 
Join Date: Apr 2013
Posts: 10

Almia has little to show at this moment (0)

Default

Oh
I thought it was deprecated because of the Bribe's Table's Looks
Almia 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 06:00 PM.


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 - 2013, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services