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

Unable to Reload Custom Heroes across maps

Status
Not open for further replies.
Level 1
Joined
Jan 6, 2013
Messages
3
I'm building a campaign and the only problem regarding my game is one that I recently came across.

The issue is that while my game cache saves my unit (a night elf archdruid that has a custom model not found in the world editor) under the correct label, when I load into the next map and attempt to reload the exact same hero, it fails to do so, and instead places a default Malfurion in its' stead.

I have checked the game cache and it has no problem loading a normal unit or hero that is already in the game, like a Paladin or a Footman, but when I attempt to save and load a custom modeled hero (the archdruid model is being placed on a custom unit that started out as Malfurion) it only displays the Malfurion model and not the new custom model, which in turn wipes out the data from the previous map (their level and what abilities they have).

I have imported the custom model and the exact same hero to both maps, and I have made sure they are exactly the same.

Any help would be greatly appreciated.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
Thats because you are not reloading the exactly same hero, internally. The problem which many mappers don't take notice of is the ID that a custom unit gets in the object editor.

To check this problem load the 2 maps in the editor and open the object editor then press CTRL+D and look for the same unit in the 2 maps, you find that their raw code is not the same.

I will post some photos to explain more.

______
_EDIT_


Map 1
Map2
126172-albums1967-picture64711.png
126172-albums1967-picture64712.png


To get the raw code press CTRL+D in the object editor.

In the photos I attached, this will reload Keeper of the Grove instead of Warden, but if you are not getting any units then no such unit exist in the object editor.
 
Level 1
Joined
Jan 6, 2013
Messages
3
Is there any way to alter the ID or change it so that it corrects to the same unit throughout or do I have to delete the custom units and reload them in the correct order?
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
Is there any way to alter the ID or change it so that it corrects to the same unit throughout or do I have to delete the custom units and reload them in the correct order?

No I guess you can't alter them. But just some tips for you, if you are using the normal WE raw codes are created automatically but if you are using JNGP you could give the unit the raw code at its creation, but altering a raw code isn't possible I guess.

If you want to avoid this problem, try exporting the object editor data from the first map and importing them to the other maps and whenever you want to add a new unit to the object editor modify the first map then export and import again but always be careful not delete any used unit.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Don't create the same unit and import them to every map. Import stuff in the campaign editor. Create objects (units, items etc.) in the cmapign editor's custom data editor, not in object editor.

Custom campaign related stuff is coloured blue, map related stuff is coloured purple. Make sure the things you want to use in two or more maps are blue.
 
Level 16
Joined
Mar 3, 2006
Messages
1,564
Don't create the same unit and import them to every map. Import stuff in the campaign editor. Create objects (units, items etc.) in the cmapign editor's custom data editor, not in object editor.

Custom campaign related stuff is coloured blue, map related stuff is coloured purple. Make sure the things you want to use in two or more maps are blue.

I actually knew about the campaign editor but I assumed that it could be single maps not campaign ones.
 
Status
Not open for further replies.
Top