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

Destroying Every handle

Status
Not open for further replies.
A few weeks ago, I was playing Archer's Legacy and noticed that the
custom font remains in Warcraft's memory even after you quit the game.

So then I googled why it was happening and saw that object handles remain
in your computers memory until you quit Warcraft.

I want to destroy all object handles in my map for a player when he quits (it
may cause a desync, but since the player left, i don't think it's going to be a
problem) or for all players when the game ends, but I'm not exactly sure how
I can do that.

For example, to destroy a unit handle, would removing it from the game be
sufficient?
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
There's no way to get rid of that :p

What I want to do is clear the entire map of units, doodads, regions, rects, integers, reals, cameras, timers, groups, etc...

This way, the memory would be cleared and you wouldn't have to restart warcraft :D
Why the hell would you remove those? o_O
I mean, they're not preserved when you quit the game. It's mostly changed Game Interface that doesn't clear and that can't be changed with triggers.
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,289
Its because of caching.

To prevent the game reloading data unnescesrcarily, it caches various pieces of data that should not change between game instances. However what happens is that custom map makers decided to alter this "universal" data to better suit their map so it caches from their map those files due to how the import system works. End result is the ability to play other maps with wrong data because it did not reload some data files to suit the other map.
 
Status
Not open for further replies.
Top