Qeustions about Campaign Cache

In older patches, particularly the legacy builds of Warcraft III pre-dating the Reforged development (and up to 1.31.1, the latest patch before Reforged), there's only one file called "Campaigns.w3v", which can be found in the "Profile" folder, which is usually in "C:\Users\%USERNAME%\Saved Games\Warcraft III" or directly in-game folder. The "Campaigns.w3v" file also stored game cache for the custom games, if I'm not mistaken.
 
Oh, nice, thank you.

I don't want to start a new thread because my question is also related to cache, so I'll ask here:

For exampe, If I saved an Integer value in GameCache and wanted to load that value in a next scenario, but there was no Game Cache - Restore Integer function in the current version of Reforged, so what I would do? Does anyone know how to get such values?
 
In older patches, particularly the legacy builds of Warcraft III pre-dating the Reforged development (and up to 1.31.1, the latest patch before Reforged), there's only one file called "Campaigns.w3v", which can be found in the "Profile" folder, which is usually in "C:\Users\%USERNAME%\Saved Games\Warcraft III" or directly in-game folder. The "Campaigns.w3v" file also stored game cache for the custom games, if I'm not mistaken.
Yeah, I found cache there too, but the last date was 2024. So I think it is now the folder/path is not relevant anymore, but used to be...
 
You do it like so

  • Set VariableSet Cache_Integer = (Load MyValue of MyCategory from (Last created game cache))


1755562590247.png
 
You do it like so

  • Set VariableSet Cache_Integer = (Load MyValue of MyCategory from (Last created game cache))


View attachment 546729
Well, it seems I initially did not notice that, thank you...

I've worked on documenting gamecache api a little bit more, you can find it here: jassdoc/common.j at pr/return-handles · Luashine/jassdoc (visit lep/jassdoc later once merged)

and then scroll down to it's usage functions (it's not in Jassbot yet)
Will take a glance.
 
Back
Top