• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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