HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game Cache and items

06-10-2003, 12:24 PM#1
PitzerMike
Does anyone know if Blizzard improved the game cache with version 1.06?

When i use ist now, I get a copy of all my items when I load units from the game cache
06-10-2003, 12:53 PM#2
Dead-Inside
Care to elaborate?
06-10-2003, 01:06 PM#3
PitzerMike
Maybe it's just e mistake in my script.

A use a loop to save all units and items ... into the game cache and when I restore them all again, several units that shouldn't even have an inventory (as they arn't heros) drop copies of the items to their feet.

Just wanted to be sure if it's my fault or if it's an improvement of blizzard
06-10-2003, 08:48 PM#4
PitzerMike
Dooh.. WE is so stupid

Did you know that it doesn't clear the Inventory-Slot-Values in your game cache if you cache a normal unit (which doesn't have an inventory) into the same game cache slot where you had a hero before

The items of the hero were still there flying around in the cache and when I restored the units they were dropped on the floor
06-10-2003, 09:09 PM#5
Draco
I have no idea if this is what ur talking about, but storing a unit stores all of it's items in it's inventory automaticly.

Or do you mean that storing removed heroes restores only their items or something?
06-11-2003, 07:34 AM#6
PitzerMike
Nevermind I already solved the problem

The problem was that I stored units in the same place in the same game cache where units have already been stored before

And units that didn't even have an inventory got the items of the units previously stored in that place because the item slots in the game cache were not actualized because the units that are now in that place don't have inventories as they are not heros

... did anyone understand this:////
06-11-2003, 07:50 AM#7
Dead-Inside
If you store a HERO in a game-cache file, restore him, then store a regular unit, he gets slots, or items.

Whichtever works for you, but that's what happened for him, right?

Regards
06-11-2003, 03:44 PM#8
PitzerMike
items were dropped in the end cause regular units don't have inventories

First i was kind of confused because I didn't know where all the items came from
06-11-2003, 06:13 PM#9
Draco
Ok, I understand what you were trying to say.