PWL / thumbnailImages complete guide! (H5 TotE) - by Fiur

(Picture when loading and those small thumbnailImages when you select a map to play)

PWL: (Picture when loading)

– Edit by sfidanza: I thought PWL meant “Please Wait, 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: 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 a “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…..

Thumbnail Images

(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.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 (at least 10… but you need to make the .xdb file 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!!!

mapmaking/add_pwl_and_thumbnails.txt · Last modified: 2007/11/28 16:32 (external edit)
Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0