←  C&C Generals & Zero Hour Editing

Fallout Studios Forums

»

[Resources] Generals.str file - EDIT: Revi...

Jordan's Photo Jordan 08 Dec 2006

Just found this in one of my folders, and decided to make it public, since I couldn't find a download location for it anywhere else.

The generals.str file is a much better change from the stone age of .csf file editing.
--------------------------------
Great things about .str files:

1. Can be edited in notepad or similar programs

2. Can be used inside a .big file, instead of manually copying a generals.csf file into the Data/English directory.

3. It is a lot easier to edit. You don't have to bother with the file/add string functions in the CSF Editor.

---------
Download here.
The Generals.str file goes into your Command & Conquer Generals Zero Hour\Data folder.

Special Notes
----------------
The most recent update fixed the quotation marks problem, which had caused the descriptions of the generals in the skirmish menu to not appear correctly.

To Use:
---------
The string's title is the first line.
The string's text is the second line, ALWAYS surrounded by quotation marks. It's what shows up in-game.
END on the third line closes that particular string entry. Don't forget it.

To enter operators, such as quotation marks, put a backslash (\) in front of them. Otherwise it will cause problems, such as closing a string early, or breaking numerous strings.

To drop down a line, use the command \n separated from any other text with a space.

If the game and/or worldbuilder refuses to start without generating an error, check the very last entry of the .str file. You may have forgotten to enter the last END at the bottom of that particular string, which causes that strange problem.

-Jordan
Edited by Bob, 12 October 2013 - 18:01.
Quote

Futschki's Photo Futschki 09 Dec 2006

Thanks A Lot :P
Quote

Kris's Photo Kris 09 Dec 2006

sweet :P but now its too late :D i have so many string files to remake just to use this in my mod :D
Quote

Jordan's Photo Jordan 10 Dec 2006

I found a major bug in the original generals.str file.

Because the nicknames for the generals had quotes around them, it caused script errors where only part of it was visible, since quotation marks end a script.

For example:

This: General Malcolm "Ace" Granger...

Became: General Malcolm

A quick fix solved this problem, where you had to put a backslash in front of those quotation marks to keep them from closing the script.

Download the attachment above.
Edited by Jordan, 08 April 2008 - 20:53.
Quote

Elezzzark's Photo Elezzzark 10 Dec 2006

Yes..... Thanks
Quote

Zeke's Photo Zeke 15 Jan 2007

how do you use it?
Quote

The_Hunter's Photo The_Hunter 15 Jan 2007

place it on the ZH data folder and edit it to your own desire.
Quote

E.V.E.'s Photo E.V.E. 15 Jan 2007

Very Nice! Thanks alot.

- E.V.E.
Quote

The_Hunter's Photo The_Hunter 15 Jan 2007

an other thing that's nice to know about this btw is that you can use your own STR file online without getting any errors.

so basicly you can make your own hotkeys for buttons and units if you want to :P
Quote

CodeCat's Photo CodeCat 15 Jan 2007

Wait, so the game doesn't check for the STR file when it sees if your versions are compatible?
Quote

pirate's Photo pirate 20 Jan 2008

Necro ftw..... :lol:

wtf is this....

http://img250.images...66/fatalcl6.jpg

any help is apreciated
Quote

Waris's Photo Waris 20 Jan 2008

EPIC FAIL
Quote

Whitey's Photo Whitey 20 Jan 2008

I fucking lol'd

Looks like you jacked up your STR file.
Quote

pirate's Photo pirate 20 Jan 2008

I figured it out already... :lol:

I forgot the END on the end :P
Quote

Mere_Mortal's Photo Mere_Mortal 28 Jan 2008

Err, in respect of a year-old post...if you need to use operators in the text, I think a single backslash before the character should suffice.

Example...

"General Malcolm \"Ace\" Granger"
Quote

Jordan's Photo Jordan 08 Apr 2008

UPDATED

I really should've caught that sooner.

Sorry for any inconviences.
Quote

Mr Doom's Photo Mr Doom 02 Nov 2008

Thanks. Now use in my mod.
But why ModDB cancelled my mod? all is right :) 8|
Quote

dlpcruzer's Photo dlpcruzer 08 Nov 2008

Jordan,

Just want to say THANK YOU for sharing the string file.
It works GREAT. A lot of tedious work went into creating this.

None of the CSF editors I tried worked properly.
One editor cut off strngs, another changed strings around
and caused the game to crash when loading.
I have spent hours searching for and downloading CSF editors that failed the tests.

Now I can easily update the control bars and tooltips for tbe
ICBM Silo, and Tomahawk Storm, which I finally got to work.
I used the map.ni file from beng's TomahawkStorm map, but created new
objects instead of using other objects in the game. Now both work great on all maps.

I can also add the things EA left out for the Cruise Missile and get it working.

Anyways, mostly wanted to say thanks for doing this work and making it availble to the world.
Quote

cccdfern's Photo cccdfern 17 Sep 2009

Sorry for a major necro, but it doesn't work for me.

 OBJECT:LAZR_AmericaPopupPatriotBattery
"Popup Laser"
END

CONTROLBAR:ConstructLAZR_AmericaPopupPatriotBattery
"Popup Laser"
END

CONTROLBAR:ToolTipUSABuildPatriotBattery
"Laser from the Earth"
END



Thats right isn't it?
Quote

BeefJeRKy's Photo BeefJeRKy 18 Sep 2009

Heads up, a thread is stickied so that necro isn't an issue.
Quote

cccdfern's Photo cccdfern 18 Sep 2009

delete here
Edited by CCCD, 19 December 2009 - 00:05.
Quote

GuardianTempest's Photo GuardianTempest 19 Jul 2010

Can you use semicolons (:P to make comments there? I'm making a line to distinguish the stock from my pile of strings.

More like a yarnball.
Quote

Zeke's Photo Zeke 19 Jul 2010

you can't use comments in the .str IIRC
Quote

R3ven's Photo R3ven 19 Jul 2010

You can, but it has to be on an empty line and has to start with // which is how you comment an STR file.
Quote

GuardianTempest's Photo GuardianTempest 19 Jul 2010

K I'm trying it.
Quote