• 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.

Can tomes be revived?

Status
Not open for further replies.
Just wondering if anyone knows if tomes can be healed/revived because otherwise you have to recreate them to visually fool players which ends up leaking a little bit of memory per item. Hope that there might be some way to restore its life and item charge.

I already tried the basic methods like set item life and charges, found something interesting with hero action give item. You can give a depleted tome infinitely/around 2.2 billion to any object with a hero inventory even though it has been used. That's one of the tome/item leaks but that's not the one I am trying to counter since you can clean that with triggers by removing the actual item.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
That's one of the tome/item leaks but that's not the one I am trying to counter since you can clean that with triggers by removing the actual item.
Contradictory? The leak is that item removals never remove all resources the item allocated. So how can removing the item suddenly not leak?

The amount of memory leaked per item, unit, etc is so little that it is only a concern after the hundred thousand range. If that is a concern there are likely fundamental design problems with your map.
 
Contradictory? The leak is that item removals never remove all resources the item allocated. So how can removing the item suddenly not leak?

The amount of memory leaked per item, unit, etc is so little that it is only a concern after the hundred thousand range. If that is a concern there are likely fundamental design problems with your map.

Removing the item fixes the visual leak but items still leak the same amount as a normal unit. http://www.hiveworkshop.com/forums/lab-715/widget-memory-footprint-277476/

Well usually I would agree with you that the design would be a bad one however with hidden inventories that has been made public, item stacking has been made more public and it is a cool feature to play around with however there's still the bug of your actual visual inventory being full making you unable to pick up more items normally even if you have more space in the hidden inventories, a way around this would be tomes/powerups.



Edit: When you give a dead/depleted tome to a unit/hero with the proper inventory, it plays its effect on the object and death animation where the tome was first used.
 
Status
Not open for further replies.
Top