• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

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