Changing Text Strings |
||
Two steps to changing out a text string: finding the relevant string in one of the game's locale files, and then editing it. You can also define new text strings if you've added new sections, guitars, chart authors, and the like to your disc. Locale filesGH2 looks in DTAs that are designated as locale files for text strings. In the vanilla game, all of the game's strings were in a single file,
Of course, what you see in the name is what'll be in the file. The only less obvious one is Editing stringsA text string looks like this:
Type literally anything you want in between the quotes. Anything. For many screens, the game will intelligently resize the text to fit in a "bounding box" on-screen. Still, long text gets really small, so keep things around the same length as the original string. Rebuild your ARK and rebuild your disc. The text will be changed to whatever you want it to be. If you'd like to break to a new line for some reason (like in the career finale screens), use
Adding stringsYou can also add new strings by adding a new array in a locale file. If you're not familiar with arrays, go ahead and read my introduction to Data Array, but in short, arrays use parentheses and have items separated by a space each. The first item in a locale string is the shortname, or the string name the game will replace with the string itself, and the second item is the string literal in quotes. Without a string to go with the shortname, the game will either display the shortname literally (which is ugly) or outright crash for certain strings (which is bad). So, if in my custom chart, I had a section name called This is as easy as opening up
And now, in-game: Clear as mud? A warning on text encodingsOne thing you should be aware of is that the text encoding of the locale file very much matters. Text editors these days like to save files as UTF-8 when you're not looking (as they should), but GH2 wants to read its strings in ANSI format. Most of the time, you won't notice a difference, but if you start getting accented characters appearing wrong (like the infamous Matley Crae glitch), your locale file has the wrong character encoding. Convert it to ANSI in your text editor, however yours does that. (Why does this happen? In short, text encodings are gigantic tables that translate strings of bits into recognizable characters to our eyes. For the most basic characters, A-Z, 0-9, text encodings all agree and match one another. For fancier characters, especially symbols and accented letters, they very much do not.) Adding new locale filesYou can define new locale scripts for further granularity. Simply make a new DTA in Be careful—if you list a locale file that doesn't actually exist in the ARK, debug won't boot and you'll get TLB misses in PCSX2 with the retail executable. (This likely means your disc won't boot on a real PS2 either.) |
Fellow Somnolians and Projects |
||
Friends, Sites I Like, Bands, etc. |
||
NOFI | LOFI This site powered by AutoSite technology. |