• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

[SOLVED] Game cache problem - hero XP load

Status
Not open for further replies.
Level 2
Joined
Oct 9, 2022
Messages
6
Hello there,
I am working on my first campaign and I am trying to do everything as is said in tutorials and videos. I made a game cache for saving my hero, but there is problem with loading XP. I have some custom names of heroes and maps, but I will make it simple here.
First map I save Hero1 and Hero2 - both with Level 3 and some 3 abilities, and I save it as Map1.
On second map I have two new heroes, but Hero1 is there too for Player12 (just cinematic and NPC things) - restored from Map1 - but he is there with level 1 and wrong ability (I can see it, he had some fighting ability, but how he has +3 stats bonus (=yellow +)). All 3 heroes (1,3,4) save as Map2.
Then I tried to make third map, and I restored all four heroes - Hero1, Hero3 and Hero4 of Map2, and Hero 2 od Map1.
Where is problem? Heroes 1 and 2 had Level3 with some abilities, and on my third map they have 60% XP of lvl 1, and yellow "+" ability (and I didnt give it to them, but they have it as option), Heroes 3 and 4 are ok - near lvl 3 with their abilities as it were on Map2.
I know (I hope), how to save them - because Heroes 3+4 are normally loaded, but Heroes 1+2 has this problem. But I made same steps in each map.
Do you know what happened?
Thanks all for your answers.

Version 1.27, old W3, not Reforged
 
Level 43
Joined
Feb 27, 2007
Messages
5,434
You will need to show the relevant triggers you have written.
 
Level 2
Joined
Oct 9, 2022
Messages
6
Here it is, sorry about language in triggers - czech version, if you need, i wil translate it.

End of map 1
  • next level
    • Udalosti
    • Podminky
    • Cinnosti
      • Spinac - Turn off (This trigger)
      • HernĂ paměť - Create a game cache from LaknarokKampan.w3v
      • Set HledaniKrizovatky = (Last created game cache)
      • HernĂ paměť - Store VáleÄŤnĂk 0002 <gen> as Olvir of HledaniKrizovatky in (Last created game cache)
      • HernĂ paměť - Store Valgard 0047 <gen> as Valgard of HledaniKrizovatky in (Last created game cache)
      • HernĂ paměť - Save (Last created game cache)
      • Hra - Ukázat custom campaign button 3
      • Hra - Set the next level to NoviSpojenci.w3x
      • Hra - Victory Hráč 1 (ÄŤervenĂ˝) (Ukázat dialogs, Vynechat scores)

Start of map 2
  • Load Olvir
    • Události
    • PodmĂnky
    • ÄŚinnosti
      • HernĂ paměť - Create a game cache from KrcmaKampan.w3v
      • HernĂ paměť - Restore Olvir of HledaniKrizovatky from (Last created game cache) for Hráč 12 (hnÄ›dĂ˝) at (Center of olvir load <gen>) facing (Position of VozĂk 0006 <gen>)
      • Set Olvir = (Last restored unit)

ENd of map 2
  • Save game
    • Události
    • PodmĂnky
    • ÄŚinnosti
      • SpĂnaÄŤ - Turn off (This trigger)
      • HernĂ paměť - Create a game cache from KrcmaKampan.w3v
      • HernĂ paměť - Store Olvir as Olvir of NoviSpojenci in (Last created game cache)
      • HernĂ paměť - Store Egil 0004 <gen> as Egil of NoviSpojenci in (Last created game cache)
      • HernĂ paměť - Store Galdr 0002 <gen> as Starkat of NoviSpojenci in (Last created game cache)
      • HernĂ paměť - Save (Last created game cache)
      • Hra - Ukázat custom campaign button 4
      • Hra - Set the next level to StavbaVesniceMeratyr.w3x
      • Hra - Victory Hráč 1 (ÄŤervenĂ˝) (Ukázat dialogs, Vynechat scores)
Start of map 3
  • Load Heroes
    • Události
    • PodmĂnky
    • ÄŚinnosti
      • HernĂ paměť - Create a game cache from KrcmaKampan.w3v
      • HernĂ paměť - Restore Olvir of NoviSpojenci from (Last created game cache) for Hráč 1 (ÄŤervenĂ˝) at (Center of Oblast 000 <gen>) facing 0.00
      • Set Olvir = (Last restored unit)
      • HernĂ paměť - Restore Valgard of HledaniKrizovatky from (Last created game cache) for Hráč 1 (ÄŤervenĂ˝) at (Center of Oblast 001 <gen>) facing 0.00
      • Set Valgard = (Last restored unit)
      • HernĂ paměť - Restore Starkat of NoviSpojenci from (Last created game cache) for Hráč 1 (ÄŤervenĂ˝) at (Center of Oblast 002 <gen>) facing 0.00
      • Set Starkat = (Last restored unit)
      • HernĂ paměť - Restore Egil of NoviSpojenci from (Last created game cache) for Hráč 1 (ÄŤervenĂ˝) at (Center of Oblast 003 <gen>) facing 0.00
      • Set Egil = (Last restored unit)
This is all
 
Level 2
Joined
Oct 9, 2022
Messages
6
Ah okay since it's in a different language it would be helpful instead to actually upload the map here as an attachment (if you are comfortable with that). That way we can download the map and open it to read it in our own languages :)
Ok, I have to upload just 3 maps, or I have to upload campaign as well? And custom heroes/skins are saved in map itself, so it doesnt matter, right? :)
 
Level 2
Joined
Oct 9, 2022
Messages
6
As long as it's the same trigger in each map, then you only need to upload 1 map here. It might be missing some of the custom data but that won't matter to see the triggers better.
Hledani is 1st, Novi is 2nd, Stavba is 3rd. Hope that will help. :)
 

Attachments

  • HledaniKrizovatky.w3x
    577.4 KB · Views: 8
  • NoviSpojenci.w3x
    112.6 KB · Views: 8
  • StavbaVesniceMeratyr.w3x
    1.2 MB · Views: 8
Status
Not open for further replies.
Top