HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

game cache

08-02-2003, 04:45 AM#1
gurubvin
any1 know what these functions do?

SyncStoredInteger takes cache, string, string, returns nothing
ReloadGameCachesFromDisk takes nothing returns nothing

i didn't give var names to the data types. i just included the data types to give the basic gist. thanks.
08-02-2003, 06:29 AM#2
gurubvin
sorry to barrage with game cache questions but here are some more. first though some discoveries:

for the strings in game cache u cannot have spaces. it will not automatically underscore for u. although, player name seems to work fine...

what i know for certain is that u cannot store ne thing in a string using UnitName. you'll need to use a "convert unit id to string" function.

Now for questions

1) wer exactly is the game cache. wer does warcraft store this info?

2) is there a limit to how much can be stored here?

3) How should i title my game cache? i want it so that someone can start a new campaign w/o running over their old one. right now i'm using playername().w3v.

4) when would u need/want to clear an entire cache?

thanks for ne info.
08-02-2003, 11:49 AM#3
AIAndy
1) As files on the disk in the profile directories. So you have a different game cache if you play with a different profile.
08-02-2003, 08:49 PM#4
gurubvin
easy enough. thanks aiandy
01-03-2004, 09:34 PM#5
Vidstige
Shouldn't the trigger code below be enough to create and store a game cache in WarCraft III\save\someProfile?
Quote:
Wait 5.00 game-time seconds
Game Cache - Create a game cache from gameworld.w3v
Game Cache - Store Pelle as Test of TestCategory in (Last created game cache)
Game Cache - Save (Last created game cache)
Wait 5.00 game-time seconds
The code is run directly at map initialization, but it doesn't create any file named gameworld.w3v which I can find anywhere on my harddrive.

I would be happy for any idea that helps me find what could be wrong in my script.
01-04-2004, 10:03 AM#6
Krakou
The name you give to the game cache has no matter.
He will always store it in the file save\Profile1\Campaigns.w3v in you war3 directory.