Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Small Mod Problem - Please help
Thread: Small Mod Problem - Please help
Elik
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
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
radar
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.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sfidanza
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0194 seconds