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

[Trigger] Game Cache Problems

Status
Not open for further replies.
Level 8
Joined
Oct 8, 2005
Messages
409
Why is this game cache giving me "null" when I try to retrieve strings from it ?
I know "null" means empty, but why is it empty ?

  • Events
    • Player - Player 1 (Red) Selects a unit
    • Player - Player 2 (Blue) Selects a unit
    • Player - Player 3 (Teal) Selects a unit
    • Player - Player 4 (Purple) Selects a unit
    • Player - Player 5 (Yellow) Selects a unit
    • Player - Player 6 (Orange) Selects a unit
    • Player - Player 7 (Green) Selects a unit
    • Player - Player 8 (Pink) Selects a unit
    • Player - Player 9 (Gray) Selects a unit
    • Player - Player 10 (Light Blue) Selects a unit
    • Player - Player 11 (Dark Green) Selects a unit
    • Player - Player 12 (Brown) Selects a unit
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • HeroHave[(Player number of (Triggering player))] Equal to False
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Triggering unit) is in HeroDoubleClick[(Player number of (Triggering player))]) Equal to True
          • Then - Actions
            • Game - Display to (All players) for 2.00 seconds the text: (((Name of (Triggering player)) + has selected the ) + ((Name of (Triggering unit)) + for the coming battle.))
            • Unit - Change ownership of (Triggering unit) to (Triggering player) and Change color
            • Camera - Lock camera target for (Player((Player number of (Triggering player)))) to No unit, offset by (0.00, 0.00) using Default rotation
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • OrcOrHuman[(Player number of (Triggering player))] Equal to True
              • Then - Actions
                • Unit - Move (Triggering unit) instantly to (Center of Orc Hero Spawn <gen>)
                • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Orc Hero Spawn <gen>) over 0.00 seconds
                • Wait 2.00 seconds
                • Dialog - Show JobSelect2 for (Player((Player number of (Triggering player))))
              • Else - Actions
                • Unit - Move (Triggering unit) instantly to (Center of Human Hero Spwan <gen>)
                • Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Human Hero Spwan <gen>) over 0.00 seconds
                • Wait 2.00 seconds
                • Dialog - Show JobSelect for (Player((Player number of (Triggering player))))
            • Set Hero[(Player number of (Triggering player))] = (Triggering unit)
            • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
            • Set HeroHave[(Player number of (Triggering player))] = True
            • Set Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
          • Else - Actions
            • Game - Display to (Player group((Triggering player))) for 2.00 seconds the text: (Load (Name of (Triggering unit)) of String from INFO)
            • Unit Group - Remove all units from HeroDoubleClick[(Player number of (Triggering player))]
            • Special Effect - Create a special effect at (Position of (Triggering unit)) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
            • Unit Group - Add (Triggering unit) to HeroDoubleClick[(Player number of (Triggering player))]
      • Else - Actions
  • Events
    • Time - Elapsed game time is 10.00 seconds
  • Conditions
  • Actions
    • Game Cache - Create a game cache from INFO.w3v
    • Game Cache - Store Mystical Hero, adept at ranged assaults. Can learn Blizzard, Summon Water Elemental, Brilliance Aura and Mass Teleport. |cffffcc00Attacks land and air units.|r as Archmage of String in INFO
    • Game Cache - Store Mystical Hero, adept at controlling magic and ranged assaults. Can learn Flame Strike, Banish, Siphon Mana and Phoenix. |cffffcc00Attacks land and air units.|r as Blood Mage of String in INFO
    • Game Cache - Store Warrior Hero, adept at offensive combat and disrupting enemy troops. Can learn Storm Bolt, Thunder Clap, Bash and Avatar. |cffffcc00Attacks land units.|r as Mountain King of String in INFO
    • Game Cache - Store Warrior Hero, exceptional at defense and augmenting nearby friendly troops. Can learn Holy Light, Divine Shield, Devotion Aura and Resurrection. |cffffcc00Attacks land units.|r as Paladin of String in INFO
    • Game Cache - Store Supper Orc |cffffcc00Attacks land units.|r as Legendary Doomhammer of String in INFO
    • Game Cache - Store Mystical Hero, effective at ranged attacks and scouting. Can learn Chain Lightning, Far Sight, Feral Spirit and Earthquake. |cffffcc00Attacks land and air units.|r as Far Seer of String in INFO
    • Game Cache - Store Cunning Hero, adept at healing magics and voodoo curses. Can learn Healing Wave, Hex, Serpent Ward and Big Bad Voodoo. |cffffcc00Attacks land and air units.|r as Shadow Hunter of String in INFO
    • Game Cache - Store Warrior Hero, exceptional at absorbing damage and melee combat. Can learn Shockwave, War Stomp, Endurance Aura and Reincarnation. |cffffcc00Attacks land units.|r as Tauren Chieftain of String in INFO
    • Game Cache - Store Warrior Hero, adept at summoning insect minions and crushing enemies. Can learn Impale, Spiked Carapace, Carrion Beetles and Locust Swarm. |cffffcc00Attacks land units.|r as Crypt Lord of String in INFO
    • Game Cache - Store Warrior Hero, evil counterpart to the Human Paladin. Can learn Death Coil, Death Pact, Unholy Aura, and Animate Dead. |cffffcc00Attacks land units.|r as Death Knight of String in INFO
    • Game Cache - Store Cunning Hero, adept at controlling combat. Can learn Carrion Swarm, Sleep, Vampiric Aura, and Inferno. |cffffcc00Attacks land units.| as Dreadlord of String in INFO
    • Game Cache - Store Mystical Hero, particularly adept at cold magic. Can learn Frost Armor, Frost Nova, Dark Ritual and Death And Decay. |cffffcc00Attacks land and air units.|r as Lich of String in INFO
    • Game Cache - Store Cunning Hero, adept at maneuvering through battles. Can learn Immolation, Evasion, Mana Burn, and Metamorphosis. |cffffcc00Attacks land units.|r as Demon Hunter of String in INFO
    • Game Cache - Store Mystical Hero, adept at using nature spells. Can learn Entangling Roots, Force of Nature, Thorns Aura, and Tranquility. |cffffcc00Attacks land and air units.|r as Keeper of the Grove of String in INFO
    • Game Cache - Store Warrior Hero, adept at enhancing ranged attacks and slaying enemies from afar. Can learn Scout, Searing Arrows, Trueshot Aura, and Starfall. |cffffcc00Attacks land and air units.|r as Priestess of the Moon of String in INFO
    • Game Cache - Store Cunning Hero, adept at entering and escaping combat. Can learn Blink, Fan of Knives, Shadow Strike and Vengeance. |cffffcc00Attacks land units.|r as Warden of String in INFO
    • Game Cache - Save INFO
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Eithor the names do not match (the unit is returning not what you have there) or your Gamecache for SP testing is full.

If the names are not matching, try making them match or atleast test for that. You also could switch over to the more efficent type storage which stores it to a unit type like handle vars can do.

If your SP game cache is full, simply delete all SP profiles and start again, remember your limated to 255 SP came cache files before more can not be created. There are other ways but deletion is the easiest way for gaurenteed results. To test if this is the fault simply test in multiplayer.
 
Level 8
Joined
Oct 8, 2005
Messages
409
I tried it in multi-player and it still gave me nothing but 'Null"

Not all of my heroes are in the Cache, but enough are that I should be able to test these triggers and not get "null" from every hero

You said "You also could switch over to the more efficent type storage which stores it to a unit type like handle vars can do."

Would I do this with a couple of arrays and cross check them ?
or
Is there an easier way ?

EDIT: I FOUND THE PROBLEM, I SHOULD NOT HAVE SAVED THE CACHE
 
Last edited:
Status
Not open for further replies.
Top