Jump to content


Photo

Problem with dds files

dds purple in game

Best Answer Rider of Rohan, 23 September 2017 - 04:35 PM

https://www.the3rdag...tem-250?addview
When compiling for bfme 2, rename compiledtextures to just textures, asset 2 times and then swap back to compiledtextures and run the game.

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 CragLord

CragLord
  • Members
  • 12 posts

Posted 22 September 2017 - 09:18 PM

Hello people!

 

I have really strange problem with dds files.

Few days ago, I started with some trivial modding, and already got some problems I can't solve...

I installed gimp and photoshop (both with dds plugins) in order to make some dds files.

Problem is no matter how I exported them as dds, they are purple in game.

Example, was doing some new graphics for spell_powers/hero_abilities radial cursor in game and after I exported finished picture as dds, it is always purple square in game. (for example look of summoning units cursor or some other positioning aoe spell).

 

I simply can't find step I am missing in this process...

 

Also noticed one more  thing, if I load some original dds from game (for example SCCRallyCall radial cursor) and then modify it, export under same name ( using compresion dtx5 and generation of minimaps) and used it it works in game. If during exporting process change name from original, same problem, it becomes purple square in game.

 

Presume it is some trivial thing I am missing because of lack of experience...

Some advices are more then welcome. :)

 

 

 

 


Final-Signature-Smaller.png


#2 MattTheLegoman

MattTheLegoman

    LEGO Knight of Minas Ithil

  • T3A Staff
  • 3,669 posts
  • Location:Tomorrow, when the War began
  • Projects:Mapping this Middle-earth
  •  Mapper
  • Division:BFME
  • Job:T3A Staff

Posted 23 September 2017 - 05:50 AM

Try using tga files instead. If they are pink then something else is wrong - like your asset.


Remember that all worlds draw to an end and that noble death is a treasure which no one is too poor to buy. - C.S. Lewis

There will come a time when you believe everything is finished. That will be the beginning. - Louis L'Amour

What will matter then will be people. If relationships will matter most then, shouldn't they matter most now? - Max Lucado


#3 CragLord

CragLord
  • Members
  • 12 posts

Posted 23 September 2017 - 10:32 AM

Same problem with .tga, simply new texture is completely purple (purple square when I try to use rallying call spellpower).

Only part of code I changed is name of texture in radiuscursortemplate in ingameui.ini

RadiusCursorTemplate = RallyRadiusCursor
		Texture        = scctest ;SCCRally
		Style          = SHADOW_ALPHA_DECAL
		OpacityMin     = 20%
		OpacityMax     = 60%
		OpacityThrobTime  = 1500
		Color          = R:255 G:255 B:255 A:128
		OnlyVisibleToOwningPlayer = Yes
	End

scctest.dds is placed in art/compiledtextures/sc folder. Is there anything else in code I should change or add?

 

Also any tip for process of making dds?

I simply make some test dds file from transparent background with some random marks, and then exported it as dds with DTX5 compression. Am I missing something?

 

 


Final-Signature-Smaller.png


#4 Dúnedain76

Dúnedain76

    Misty Mountain Hop

  • Division Admins
  • 451 posts
  •  Mapper, Artist, Coder
  • Division:BFME
  • Job:The3rdAge Admin

Posted 23 September 2017 - 03:04 PM

It has to do with you not compiling a new asset.dat. The compiler should be included in the BFME2 sdk if I remember correct.

#5 Rider of Rohan

Rider of Rohan

    The Lazy Modder

  • Division Leaders
  • 1,555 posts
  • Location:The Caribbean
  • Projects:Age of the Ring and the HD Editions
  •  Mathijs' Bug fix expert
  • Division:BFME
  • Job:T3A Leader

Posted 23 September 2017 - 04:35 PM   Best Answer

https://www.the3rdag...tem-250?addview
When compiling for bfme 2, rename compiledtextures to just textures, asset 2 times and then swap back to compiledtextures and run the game.


99dxc486ltde132zg.jpgh5je9noaofg3o26zg.jpg

No parent should have to bury their child - King Theoden


#6 CragLord

CragLord
  • Members
  • 12 posts

Posted 23 September 2017 - 06:35 PM

That worked perfectly, big thanks guys!!! :)
PS. (Or just to drag compiledtextures folder into textures folder and then to run asset 2 times xD)


Edited by CragLord, 05 March 2018 - 07:04 PM.

Final-Signature-Smaller.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users