• 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.

Game cache-restoring custom hero

Status
Not open for further replies.
Level 3
Joined
Nov 12, 2007
Messages
28
I am making a Campaign and i can't restore my main character to the other maps, although i can restore unmodyfied heroes. The custom hero i copyed to both maps so i have no idea whats going wrong.
  • Actions
    • Game Cache - Create a game cache from Cache.w3v
    • Set Cache = (Last created game cache)
    • Game Cache - Store Highlord 0085 <gen> as Mograine of Hero in Cache
    • Game Cache - Save Cache
    • Set Story = 1
    • Game Cache - Store 1 as Story of Status in (Last created game cache)
    • Game Cache - Save Cache
    • Game - Set the next level to Map06Stratholme.w3x
    • Game - Show custom campaign button 4
    • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
  • Start01
    • Actions
      • Set Group1 = (Units in Start1 <gen>)
      • Game Cache - Reload all game cache data from disk
      • Game Cache - Create a game cache from Cache.w3v
      • Set Cache = (Last created game cache)
      • Game Cache - Save Cache
      • Set Story = (Load Story of Status from Cache)
      • Game Cache - Save Cache
      • Cinematic - Fade in over 1.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Story Equal to 1
        • Then - Actions
          • Game Cache - Restore Mograine of Hero from Cache for Player 1 (Red) at (Center of Start1 <gen>) facing 90.00
 
Level 3
Joined
Nov 12, 2007
Messages
28
Ok made some testing i guess the problem is the unit itself.
Can't believe i stopped my project for 2 months for something like this, oh well apparantly new custom units don't work fine with game caches i just remade generic hero and its fine now.
 
Last edited:
Level 16
Joined
Mar 3, 2006
Messages
1,564
Ok made some testing i guess the problem is the unit itself.
Can't believe i stopped my project for 2 months for something like this, oh well apparantly new custom units don't work fine with game caches i just remade generic hero and its fine now.

No, that's not true. Even custom units work well with game cache, the problem is that you may handling your units in the object editor badly. For example, you are making a custom paladin with ID H000 in one map and in the other map that you use the GC to restore that paladin you are making the paladin ID H002, so what happens is that the GC can't find the right ID.
 
Status
Not open for further replies.
Top