HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Game-Cache!

07-08-2007, 07:55 AM#1
Hoernchen
Hey guys, I need some help with my game. I wish to detect how many times a player has already played the map, by using Game-Cache.
Here is what I made, but it doesn't work:

Trigger:
Events
Game-Cache - Create a game cache from Historic Wars v.1.00 - Unprotected.w3v
Set GameCache = (Last Created Unit)
Game-Cache - Save GameCache
Set NumberOfTimesPlayed = (Load NoPlayed of Integers in GameCache) + 1
Game-Cache - Store NumberOfTimesPlayed as NoPlayed of Integers in GameCache
Game-Cache - Save GameCache

Why doesn't it work? It always says 1?
07-08-2007, 09:53 AM#2
PitzerMike
Why are you assigning Last Created Unit to a gamecache variable?
Shouldn't you assign Last Created Game Cache?
07-08-2007, 10:05 AM#3
Captain Griffen
Gamecache cannot be saved, or loaded in online games.
07-08-2007, 12:21 PM#4
Hoernchen
about the last created unit, sry was typingmistake of course
and i read a tutorial, it said you can assign gamecache in online, am misinformed? anyway i didnt even try it online, i tried singleplayer didnt work but, why?
07-08-2007, 01:02 PM#5
Captain Griffen
It is possible to use a gamecache online, but you cannot load or save them.
07-08-2007, 01:26 PM#6
Toadcop
hmmm... if some one got a really good idea (and can realize that) so why are you not creating (finding some one) custom natives which would be cache like but could be saved localy to any harddrive.
07-08-2007, 06:24 PM#7
PipeDream
there's a slightly more grandiose plan in the works.