| 07-10-2006, 09:21 PM | #1 |
I read somethere that there is a limit for gamecache used, and it is 256. Does this mean you can't have more then 256 gamecache variables or does this mean you can't "StoreInteger/Strings" more than 256 times? |
| 07-10-2006, 09:40 PM | #2 |
It means for any one Warcraft 3 profile there can only be 256 gamecache files on the harddisk. So I believe if you InitGameCache( "whatever" ) with 256 different names in place of "whatever" you won't be able to do it anymore. Of course I've never hit the limit nor have I tried, so I can't be sure. |
| 07-11-2006, 04:55 AM | #3 |
No, it means that you can only save 256 GameCaches. So if you don't use SaveGameCache() anywhere in any of your maps, you're fine. |
| 07-11-2006, 09:22 AM | #4 |
Not neccesarily. The problem is that you can't have more than 256 caches. An additional problem is that any saved game caches you have on the disc add to the number of gamecaches used. So, if you played for example 256 campaigns, and each one of them used a game cache to store data between missions, then any map you try to play that uses a game cache won't work (with that profile that has 256 gamecaches saved). |
| 07-11-2006, 03:08 PM | #5 |
The InitGameCache("SomeCache") returns null after 256 gamecache's. |
| 07-11-2006, 04:00 PM | #6 | |
Quote:
And, I only use one GameCache variable, using: JASS:function game_cache takes nothing returns gamecache if (udg_gamecache==null) then call FlushGameCache(InitGameCache("gc.w3v")) set udg_gamecache=InitGameCache("gc.w3v") endif return udg_gamecache endfunction I thought this "gamecache" is not even being used in a multiplayer... |
| 07-11-2006, 07:09 PM | #7 |
No, you can use that as many times as you want. Problem: You can only have 256 SAVED gamecache's per profile. If your ingame, and you havent got 256 gamecache's saved to your current profile your using, then its fine, but if you have, then the gamecache's in the map your playing, will not work. B.net is completly excluded, it dosent save cache's. Its not something to worry about, its just that in single player, dont make too many gamecaches saved to harddisk in 1 map, or dont play a map that does that. |
| 07-11-2006, 08:23 PM | #8 |
YES, THANKS (This took some loads off my mind...) |
| 07-11-2006, 09:56 PM | #9 | |
Quote:
There are like 600 different variations of ways to use gamecache out there. Plus all the maps that could allow you to save things it is an issue. If it is possible to play a map in single player it is possible that it would fail because of this issue. It is senselsess, but this function: JASS:function game_cache takes nothing returns gamecache if (udg_gamecache==null) then call FlushGameCache(InitGameCache("gc.w3v")) set udg_gamecache=InitGameCache("gc.w3v") endif return udg_gamecache endfunction |
| 07-12-2006, 03:10 AM | #10 |
Hmm, does this only apply for the host? Like, if only 1 of 10 people do not have 2 gamecache slots free, would that destroy the whole game, including all the other 9? I don't really get it.... |
| 07-12-2006, 03:20 AM | #11 |
It would probably result in desync. It's not worth worrying about as single player campaigns that use save game cache are few and far between. A note along the lines of "if you play a lot of different single player maps and this map breaks try XXX" wouldn't hurt in a single player map. |
| 07-12-2006, 03:22 AM | #12 |
Also, is it even normal for someone to have more than 256 game cache saved? Who the hell plays that much single player? |
| 07-12-2006, 03:35 AM | #13 | |
Quote:
People like me. |
