Spaceboy
  • Spaceboy
  • 50.25% (Neutral)
  • Captain Topic Starter
13 years ago
How i can add a new Picture like factions symbol?

Im using bibbers expansion

So im not sure what i have to do. I have a folder

MyMod/Art/Images/Pic.tga

correct?

how i have to include it i add this in my mod.xml



what does OutputFormat and GenerateMipMaps?

is it the correct way?


Sponsor
CommieDog
13 years ago
First of all, the File attribute should probably be "DATA:Art/Images/Pic.tga".

what does OutputFormat and GenerateMipMaps?

Originally Posted by: Spaceboy 



OutputFormat specifies the iage depth, or how many bits to use per pixel.
GenerateMipMaps specifies whether to generate mip maps or not, which are used in rendering textures. It should be set to false for images that are not rendered as textures.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Spaceboy
  • Spaceboy
  • 50.25% (Neutral)
  • Captain Topic Starter
13 years ago
first pic.tga ist just an example the corret name ist tib.tga but that isnt necessary.

this is my playertemplate code

FactionIconImageName="Tib"

were can i set my tga as new picture for the statistics screen?

after changing the attribute i got this error



Error.png

Click to View Image44 View(s)

CommieDog
13 years ago
I think you're missing a PackedTextureImage element. The PackedTextureImage element references the Texture element, then FactionIconImageName references a PackedTextureImage. Here is an example:
	<PackedTextureImage id="Portrait_AlliedHarbingerGunship" Texture="Portrait_AlliedHarbingerGunship" Rotated="false">
		<Dimensions x="128" y="128"/>
		<Coords x="0" y="0"/>
		<TextureDimensions x="128" y="128"/>
	</PackedTextureImage>

As for your error, it looks like your texture path is wrong.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Spaceboy
  • Spaceboy
  • 50.25% (Neutral)
  • Captain Topic Starter
13 years ago
thanks its working , the part error was the missing "Faction/Art"

were are normaly the PackedtextureImage elements i put i over the new faction in playertemplate.xml its working but looks strange.

I got an error but i doenst has anithing to do with the picture it appares in loadscreen, the games crashes, im not sure but i think a superweapon or the eva is the reason.

Edit:

this must be the reason for the error but i dont undersant it

id="NewSpecialPowerNanoSwarmHive"
ReloadTime="20s"
DisplayName="NAME:SuperweaponTimerNanoswarm"
TargetType="LOCATION"
InitiateAtLocationSound="JAP_NanoSwarm_Fire"
EvaEventToPlayWhenSelectingTarget="SelectSpecialPowerTarget"
EvaEventToPlayOnInitiateEnemy="WarnNanoswarmActivated"
RadiusCursorRadius="200"
TimerImage="Button_PlayerPower_Nanoswarm"
ForbiddenObjectRange="200"
Flags="NO_FORBIDDEN_OBJECTS HAS_PUBLIC_TIMER IS_PLAYER_POWER FOGGED_SHROUDED_CELLS_OK WATER_OK IGNORE_MAP_EXTENTS SHARED_SYNC">
Rule="ANY"
Exclude="STRUCTURE INFANTRY VEHICLE">
NanoSwarmHiveEffect



NewSpecialPowerNanoSwarmHive exis
CommieDog
13 years ago

were are normaly the PackedtextureImage elements i put i over the new faction in playertemplate.xml its working but looks strange.

Originally Posted by: Spaceboy 


RA3's sample mod has all the Texture and PackedTextureImage elements declared in a file in \Art\Images.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Spaceboy
  • Spaceboy
  • 50.25% (Neutral)
  • Captain Topic Starter
13 years ago