The 3rd Age

The Wars of Arda

The Wars of Arda

A huge expansion for RotWK, adding multiple eras, numerous new factions and a full campaign.

Button for The 3rd AgeButton for RevoraButton for The Rhovanion AllianceButton for The Elven AllianceButton for The Four AgesButton for CNC3.NetButton for Helms Deep : Last HopeButton for Middle Earth CenterButton for BFME Game ReplaysButton for HDR HeadquartersButton for RTS CommunityButton for OpenWar ProjectButton for Victory Engine

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Editing ingame text : CSF & STR

Article for Battle for Middle-earth BFME, Battle for Middle-earth II BFME 2, Battle for Middle-earth II: Rise of the Witch-king ROTWK

Avatar of Hostile

Hostile

Category: Code
Level: Beginner
Created: Monday March 26, 2007 - 13:01
Updated: Saturday June 27, 2009 - 20:53
Views: 2283
Summary: Learn to edit the in-game text

Rating

Staff says

3.0

Members say

2.7

Average

2.8/5.0

5 votes

Page 1 2 3
Converting CSF to STR

This bit will explain how to convert a BFME CSF file into a STR file (which can also be used by BFME), which is much easier to edit.


  • Open your csf file with CSFEditor.
  • Select 'File' / 'Export' / 'to ini'
  • save it somewhere as LOTR.INI (NOT in the lang folder of bfme, stick it on your desktop or something.)
  • next, open that new ini file with a hex editor
  • you can delete this bit:
  •               
    Code
    [Header]
    Language=0

    [Table]

  • then find the replace function
  • you need to replace the following HEX strings in THIS ORDER!!
  •               
    Code
    0D 0A -> 22 0D 0A 45 4E 44 0D 0A 0D 0A.
    3D -> 0D 0A 22
    7C -> 5C 6E

  • Then save the file into your data folder as LOTR.STR.
  • once saved, open it in notepad go to the end of the file and remove the extra:
  •               
    Code

    "
    END

Links / Downloads

 HitsAdded
Hex Editor424April 3, 2007 - 8:35
colorINI504March 30, 2007 - 19:42
CSF Editor653March 30, 2007 - 19:29

Credits

HostileCSF
chedSTR
pabtyfCSF -> STR

Comments

Display order: Newest first | Page: 1, 2

borbak trufa - Friday August 8, 2008 - 13:34

Thanks for this tutorial, it's really useful, I would never have found the ingame text without it. Now I've got one question: Do I have to activate subtitles or do anything other than changing them to get them working? Cos I dunno how to activate subtitles, there ain't an option in BFME settings menu. Or do they activate themselves automatically after being edited?

--------

Thanks for this tutorial, it's really useful, I would never have found the ingame text without it. Now I've got one question: Do I have to activate subtitles or do anything other than changing them to get them working? Cos I dunno how to activate subtitles, there ain't an option in BFME settings menu. Or do they activate themselves automatically after being edited?

Acronos - Thursday February 7, 2008 - 19:55

If I installed patches for BFMEII, do I have to change the text in those .str files too?
Or can I just change lotr.str?

Medicleous - Sunday February 3, 2008 - 4:14

Ok done, that helped. However some hundreds of lines failed to convert properly, I had to go in and manually add the " and END commands. Works now though, thanks.

m@tt (Administrator) - Saturday February 2, 2008 - 4:55

The Hex Editor has a replace function (under the search menu), just fill it in and hit Replace All.

Medicleous - Friday February 1, 2008 - 18:37

I also don't understand this rediculous tutorial. I've spent ten minutes staring at this hex code and don't know where to start. There's heaps of 0D 0As throughout the code, do I replace all of them? If this is the best the 3rd Age community can do then god help us all.

--------

I also don't understand this rediculous tutorial. I've spent ten minutes staring at this hex code and don't know where to start. There's heaps of 0D 0As throughout the code, do I replace all of them? If this is the best the 3rd Age community can do then god help us all.

Maereandil - Monday October 22, 2007 - 4:26

May I add that for some languages for Bfme2 and Rotwk the game still uses CSF files. Maybe you can add that.

Bart (Administrator) - Sunday August 19, 2007 - 4:22

yes

CNCM_BLITZ - Saturday August 18, 2007 - 21:55

I cant understand THIS part.

              
Quote
you need to replace the following HEX strings in THIS ORDER!!

Code
0D 0A -> 22 0D 0A 45 4E 44 0D 0A 0D 0A.
3D -> 0D 0A 22
7C -> 5C 6E "


I dont really know what I am replacing. Is it the part before ->?

Bart (Administrator) - Saturday August 18, 2007 - 19:38

you just need to find the 'find and replace' function, which is of course different depending on what hex editor you use

in Notepad++ it's Ctrl+H

CNCM_BLITZ - Saturday August 18, 2007 - 19:01

STR editing is much easier than CSF. Its a pity we cant understand your tutorial so we can convert it. What does it mean to replace the strings? I found the overwrite string function but don't know what you meant for us to do.

What is all of this?

0D 0A -> 22 0D 0A 45 4E 44 0D 0A 0D 0A.
3D -> 0D 0A 22
7C -> 5C 6E

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
18:38:21