:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sun May 28, 2017 5:20 am
All times are UTC + 0
 Forum index » Modding Central » Generals Editing Forum » Tutorials Warehouse
Working with the Generals.str file
Moderators: Generals Moderators, Global Moderators
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
Author Message
DaFool
Defense Minister


Joined: 07 Nov 2006

PostPosted: Tue Jun 30, 2009 2:26 am    Post subject:   Working with the Generals.str file
Subject description: for Zero Hour
Reply with quote

It’s been a while since I have written a tutorial, but it never hurts to write one, right?  This tutorial deals with working with the Generals.str file, which makes managing strings a whole lot easier.  I would like to thank JJ_ for turning me on to this file type. and providing the link to the forum where it originals discusses this file.

Step 1, the Set Up
This is a fairly simple process and no harder than anything else you have done while modding Generals.  Step one is to download the Generals.str file here: http://www.ppmsite.com/downloads/Generals.str.zip.  You can also visit the forum to see the original thread containing the download here: http://forum.falloutstudios.org/?showtopic=9494.  Thanks to Jordan for posting (and creating as far as I know) this.  Now, once you have this file, simply put it in your Data Directory.  Now, open it up in notepad and you’re ready to really get started!

Step 2, Editing and Creation.

Each string entry is pretty much uniform and follows this pattern:

Code:
TYPE:Name ;entry name for organization purposes
“content” ;what appears in-game goes here
END ;This ends the entry


You can pretty much name the entry anything you want to other than that of an existing entry.  The way they set theirs up was for organizational purposes.  In the next line, you must begin and end with quotation marks.  This lets the game when to start and stop reading, and the final line marks the end of the entry, just like virtually any other entry in generals.

Special Cases with Content

From time to time you might want to do something special with your content; like skip a line or include quotations marks within the quotation marks.  What you do is you use the ‘\’ (slash, and not the one by the question mark, the one above the enter sign Wink) followed by the symbol.  \n tells the game to skip a line and \” includes the quotation marks.  If you want a letter within the name of the unit to be it’s hotkey; use the & symbol.  So, for a list:
\n… ….skip a line
\” content\”… …include quotation marks
&… …maker the following letter the hotkey
\d… …I am not really sure, but it has to do something with a variable, like power and money
There are also %ls, %hs, %s

Finis

This wasn’t that long, but once you have created your entries, you can simply reference the name of the entry whoever it is called for, and everything should work out just fine ingame.  For example, CommandButtons have two tags that can references strings; the ‘TextLabel’ and the ‘DescriptLabel’.  Well, happy modding!


NOTE:  I am going to assume that the above applies for all .str files, such as the ones that accompany maps.

Key Words: #Tutorials #Modding #Generals #ZeroHour 

_________________

The needs of the many are outweighed by the needs of Yuri.

Back to top
View user's profile Send private message
Frontlines
Missile Trooper


Joined: 23 Nov 2009
Location: Gonzales, CA

PostPosted: Fri Nov 04, 2011 7:05 am    Post subject: Reply with quote

Link is broken...

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FurryQueen
General


Joined: 24 Jul 2010

PostPosted: Fri Nov 04, 2011 10:00 am    Post subject: Reply with quote

Thread is also two years old.
_________________
NZ.org | NZ Gaming | RP
Skype: doctordestiny891
MSN: genkosygin@hotmail.com
Steam

Back to top
View user's profile Send private message
Frontlines
Missile Trooper


Joined: 23 Nov 2009
Location: Gonzales, CA

PostPosted: Fri Nov 04, 2011 3:09 pm    Post subject: Reply with quote

Yes.. well I found the link... just searched for the website and grabbed it off downloads.

Plus it's a tutorial, so posting information such as dead link would be helpful to those who may or may not view this tutorial later.


For those interested in the .str File.

http://www.falloutstudios.org/site/index.php?download=9

If only someone could edit the tutorial and update the link... :3

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Banshee
Supreme Banshee


Joined: 15 Aug 2002
Location: Brazil

PostPosted: Fri Nov 04, 2011 3:50 pm    Post subject: Reply with quote

Tutorial has been updated.

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Frontlines
Missile Trooper


Joined: 23 Nov 2009
Location: Gonzales, CA

PostPosted: Fri Nov 04, 2011 3:54 pm    Post subject: Reply with quote

Thanks Banshee ^

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Fri Nov 04, 2011 5:49 pm    Post subject: Reply with quote

Fallout was forced to change website extension (from .com to .org), so that explains the broken link. I'll check if other tutorials have broken links.
_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
NimoStar
Pyro Sniper


Joined: 07 Nov 2012
Location: Buenos Aires

PostPosted: Tue May 09, 2017 5:40 am    Post subject: Reply with quote

Doesn't work again. ANd I can't find any other working way to edit strings... (the program for this purpose crashes)
_________________

Back to top
View user's profile Send private message Visit poster's website
Banshee
Supreme Banshee


Joined: 15 Aug 2002
Location: Brazil

PostPosted: Tue May 09, 2017 6:23 am    Post subject: Reply with quote

You what? How come notepad crashes? It is just umbelievable, with all due respect.

Get NotePad++ to edit it. It's better than the original NotePad.

By the way, I'm updating the link in the tutorial.

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue May 09, 2017 6:42 am    Post subject: Reply with quote

Banshee wrote:
You what? How come notepad crashes?

LMAO!
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Tue May 09, 2017 8:29 am    Post subject: Reply with quote

It should be noted that str file don't support unicode so are only useful for languages which use the windows 1252 codepage. as the game does a direct value mapping from a single byte to a single unicode code point.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Generals Editing Forum » Tutorials Warehouse
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.7639s ][ Queries: 12 (0.6436s) ][ Debug on ]