Jump to content


Photo

AARRGH - Swap Textures in INI file - SOLVED


  • Please log in to reply
18 replies to this topic

#1 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 January 2007 - 12:15 PM

EDIT: removed the "Oath Breakers on Horse" horde code. if you want to have a look PM me.

Edited by LtdColumbo, 22 February 2007 - 04:13 PM.


#2 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 17 January 2007 - 12:20 PM

In the horde code you reference DeadsCavalry, but the single unit is named deadsmounted.

Change the name of the single object to DeadsCavalry.
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#3 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 January 2007 - 12:27 PM

uuuuuffff thanx!
works perfectly now

i added a picture of my new horde ;)

Attached Thumbnails

  • otahridershorde.gif

Edited by LtdColumbo, 17 January 2007 - 12:35 PM.


#4 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 17 January 2007 - 01:03 PM

Glad to see it's working now :lol:

;) @the CAH, that sword looks bigger than her :lol:
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#5 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 January 2007 - 01:16 PM

;) yes i know. she looks like she has a tree in her hand when she slashes. like : "ufff couldn't you give me a lighter sowrd!" funny :lol:

#6 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 17 January 2007 - 04:13 PM

I can't see it very well on a screenshot of that size, but aren't those oathbreakers bound terribly? Looks totally screwed up to me...

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#7 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 January 2007 - 09:08 PM

Sali DarkLord,

Yes they are a bit buggy. sometimes one of them gets stuck somewhere and the rest moves on. then they stop fighting and stuff

but still they look nice :D

#8 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 17 January 2007 - 09:51 PM

Actually I only meant the optical appearance, not any other bugs (because I can't see those :D ). Maybe you could ask someone to rebind them, then they would look a lot better. If noone does it for you, I can ask someone, maybe that helps :p

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#9 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 January 2007 - 10:22 PM

@ dark Lord: oh, you mean the head and that, well i think the look alltight. if you have some in your mind go ahead and ask. im bombarding people here with questions anyway :D thanx btw..


i have another horde problem: (@dark lord, see? :p )
i made a combo horde from the dark dunedain & dark ranger. it works fine with 22 people in the hord. dou when some of them die, the last 3-4 units get "stuck" and don't move anymore. except when i order them to attack something.

i have these in the combohorde ini:
SplitHorde = SplitResult:AngmarDarkDunedainHorde UnitType:AngmarDarkRanger
SplitHorde = SplitResult:AngmarDarkRangerHorde UnitType:AngmarDarkDunedain

is there a specific place in the ini where this has to stand?

#10 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 18 January 2007 - 10:30 AM

In the HordeTransportContain I believe...although I'm not sure, I never add that code because of how op'ing it is.
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#11 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 19 January 2007 - 12:05 AM

hey, why would you remove your code in the first post? don't wanna share it with the community who made it work in the first place? :lol:
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#12 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 19 January 2007 - 12:17 PM

:p no! of course not

since i want to use this topic for all my coding problems, i though the code took up too much space.
thats why. if anybody wants to see the codes for OATH BREAKERS HORDE ON HORSE, please contact me.
but still, if you want me to i can put it back up!

in case anybody is interestet in CREATE A HERO - INTO NORMAL HERO code for the SHIELDMAIDEN with TOGGLE MOUNTED SPECIAL POWER please send me a private message!


@zimoo i tried to find this HordeTransportContain thing but couldn't. how does it work?
what does "because of how op'ing it is." mean? :)

Edited by LtdColumbo, 19 January 2007 - 12:22 PM.


#13 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 17 February 2007 - 11:06 PM

heys there-

I made some new combohordes for arnor :p have a look at the pics

if anyone is interested in the codes or has any questions, please PM me and i'll upload

greets

Columbo

Attached Thumbnails

  • tower_ranger_porcupine.gif
  • hordes1.gif
  • horde2.gif


#14 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 21 February 2007 - 04:06 PM

Hey there-

I want to give my shieldmaiden cah a new texture-

(im using the -mod command & followed the tutorial to create the new asset file)

right- i have two problems with it:

1. i edited the orginal textures form the textures .big, though im not sure wich one to use:
-there is a TGA file in compiledtextures\hc (hc_chhw_sm_04.tga)
-and a DDS in compiledtextures\ch (chhw_sm_04.dds)

do i have to edit/recolor both of them or what are those two for?

(since in the unit.ini you have to specify wich TGA to use i took the one from hc and called it CH_CHHW_SM_13.tga)

2. i added this code to my hero.ini:
// Shield Maiden Body (Texture Swap)
Behavior = SubObjectsUpgrade Body_SMBOD03	  // Shield Maiden
	TriggeredBy			   = Upgrade_ArnorFaction;Upgrade_SHIM_CHBOD03

