Jump to content


Photo

How to modify the CSF file tutorial


  • Please log in to reply
8 replies to this topic

#1 GothmogtheOrc

GothmogtheOrc

    Ruler of the Morgul Vale

  • Hosted
  • 2,263 posts
  • Location:USA
  • Projects:Kings of the West Mod
  •  T3A Chamber Member - Retired

Posted 08 August 2005 - 07:55 PM

Ok, first off, here is T3A tutorial on CSF editing:

http://the3rdage.net/beginner/csf.php

Now, the game reads which line to show from CommandButton.ini

For example, here is the code from the Isengard HA

CommandButton Command_PurchaseTechnologyIsengardHeavyArmor
	Command    = PLAYER_UPGRADE
	Upgrade    = Upgrade_TechnologyIsengardHeavyArmor 
	Options    = CANCELABLE
	TextLabel 	 = CONTROLBAR:PurchaseTechnologyIsengardHeavyArmor
	ButtonImage 	 = BIArmory_HeavyArmor
	ButtonBorderType	= UPGRADE
	DescriptLabel  = CONTROLBAR:ToolTipPurchaseTechnologyIsengardHeavyArmor
	Radial    = Yes
	InPalantir      = Yes
End

The lines that you will have to edit are these two:

TextLabel	= CONTROLBAR:PurchaseTechnologyIsengardHeavyArmor
DescriptLabel = CONTROLBAR:ToolTipPurchaseTechnologyIsengardHeavyArmor

The "TextLable" code is the name that you'll see when you hover over it

Isengard Heavy Armour Upgrade


And the "DescriptLable" is the description of what the button does

+60% Armor
Purchase Heavy Armor Upgrade
Select a battalion to equip upgrade


Now to edit the strings that are used you must always stay within the format that is used. For example, if I wanted to make a power called "Summon Dragon" I would do this in CommandButton.ini

TextLabel = CONTROLBAR:SummonDragon
DiscriptLabel = CONTROLBAR:ToolTipSummonDragon


Now I'll show you how to add new strings in the CSF file itself...and I'll come back to my Summon Dragon power in a minute.

Hopefully you read that tutorial that Hostile wrote and have downloaded the CSF file reader. Next, open up the CSF file and go under the "Action" tab at the top and click on "InsertString". That will bring up a new window that will have two catagories..."Name" and "Value".

For the "Name", I will put the exact same thing as the "TextLabel"... "CONTROLBAR:SummonDragon"

Then in the "Value" part I will type in "Summon Dragon"

The way these work is that the game looks at CommandButton.ini and sees that it needs to read a string called "CONTROLBAR:SummonDragon" so it goes into the lotr.csf file and looks up "CONTROLBAR:SummonDragon" then it looks to see what Text to display onscreen (aka the "Value") which is "Summon Dragon". So, when I hover over the button it says in-game "Summon Dragon". Make sense so far?

Now to edit the DiscriptLabel you have to do basically the same thing.

Create a new string called "CONTROLBAR:ToolTipSummonDragon" and under the "Value" put what ever explanation of the power you want:

Summons a fire-breathing Dragon for 60 seconds to come to your aid


That should do it... If you look around at the existing strings you'll see what I mean, and it will help you figure it out.

-GothmogtheOrc

Nine%20rings.jpg
Click on my Sig to go to my BFME Modding site where you can download my mods.
KotW%20Morgul%20In-game.jpg
Kings of the West Mod Leader
*Retired. PM me if you need to get a hold of me as I'll get an email notification and should reply within a day or so*


#2 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 08 August 2005 - 11:35 PM

Could also use the str format to replace the CSF file. So much easier to edit and such. Less crashes and mistakes...

#3 GothmogtheOrc

GothmogtheOrc

    Ruler of the Morgul Vale

  • Hosted
  • 2,263 posts
  • Location:USA
  • Projects:Kings of the West Mod
  •  T3A Chamber Member - Retired

Posted 09 August 2005 - 04:27 AM

Very true...but I don't yet know how to do it :) so its a negative on that one.

-GothmogtheOrc

Nine%20rings.jpg
Click on my Sig to go to my BFME Modding site where you can download my mods.
KotW%20Morgul%20In-game.jpg
Kings of the West Mod Leader
*Retired. PM me if you need to get a hold of me as I'll get an email notification and should reply within a day or so*


#4 {IP}Gil-Galad

{IP}Gil-Galad

    ClickerMonkey

  • Hosted
  • 1,122 posts
  • Location:Pennsylvannia, USA
  • Projects:Too many to name.
  •  T3A Team Chamber Member

Posted 09 August 2005 - 05:14 AM

CONTROLBAR:ToolTipSummonDragon
"Summons a fire-breathing Dragon for 60 seconds to come to your aid"
END

thats all for str files its easy :)

#5 GothmogtheOrc

GothmogtheOrc

    Ruler of the Morgul Vale

  • Hosted
  • 2,263 posts
  • Location:USA
  • Projects:Kings of the West Mod
  •  T3A Chamber Member - Retired

Posted 09 August 2005 - 07:13 AM

really? wow... where do I put that though? In "lang\english"? Do I need to call it anything special?

Thanks
-GothmogtheOrc

Nine%20rings.jpg
Click on my Sig to go to my BFME Modding site where you can download my mods.
KotW%20Morgul%20In-game.jpg
Kings of the West Mod Leader
*Retired. PM me if you need to get a hold of me as I'll get an email notification and should reply within a day or so*


#6 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 09 August 2005 - 11:42 AM

in data\. call it lotr.str :)

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#7 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 09 August 2005 - 12:29 PM

There's a better thread about this, do a search username pabtyf. That way it links to a raw str file you can download.

#8 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 09 August 2005 - 12:33 PM

lol, I really wish I had known about the benifits of str over csf when I started modding... I now have over 100 csf entries to transfer over to str...

Posted Image
Posted Image


#9 Hostile

Hostile

    Benefitting Humanity Simply by Showing Up!

  • Veterans
  • 9,551 posts
  • Location:Washington DC
  •  T3A Founder
  • Division:Revora
  • Job:Global Administrator
  • Donated
  • Association

Posted 09 August 2005 - 12:38 PM

here it is.

So open your csf file in csf editor and save as a string file.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users