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

Saved game won't load

Status
Not open for further replies.
Level 10
Joined
Jun 6, 2007
Messages
392
I'm making a campaign, which consists of many linked maps (like in tft orc campaign). Everything else works correctly, but I can't load a saved game. Here's a trigger:
  • Transition
    • Events
    • Conditions
    • Actions
      • Set TempPath1 = ((SaveFolder + \) + Map1.w3z)
      • Set TempPath2 = ((SaveFolder + \) + (TransitionTarget + .w3z))
      • Wait 0.50 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (The TempPath2 saved-game exists) Equal to True
        • Then - Actions
          • Game - Save game as TempPath1 and load TempPath2 (Skip scores)
        • Else - Actions
          • Game - Save game as TempPath1 and change level to (TransitionTarget + .w3x) (Skip scores)
The trigger creates save files where it should, but for some reason, those files can't be loaded. In other words, transition works correctly if target map hasn't been visited before, but if it has, then wc3 goes back to the campaign screen. What could cause this problem?
 
Level 10
Joined
Jun 6, 2007
Messages
392
Thanks for your reply. It looks like a path error, but how is that possible? When player leaves from map, it makes a save file Map1.w3z to Warcraft\save\Profile1\CustomSaves\CampaignName\SaveFolder and TransitionTarget is set to "Map2". So it starts Map 2. But when returning back to map 1, (TransitionTarget = Map1), it doesn't load Map1.w3z.
 
Status
Not open for further replies.
Top