Skip to content

Posts from Duplicate hero.

No ratings yet — be the first to rate!
User Avatar
7 years ago
Auto-translated
Hello everyone! I have a question. I saw on RedHeavenHero's map that Alaric was recolored in gray. In the tree, there is both Alaric.AdvMapHero, the standard one in red, and AlaricGray.AdvMapHero in gray. At first, I was recoloring the textures and putting them in Data.pak, and it recolored the standard hero. After I looked around a bit and got some explanations, I created a MapObjects folder in my map with the Adv hero and a Characters\Heroes folder with all the files, and I recolored it there, but when I opened the editor, I didn't find my hero in the tree; only the standard one was there, and it was recolored, although I didn't change any files in Data.pak.
Please explain this to me, and if possible, provide step-by-step instructions using an example of some hero:
1) Which folders should I create in the map, and should I copy the Adv files from data.pak, or should I create them in the editor first?
2) Which files should I move, and which ones should I not?
3) Which files should I rename, and which ones should I not?
4) How do I correctly specify the paths so that the new hero references the new files (I can't figure this out at all)? Please write an example of how it should look and in which files I need to specify this.
Thank you to everyone who answers.

P.S. If anyone has done this and it wouldn't be too much trouble, could you describe once, in order, how you did it: first, you created this, then you copied that, renamed this, and specified that path, etc. This would be the ideal answer, thank you.
User Avatar
7 years ago
Auto-translated
fktifzobr@mail.ru
When you copied the files from the Characters\Heroes folder, a mod was created that modifies Alaric. The simplest solution to the problem is to change the path or rename the Characters\Heroes1 folder.
Then, all the files inside will be unique, and nothing will be overwritten.

The map tree cannot be changed using simple methods. The best way to add your own hero is to modify, for example, the hero file Alaric111.(AdvMapHeroShared).xdb. Then, in the map editor, you can place Alaric, and in the object's properties tree, manually enter 111 in the file path, and the modded Alaric will appear on the map.

When you copy the Alaric.(AdvMapHeroShared).xdb file and rename it, open it and find the following lines:
HeroCharacterAdventure href="/Characters/Heroes/DS/Alaric_DS_U.(Character).xdb#xpointer(/Character)"/>
HeroCharacterArena href="/Characters/Heroes/DS/Alaric_DS_U.(Character).xdb#xpointer(/Character)"/>
HeroCharacterArenaMelee/>
HeroCharacterAdventure href="/Characters/Heroes/DS/Alaric_DS_U.(Character).xdb#xpointer(/Character)"/>
Change these paths to your own.

P.S.: I've posted the answer; someone else might have a similar question.

Many thanks again to fktifzobr@mail.ru!

Statistics

Welcome our newest member: recijeb