| 11-27-2007, 05:29 PM | #1 |
I know we can get a game cache in a campaign if we "change the level" but is it lost when we restart a game ? and how to detect a restart game (not starting a saved game) |
| 11-27-2007, 09:17 PM | #2 |
theoreticaly it must be "lost" but in truth there may be some gache garbage (some data may be available !) but it's only sometimes. + clean new created gamecache on begin (to avoid this) to detect restart... hmmm =) "very hard" ? maybe possible but idk how. |
| 12-02-2007, 10:19 AM | #3 |
i dont want to avoid this but use it. If there is a stored boolean on map initialisation, the game is restarted. "Sometimes" means "random" case or "exactly" cases ? |
| 12-07-2007, 01:23 PM | #4 |
Toadcop heard my call and don't forget me :p |
| 12-09-2007, 10:37 PM | #5 |
ahhh sorry ^^ hmmm... you need to know if map is restarted... hmmm xD i would use "Is game loaded event" so... after this event this variable would be setted to some value so you would know what the game was loaded. otherwise the game was restarted or is started from the begin. ;) i think you will handle this. so it's simple if load event does trigger so this game is loaded =) (you need a counter result) |
| 12-10-2007, 08:58 AM | #6 |
not so easy event load work only for loading a saved game not restart it, or begin it :( That's why i ask for the game cache. If the game cache is still "alive" when you restart game. at the initialisation of the map i check if a boolean is stored in the cache and if no, so it's the begin and then i stored a boolean. I must know if it's a restarted game, cause if a player has a name longer than 10 caracters (with the|cff...) , when the game restart, only the first 10 caracters are saved |
| 12-10-2007, 12:32 PM | #7 |
lol think about it again ;) // you don't need to use gamecache. |
| 12-10-2007, 01:51 PM | #8 | |
Quote:
And i don't understand how do it. Can you make an example, plz ? |
