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: ~ QUESTIONS Topic and FAQ - Modders Workshop ~
Thread: ~ QUESTIONS Topic and FAQ - Modders Workshop ~ This Popular Thread is 126 pages long: 1 20 ... 39 40 41 42 43 ... 60 80 100 120 126 · «PREV / NEXT»
Roman_Lajciak
Roman_Lajciak


posted August 21, 2008 01:27 PM

Adding Portraits

With the help of the members of this community, I have recently managed to add a new hero to my HOMM V - Tribes of the East game. If possible, I would, however, also like to add a custom portrait for the hero. So far, I have tried changing a .bmp of the portrait (both 128x128 and 64x64) into a .dds (by saving it as a .dds in Adobe Photoshop with the relevant plugin) and changed the reference in the two  'portrait'.xdb files in the textures folder. I have also changed the reference in the 'hero'.xdb file to the new 'portrait'.xdb files.

Regretfully, although the hero works fine, the portrait does not show. Is there anything else I need to do to make it show? Thanks!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Nebdar
Nebdar


Promising
Supreme Hero
Generation N
posted August 21, 2008 05:47 PM

Quote:
Quote:
Is there any mod changing Dark Energy Points, output, how many you gain , how much you can spend them on each raised undead or something like that


No, at least it wasn't posted here, but it can be created.


Oh it can be Can somebody tell or show me how

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted August 21, 2008 08:11 PM
Edited by VokialBG at 20:17, 21 Aug 2008.

@Roman_Lajciak: Save the icons in 32 bit .dds. Also you need alpha, try this guide by Kronos:

How to remove backgrounds of custom Portraits and how to remove stuff of Models

EDIT: Also try 12th post here.

@Nebdar: Open GameMechanics/RPGStats/DefaultStats.xdb

Now search for this:


____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Nebdar
Nebdar


Promising
Supreme Hero
Generation N
posted August 21, 2008 08:18 PM
Edited by VokialBG at 20:21, 21 Aug 2008.

Quote:

@Nebdar: Open GameMechanics/RPGStats/DefaultStats.xdb

No search for this.


thnx VokialBG

I started an new thread about this. hope i didn't break any rules.
There i have written what i want to change. Thanks for screenshoot but i  must ask you what every script means

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
morten8035
morten8035


Hired Hero
Necromancer
posted August 22, 2008 05:16 PM
Edited by morten8035 at 17:20, 22 Aug 2008.

Custom hero

