Jump to content


Photo

Horde Texture Change in ini file

texture horde

Best Answer Ridder Geel, 15 March 2014 - 12:07 AM

Texture = original.tga new.tga

^thats what you need if you wanted to change the texture

Go to the full post


  • Please log in to reply
6 replies to this topic

#1 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 14 March 2014 - 06:19 PM

Hello, I'm adding the "toggle weapon" feature to the Elven Rivendell Lancers.

When switching to the bow I'm using the Rohirrim model, so I see my Lancers changing into Rohirrim when playing.

There must be a way to change the texture for the Rohirrim model, but I can't find it...

 

I tried adding "Texture = myfile.tga" to the ModelConditionState, but it doesn't work...game loads the default rohirrim texture when switching to bow.

How can I do?



#2 Lusta

Lusta
  • Members
  • 98 posts
  • Location:Hungary

Posted 14 March 2014 - 06:36 PM

Hello, please copy the code so I can see how do you want to solve the issue.


(Lusta means Lazy)

my mod beta is linked here


#3 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 14 March 2014 - 11:14 PM

Here's the portion of elvenrivendelllancer.ini:

; Lance.
DefaultModelConditionState
	Model	= EURivenLan_SKN
End

ModelConditionState = SWAPPING_TO_WEAPONSET_1 WEAPONSET_TOGGLE_1 ;swapping to bow
	Model	= EURivenLan_SKN
End
		
;-----Bow-----
ModelConditionState = SWAPPING_TO_WEAPONSET_1		; swapping to lance
	Model		    = RURhrmArch_SKN
	Texture		    = EURivenLan01.tga
	Turret              = Turret01
	TurretPitch	    = Barrel01
	WeaponLaunchBone    = SECONDARY FIREAROWTIP
End

ModelConditionState = WEAPONSET_TOGGLE_1
	Model		    = RURhrmArch_SKN
	Texture		    = EURivenLan01.tga
	Turret              = Turret01
	TurretPitch	    = Barrel01
	WeaponLaunchBone    = SECONDARY FIREAROWTIP
End



#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 15 March 2014 - 12:07 AM   Best Answer

Texture = original.tga new.tga

^thats what you need if you wanted to change the texture


Ridder Geel

#5 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 16 March 2014 - 04:08 PM

Thank you very much Master Yelloh, but it doesn't work.  :sad2:

When Lancers grab their bows and its model get switched to Rohirrim one, it still doesn't change skin...



#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 16 March 2014 - 08:09 PM

So what does the code look like now?

Edited by Ridder Geel, 16 March 2014 - 08:10 PM.

Ridder Geel

#7 _mclovin

_mclovin
  • Members
  • 65 posts
  • Location:Italy

Posted 16 March 2014 - 10:40 PM

Ok, now the texture changes. The problem was that rohirrim have got different textures and I was declaring a wrong one as old.

Thank you!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users