|
Thread: Small Mod Problem - Please help | |
|
Elik
Tavern Dweller
|
posted July 15, 2007 09:20 PM |
|
|
Small Mod Problem - Please help
Okay, this is my first mod, so forgive me if i'm making some rookie mistakes. I've been searching and reading the various boards for about 2 hours now, so i think i'm doing things correctly, but i'm still having a problem.
Goal: I'm trying to change the starting skills of the Ranger Findan for the campaign. More specifically, i'm trying to change the Skill Tactics into the Skill Battle Frenzy.
I extracted the Heam.(AdvMapHeroShared).xdb file in data.pak from the MapObjects\Preserve\ directory. I placed this file in the data\ directory of the game in the MapObjects\Preserve\ folder. The Heam file represents Findan (it actually has his name in the file as well).
I searched through the Skills\ folder in the data.pak file and found the string reference to Battle Frenzy (HERO_SKILL_FRENZY). I then edited the Heam file, found the string reference to Tactics (HERO_SKILL_TACTICS) and changed it to HERO_SKILL_FRENZY. I saved it, left it in folder format (non-pak) and started the Ranger campaign.
I check Findan's skills and he has BOTH Tactics AND Battle Frenzy. Hmm. I only wanted Battle Frenzy. I did a search of the Heam file again to make sure there were no more references to Tactics, and could find none.
I thought it might be the fact that the mod was not in pak form, so i converted it to RangerSkill.pak and tried again. This time, there were no differences at all, so i went back to the folder form and tried again just to make sure it was still working. It was, he had both Skills again.
So, it looks like it's taking the data from both Heam files, the one in my mod, and the one in the data.pak, or is there something else going on?
I feel like i'm close, but i can't get it to work right. Any iteas?
Thanks ahead of time for any help
____________
|
|
radar
Responsible
Legendary Hero
Castle/Haven player
|
posted July 16, 2007 10:30 AM |
|
|
I think it must stay as it it is. When I was editiong duel heroes by text files, even if I changed their all skills, the starting ones still remained in game.
____________
|
|
sfidanza
Promising
Supreme Hero
|
posted July 17, 2007 02:13 PM |
|
Edited by sfidanza at 23:19, 27 Nov 2007.
|
In both cases, that's because you use heroes that are also specified somewhere else:
- in the campaign, (C5M1), the map file uses Findan: Maps\Scenario\C5M1, search for Heam in the file. There, he is given Tactics again.
- for the duel mode, the duel heroes are specified in Maps\DuelMode\Heroes\
In both cases, the basic hero file is loaded (the one you modified Elik), then the map file (or duel hero file) is loaded, and adds its own skills, spells, ...
Apart from that, what you did is correct Elik.
About the .pak form, it depends on which version you're using. The easiest way to have a mod working is to package it as a mod, give it the .h5m extension and place it in the Maps\ folder.
Lastly, the wiki has a page to list all the ids (HERO_SKILL_FRENZY...):
http://www.heroesofmightandmagic.com/heroes5/modding_wiki/list_of_id_s
|
|
|
|