I have just made my first working hero
He may be little more stronger than the other heroes but whatever
It is a way I can remove the selection ring on adventure maps without to get an error on game startup?
[URL=http://imageshack.us][/URL]
[URL=http://g.imageshack.us/g.php?h=137&i=nagashlk4.jpg][/URL]

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 05:21 PM
Edited by VokialBG at 19:53, 22 Aug 2008.

Quote:
@Roman_Lajciak: Save the icons in 32 bit .dds. Also you need alpha, try this guide by Kronos:

[url=http://heroescommunity.com/viewthread.php3?TID=23393]How to remove backgrounds of custom Portraits and how to remove stuff of Models[/url]

EDIT: Also try 12th post [url=http://heroescommunity.com/viewthread.php3?TID=22156]here[/url].



Thanks Vokial! I have now saved the icons in 32 bit .dds. Unfortunately, the portraits still don't show. I think my problem might lie in referencing the image files - I don't really know what I need to change in the 'hero'128x128.xdb and 'hero' 128x128x64.xdb files to make the portraits show properly in the game. Or perhaps there are are some other files where I need to add references to the image files?

P.S.
Sorry I am such a modding noob!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted August 22, 2008 05:28 PM
Edited by VokialBG at 19:54, 22 Aug 2008.

It will be great if you post a screen here...

@morten8035: Nice Maybe you should upload it somewhere and post it in it's own topic
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 08:15 PM

Here is the text from relevant files. I will post a picture as well.

Full contents of Academy_Testhero_128x128.(Texture).xdb:

Quote:

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
<SrcName href="/UI/Icons/Heroes/Academy/Academy_Narxes_128x128.tga"/>
<DestName href="Academy_Testhero_128x128.(Texture).dds"/>
<Type>TEXTURE_2D</Type>
<ConversionType>CONVERT_TRANSPARENT</ConversionType>
<AddrType>CLAMP</AddrType>
<Format>TF_8888</Format>
<Width>128</Width>
<Height>128</Height>
<MappingSize>0</MappingSize>
<NMips>1</NMips>
<Gain>0</Gain>
<AverageColor>-1653520088</AverageColor>
<InstantLoad>true</InstantLoad>
<IsDXT>false</IsDXT>
<FlipY>false</FlipY>
<StandardExport>true</StandardExport>
<UseS3TC>false</UseS3TC>
</Texture>



Full contents of Academy_Testhero_128x128_64.(Texture).xdb:

Quote:

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
<SrcName href="/UI/Icons/Heroes/Academy/Academy_Narxes_128x128_64.tga"/>
<DestName href="Academy_Testhero_128x128_64.(Texture).dds"/>
<Type>TEXTURE_2D</Type>
<ConversionType>CONVERT_TRANSPARENT</ConversionType>
<AddrType>CLAMP</AddrType>
<Format>TF_8888</Format>
<Width>64</Width>
<Height>64</Height>
<MappingSize>0</MappingSize>
<NMips>1</NMips>
<Gain>0</Gain>
<AverageColor>-1653520088</AverageColor>
<InstantLoad>true</InstantLoad>
<IsDXT>false</IsDXT>
<FlipY>false</FlipY>
<StandardExport>true</StandardExport>
<UseS3TC>false</UseS3TC>
</Texture>




Here is some relevant text from the Testhero.xdb in MapObjects/Academy:

Quote:

<FaceTexture href="/Textures/Icons/Heroes/Academy/Academy_Testhero_128x128.(Texture).xdb#xpointer(/Texture)"/>
<FaceTextureSmall href="/Textures/Icons/Heroes/Academy/Academy_Testhero_128x128_64.(Texture).xdb#xpointer(/Texture)"/>
<HeroCharacterArena href="/Characters/Heroes/Wizard.(Character).xdb#xpointer(/Character)"/>
<HeroCharacterArenaMelee/>
<HeroCharacterAdventure href="/Characters/Heroes/Wizard_LOD.(Character).xdb#xpointer(/Character)"/>
<HeroIndividualCamera/>
<CombatVisual href="/GameMechanics/CreatureVisual/Heroes/Wizard.xdb#xpointer(/CreatureVisual)"/>
<TownType>TOWN_ACADEMY</TownType>
<Editable>
<NameFileRef href="/Text/Game/Heroes/Persons/Academy/Testhero/Name.txt"/>
<BiographyFileRef href="/Text/Game/Heroes/Persons/Academy/Testhero/Bio.txt"/>
<Offence>0</Offence>
<Defence>0</Defence>
<Spellpower>2</Spellpower>
<Knowledge>3</Knowledge>
<skills>
<Item>
<Mastery>MASTERY_BASIC</Mastery>
<SkillID>HERO_SKILL_LEARNING</SkillID>
</Item>
</skills>
<perkIDs>
<Item>HERO_SKILL_SCHOLAR</Item>
</perkIDs>
<spellIDs>
<Item>SPELL_MAGIC_FIST</Item>
</spellIDs>
<Ballista>false</Ballista>
<FirstAidTent>false</FirstAidTent>
<AmmoCart>false</AmmoCart>
<FavoriteEnemies/>
</Editable>
<ArrowButtonState>0</ArrowButtonState>
<Decal/>
<Selection href="/_(Model)/Heroes/Wizard_Path/Symbol.xdb#xpointer(/Model)"/>
<Trace href="/MapObjects/_(AdvMapHeroTraceSet)/Academy.xdb#xpointer(/AdvMapHeroTraceSet)"/>
<RaceTraitIcon/>
<RaceTraitDescFileRef href=""/>
<ScenarioHero>true</ScenarioHero>
<AdventureMusic/>
<HideInEditor>false</HideInEditor>
</AdvMapHeroShared>




____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 08:18 PM

Here is how the icon looks in the game:

[Image][URL=http://img125.imageshack.us/my.php?image=testhero2ry0.jpg][/URL][/Image]

As you can see, the portrait does not show...
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 08:54 PM

Also, the new hero only appears on the maps specifically modified for that to be the case. I tried creating a random map with the RMG, for example, and the hero did not appear there. Can I change that somehow?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Asheera
Asheera


Honorable
Undefeatable Hero
Elite Assassin
posted August 22, 2008 08:56 PM

Are you sure you create the .dds "correctly"?

For portraits, you need to set the type to "8:8:8:8 (ARGB)" and NOT "DXT 3" or something else.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Cepheus
Cepheus


Honorable
Legendary Hero
Far-flung Keeper
posted August 22, 2008 09:38 PM

Upload your .dds and we'll see what the problem is.  Your coding looks perfect, so whatever's going wrong has nothing to do with that

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 10:43 PM

Quote:

For portraits, you need to set the type to "8:8:8:8 (ARGB)" and NOT "DXT 3" or something else.


This worked! Thanks a lot, everybody, for your help!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Nebdar
Nebdar


Promising
Supreme Hero
Generation N
posted August 22, 2008 11:00 PM

While creating a mod is it necessery to put in it whole file or just the lines that you have changed in file with the same name.
For example i have to edit something in DefaultStats.xdb it's about 6 lines to edit only and in my mode i have to include whole file or just this 6 edited lines named DefaultStats.xdb

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Cepheus
Cepheus


Honorable
Legendary Hero
Far-flung Keeper
posted August 22, 2008 11:02 PM

...the whole file.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Nebdar
Nebdar


Promising
Supreme Hero
Generation N
posted August 22, 2008 11:06 PM
Edited by Nebdar at 23:33, 22 Aug 2008.

So when creating a mod for all three  version of HoMM V which involves editing in DefaultStats.xdb i have to make three seperate mod's and i can't create universal one

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Roman_Lajciak
Roman_Lajciak


posted August 22, 2008 11:29 PM

One more question with respect to the new hero: Is there any way to make the new hero work with: 1) Maps edited in the map editor? 2) Maps created with the Random map generator?
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
morten8035
morten8035


Hired Hero
Necromancer
posted August 23, 2008 12:31 AM

Quote:
One more question with respect to the new hero: Is there any way to make the new hero work with: 1) Maps edited in the map editor? 2) Maps created with the Random map generator?

Me you talking to?
if:
1) Not sure, have not tested it.
2) Whe can select the hero in town/hero select screen.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sith_of_ziost
sith_of_ziost


Promising
Supreme Hero
Scouting the Multiverse
posted August 23, 2008 03:30 AM

@roman - I think that if the Map is list in the Maps folder, you just add the Hero to the list under the folder. But really, I've never tried it so i don't know.

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
VokialBG
VokialBG


Honorable
Legendary Hero
First in line
posted August 23, 2008 10:35 AM
Edited by VokialBG at 11:36, 05 Sep 2008.

Quote:
So when creating a mod for all three  version of HoMM V which involves editing in DefaultStats.xdb i have to make three seperate mod's and i can't create universal one


Yes, also the DefaultStats.xdb's for H5, HoF and TotE are different.
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 126 pages long: 1 20 ... 39 40 41 42 43 ... 60 80 100 120 126 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.2280 seconds