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 > MapHaven Guild > Thread: PWL / thumbnailImages complete guide!
Thread: PWL / thumbnailImages complete guide!
fiur
fiur


Promising
Supreme Hero
Map Creator
posted November 15, 2007 04:18 PM bonus applied.
Edited by fiur at 01:01, 16 Nov 2007.

PWL / thumbnailImages complete guide! (H5 TotE)

maybe you already know how to do this but anyway here is an coplete guide for both issues....:
(Picture when loading and those small thumbnailImages when you select a map to play)

PS!... first a link to a "doc" file (it contains the same but with the correct space in the lines!!
PWL_doc

PWL: (Picture when loading)

file:
“name”.(Texture).xdb)

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
<DestName href="name.dds"/>
<Type>REGULAR</Type>
<ConversionType>CONVERT_TRANSPARENT</ConversionType>
<AddrType>CLAMP</AddrType>
<Format>TF_DXT1</Format>
<Width>1024</Width>
<Height>1024</Height>
<MappingSize>0</MappingSize>
<NMips>1</NMips>
<Gain>0</Gain>
<AverageColor>0</AverageColor>
<InstantLoad>true</InstantLoad>
<IsDXT>false</IsDXT>
<FlipY>false</FlipY>
<StandardExport>true</StandardExport>
<UseS3TC>false</UseS3TC>
</Texture>


file:

“name”.xdb

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
<SrcName href=""/>
<DestName href=""/>
<Type>REGULAR</Type>
<ConversionType>CONVERT_ORDINARY</ConversionType>
<AddrType>CLAMP</AddrType>
<Format>TF_DXT1</Format>
<Width>1024</Width>
<Height>1024</Height>
<MappingSize>0</MappingSize>
<NMips>0</NMips>
<Gain>0</Gain>
<AverageColor>0</AverageColor>
<InstantLoad>false</InstantLoad>
<IsDXT>false</IsDXT>
<FlipY>false</FlipY>
<StandardExport>true</StandardExport>
<UseS3TC>false</UseS3TC>
</Texture>

(“name” can be any name but they need to be the same for both files)

file:

map.xdb

look for this line or add:

<PWLPicture href="name.(Texture).xdb#xpointer(/Texture)"/>

(if the line is missing you need to extract the file from the *.h5m file and add the put it back inside)

and then the format of your dds file:

file format for your dds file (the picture you wanna show when the map is loading:

first make an "blank picture" size: 1024*1024 colour: black
then fill in your picture (the one you wanna use: size 1024*766) fill in from the top....
when you save the picture choose:
DTX1    RGB     (No Alpha)   MIP Map Generation? Choose No MIP maps (and 2D Texture)
the file should be approximately 513kb.....

Remember to open you "map".h5m file with rar or zip and put your dds inside.....

------------------------------------------------------------------------------------------------------


And then the thumbnailImages (the small images who shows up on the left side on the map selection screen)

file:


map-tag.xdb

<?xml version="1.0" encoding="UTF-8"?>
<AdvMapDescTag>
<AdvMapDesc href="map.xdb#xpointer(/AdvMapDesc)"/>
<NameFileRef href="name.txt"/>
<DescriptionFileRef href="description.txt"/>
<TileX>136</TileX>
<TileY>136</TileY>
<MapGoal href="MapGoalText.txt"/>
<CustomMapGoal>false</CustomMapGoal>
<teams>
<Item>1</Item>
<Item>1</Item>
</teams>
<thumbnailImages>
<Item href="pic1.xdb#xpointer(/Texture)"/> </thumbnailImages>
<HasUnderground>true</HasUnderground>
<RandomMap>false</RandomMap>
<CustomGameMap>true</CustomGameMap>
<Version>3</Version>
</AdvMapDescTag>

file:

pic1.(Texture).xdb

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
<SrcName href=""/>
<DestName href=""/>
<Type>REGULAR</Type>
<ConversionType>CONVERT_ORDINARY</ConversionType>
<AddrType>CLAMP</AddrType>
<Format>TF_DXT1</Format>
<Width>0</Width>
<Height>0</Height>
<MappingSize>0</MappingSize>
<NMips>0</NMips>
<Gain>0</Gain>
<AverageColor>0</AverageColor>
<InstantLoad>false</InstantLoad>
<IsDXT>false</IsDXT>
<FlipY>false</FlipY>
<StandardExport>true</StandardExport>
<UseS3TC>false</UseS3TC>
</Texture>

file:

pic1.xdb

<?xml version="1.0" encoding="UTF-8"?>
<Texture>
  <SrcName href=""/>
  <DestName href="pic1.dds"/>
  <Type>TEXTURE_2D</Type>
  <ConversionType>CONVERT_TRANSPARENT</ConversionType>
  <AddrType>CLAMP</AddrType>
  <Format>TF_8888</Format>
  <Width>240</Width>
  <Height>180</Height>
  <MappingSize>0</MappingSize>
  <NMips>1</NMips>
  <Gain>0</Gain>
  <AverageColor>0</AverageColor>
  <InstantLoad>true</InstantLoad>
  <IsDXT>false</IsDXT>
  <FlipY>false</FlipY>
  <StandardExport>true</StandardExport>
  <UseS3TC>false</UseS3TC>
</Texture>





and in the file:

map.xdb look for or add:

<thumbnailImages>
<Item href="pic1.xdb#xpointer(/Texture)"/>
</thumbnailImages>

(if the line/lines are missing you need to extract the file from the *.h5m file and add the put it back inside)

(you can add as many pictures you like (atleast 10... but you need to make an *.(Texture).xdb, *.xdb for each picture....)

file format for the pictures:
size: 240*180
dds format:
8:8:8:8      ARGB      (32 bit)

size approximately 225kB

good luck everyone!!!

(I'll post my new map shortly (on the ToH forum you may take a look into the file if you need further information...)
____________

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


Promising
Supreme Hero
posted November 28, 2007 04:34 PM

I added your guide to the modding wiki:
http://www.heroesofmightandmagic.com/heroes5/modding_wiki/mapmaking:add_pwl_and_thumbnails
In particular, it allows to post xml code with syntax highlighting, which is really nicer.
Feel free to edit it.

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

Tavern Dweller
Arcane Apprentice
posted December 06, 2007 03:39 PM

Thanks! It really helped!

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


Hired Hero
posted December 04, 2009 10:01 PM

I know this is a very old topic, but I don't understand this... Am I supposed to change something in the red-hightlighted scripts? And how do I create these images with all these different file types?

 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.0355 seconds