UpgradeTexture		   = CHHW_SM_13.tga	0	CHHW_SM_02.tga
UpgradeTexture		   = CHHW_SM_13.tga	0	CHHW_SM_02.tga
UpgradeTexture		   = CHHW_SM_13.tga	0	CHHW_SM_02.tga
UpgradeTexture		   = CHHW_SM_13.tga	0	CHHW_SM_02.tga
RecolorHouse		   = Yes
HideSubObjectsOnRemove = Yes
FadeTimeInSeconds	  = 0.0
End

is this code right or am i doing sth wrong?

thnx

ltdcolumbo


EDIT:
the upgradeTexture tags are the wrong way around! it has to be:
UpgradeTexture		   = CHHW_SM.tga		0	CHHW_SM_13.tga	
UpgradeTexture		   = CHHW_SM_01.tga	0	CHHW_SM_13.tga
UpgradeTexture		   = CHHW_SM_03.tga	0	CHHW_SM_13.tga
UpgradeTexture		   = CHHW_SM_04.tga	0	CHHW_SM_13.tga

Edited by LtdColumbo, 21 February 2007 - 06:17 PM.


#15 zimoo

zimoo

    Ecthelion of the Fountain

  • Project Team
  • 2,009 posts
  • Location:Devon, England
  • Projects:Lurking until the off topic begins...
  •  Guardian of the Books

Posted 21 February 2007 - 05:16 PM

HC = house colour, you won't need to re-do it.
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image
Posted Image

Playing games? Ah, you'll never be a good modder if you get involved in actually playing them!


#16 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 21 February 2007 - 06:08 PM

DUDE! im just too stupid- i made a stupid mistake- look at my previous post for the solution- :p

Edited by LtdColumbo, 21 February 2007 - 06:15 PM.


#17 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 21 February 2007 - 07:28 PM

if you just want to replace a texture, you don't need to code it at all. just put it in your mod with the same name as the original, and the new texture will override the old one
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#18 LtdColumbo

LtdColumbo
  • Members
  • 43 posts
  • Location:Switzerland

Posted 21 February 2007 - 11:04 PM

thanx for the tip! i want to leave the orginal though- its used for Create a Hero too.-

;#############################################################
;#############################################################


i got the shield thing working (more or less) i found the orginal texture names in the bfm2 texturesX.big
it works fine when i add my new textures with the orginal names as 2playgames suggestet earlier.

dough, i only want the recolour for one single hero so i tried around with the hero's ini:

(bfme_nival_shld --> unmounted - shld_02 -->mounted)

1st try:

Behavior = SubObjectsUpgrade CAPGShield_Upgrade02
TriggeredBy			   = Upgrade_ArnorFaction;Upgrade_CAPG_CHS02
ShowSubObjects		   = Shld_02
UpgradeTexture		   = bfme_nival_shld_02.tga	0 bfme_nival_shld_13.tga
UpgradeTexture		   = shld_02.tga		0 	shld_13.tga
HideSubObjectsOnRemove = Yes
	FadeTimeInSeconds	  = 0.0
	
End

2nd try:
Behavior = SubObjectsUpgrade Shld_02
TriggeredBy			   = Upgrade_ArnorFaction;Upgrade_CAPG_CHS02
UpgradeTexture		   = bfme_nival_shld_02.tga	0  bfme_nival_shld_13.tga
UpgradeTexture		   = shld_02.tga	0  shld_13.tga
RecolorHouse		   = No
HideSubObjectsOnRemove = Yes
FadeTimeInSeconds	  = 0.0
	

End

3rd try:
RandomTexture = bfme_nival_shld_13.tga		0	 bfme_nival_shld_02.tga
RandomTexture = shld_13.tga						 0	  shld_02.tga


but im not sure where to put the RandomTexture tags..
can somone help me with this please?
thnx




Solution: ok i found out by browsing the forum topics... (!!!) i guess i post WAY to much :p

put the texture swap into the ModelCondition states:


DefaultModelConditionState
	Model				 = CHHW_SM_U_SKN
	Skeleton			 = CHHW_SM_U_SKL
	ModelAnimationPrefix = CHHW_SM
	PortraitImageName	 = CPShieldMaiden
	ButtonImageName		 = HICAHShieldMaiden
	Texture = bfme_nival_shld_02.tga  bfme_nival_shld_13.tga
	Texture = shld_02.tga  shld_13.tga
End

ltdcolumbo

Edited by LtdColumbo, 22 February 2007 - 04:16 PM.


#19 Guest_kentmaple_*

Guest_kentmaple_*
  • Guests

Posted 03 April 2011 - 08:09 PM

What are the texture file names for the shield maiden CAH? I want to change her hair color/texture, eye color,etc. I Can only find her armor textures, not her face texture.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users