ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

CSF: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Rewrite
No edit summary
Line 1: Line 1:
{{HorizontalBar|[[Ra2.csf]] redirects here. If the part about the file itself grows large enough, move it there.}}
CSF files contain all the ingame texts of RA2 (ra2.csf) and YR (ra2md.csf). They can be edited either with [[XCC String Table Editor]] (by [[Olaf van der Spek]]) or with [[RA2StrEdit]] (by [[TheMatze]]).
CSF files contain all the ingame texts of RA2 (ra2.csf) and YR (ra2md.csf). They can be edited either with [[XCC String Table Editor]] (by [[Olaf van der Spek]]) or with [[RA2StrEdit]] (by [[TheMatze]]).


== Editing CSF files in XCC String Table Editor ==
==Editing CSF files in XCC String Table Editor==
 
[[Image:Xcc string editor1.gif|thumb|170px|Select the game]]
[[Image:Xcc string editor2.gif|thumb|170px|Type in the string name]]
[[Image:Xcc string editor3.gif|thumb|170px|Add the string content]]
Let's say you are following a tutorial for adding a new unit... and the tutorial tells you to "add an entry {{Tt|Name:NewTank}} to the CSF file and set it to 'My New Tank'".
Let's say you are following a tutorial for adding a new unit... and the tutorial tells you to "add an entry {{Tt|Name:NewTank}} to the CSF file and set it to 'My New Tank'".


Line 20: Line 25:


There you go, now your tank will be named "My New Tank" when you move your mouse over it. (This doesn't effect the cameo.)
There you go, now your tank will be named "My New Tank" when you move your mouse over it. (This doesn't effect the cameo.)
{{clr}}
==Editing CSF files in RA2StrEdit==
{| align="right"
|[[Image:Ra2stredit1.gif |thumb|none|170px|Open the file]]
|[[Image:Ra2stredit2.gif |thumb|none|170px|The open file]]
|-
|[[Image:Ra2stredit3.gif |thumb|none|170px|Insert a string]]
|[[Image:Ra2stredit4.gif |thumb|none|170px|Enter its name]]
|-
|[[Image:Ra2stredit5.gif |thumb|none|170px|Enter its content]]
|[[Image:Ra2stredit6.gif |thumb|none|170px|Hit "Save"]]
|-
|
|[[Image:Ra2stredit7.gif |thumb|none|170px|Confirm the flags]]
|-
|}
Same thing as above, for RA2StrEdit.
*Open [[RA2StrEdit]].
*File > Open > ''browse to the folder where you left your [[ra2.csf|ra2(md).csf]], select it, and click "open".
*Edit > Insert string.
*In the "String ID" field, enter your string's ID ({{tt|Name:NewTank}} for this example).
*Hit "OK".
*Now you have to scroll the string list on the left down until you see your newly added string; you can press it's first letter to jump near it (so, in this example, select any string, press "n", and scroll down until you see {{tt|Name:NewTank}}).
*Make sure you have your string selected.
*Enter your tank's name in the big box labeled "Content" to the right ("{{tt|My New Tank}}", in this example).
*File > Save.
*I have never heard of a case where the flags were set wrong, so unless you created a new .csf, just hit "OK".
**If you ''did'' create a new .csf, make sure the language flag is set correctly.


Once you hit OK, your file is saved. You're done.
{{clr}}
[[Category:General_Editing_Information]]
[[Category:General_Editing_Information]]
[[Category:Tutorials]]
[[Category:Tutorials]]

Revision as of 17:37, 25 June 2006

Ra2.csf redirects here. If the part about the file itself grows large enough, move it there.



CSF files contain all the ingame texts of RA2 (ra2.csf) and YR (ra2md.csf). They can be edited either with XCC String Table Editor (by Olaf van der Spek) or with RA2StrEdit (by TheMatze).

Editing CSF files in XCC String Table Editor

Select the game
Type in the string name
Add the string content

Let's say you are following a tutorial for adding a new unit... and the tutorial tells you to "add an entry Name:NewTank to the CSF file and set it to 'My New Tank'".

  • Open XCC Mixer.
  • Launch > String Table Editor > select the game.
  • In the left panel, select the "NAME" section.
    • You can actually select any section you wish, it will still get saved properly.
  • Click "Insert" at the bottom.
  • Type in Name:NewTank and hit Enter.
    • These strings are case-insensitive, you can type in naME:NEWTANk and it would still work.
  • Double click on the new entry.
    • Alternatively, click on it and hit "Edit" at the bottom, your choice.
  • Type in My New Tank in the big box, and leave the bottom box empty.
    • These strings are case-sensitive, and the text you type in here will be displayed in the same case as you entered it.
  • Hit "OK".
  • Hit "OK" at the bottom.

There you go, now your tank will be named "My New Tank" when you move your mouse over it. (This doesn't effect the cameo.)

Editing CSF files in RA2StrEdit

Open the file
The open file
Insert a string
Enter its name
Enter its content
Hit "Save"
Confirm the flags

Same thing as above, for RA2StrEdit.

  • Open RA2StrEdit.
  • File > Open > browse to the folder where you left your ra2(md).csf, select it, and click "open".
  • Edit > Insert string.
  • In the "String ID" field, enter your string's ID (Name:NewTank for this example).
  • Hit "OK".
  • Now you have to scroll the string list on the left down until you see your newly added string; you can press it's first letter to jump near it (so, in this example, select any string, press "n", and scroll down until you see Name:NewTank).
  • Make sure you have your string selected.
  • Enter your tank's name in the big box labeled "Content" to the right ("My New Tank", in this example).
  • File > Save.
  • I have never heard of a case where the flags were set wrong, so unless you created a new .csf, just hit "OK".
    • If you did create a new .csf, make sure the language flag is set correctly.

Once you hit OK, your file is saved. You're done.