Dead Rising Wiki
Advertisement
Modifying PC Dead Rising 2


Tutorials


List of what each file does

All game items (items.txt)
  Item animations (PyroEffect)
    Bigfile.xml
All game text
All missions and cases (missions.txt)
  Times of all missions
  Mission breakdown
All major packed files (big files)
  datafile.big
  Character models (npcs.big)
Sgraph - animations
HUD (game player's interface)
Camera.txt (camera view)
Lighting
Zombie models
Game rules (frontend)
Cutscenes (cinematics.big)
Environment
  Royal Flush Plaza
  Safe House
  Americana Casino
  Fortune City Arena
Collision - controls solid surfaces
Excel coordinates of all areas


Tools


Other

v · d · e

By modifying various files, it is possible to change the text that is displayed in game.

Language files

data/frontend/str_en.bcs

Many of the files which contain game text are stored as binary/hexadecimal files, and a Hex Editor is highly recommended if you intend to go about editing these files.

For the purposes of this guide, we'll be changing the file 'data/frontend/str_en.bcs', which can be found in your Dead Rising 2 install directory. This file contains the majority of the text encountered in the game with the language set to English, the other 'str_XX.bcs' files in this directory contain the text for other languages. The same principles here should be applicable across all language files.

Important Information[]

  • All strings (words, sentences and the like) are helpfully stored in plain text, so no awkward mapping needs to be done here.
  • All strings are NULL separated. This means that every identifiable piece of text that game uses must end with the NULL character, 00 (in hex).

Mappings that you Do Need[]

  • Line breaks are stored simply as ASCII character 10, Line Feed. This is 0A in Hex.
    • Line breaks do not require a Carriage Return character to function correctly.

How to Edit a File Using a Hex Editor[]

  1. Read the manual that came with your editor!
  2. If that hasn't made you go cross-eyed, press on.

How to Edit Dead Rising 2's Text[]

This section assumes some familiarity with your Hex Editor, and terminology frequently used in Hex Editing.

Before you do anything else, make a backup of any file you intend to edit!

Hex editor start game

"Start Game" in notepad++ with TIPS above

When you first open 'str_en.bcs' in your Hex Editor, not much is immediately apparent. But if you scroll down to address 0x0000F2F6, you'll find one of the options found on the main menu, "START GAME". A short way above, you'll also see some of the "Tips" that get displayed on the Loading screens.

Easiest: How to edit Dead Rising 2 without a hex editor[]

You can edit the same amount of characters in notepad++ without having to use a hex editor.

Open str_en.bcs with notepad++

Dead rising 2 mod text with notepad plus plus (5)

Find an unused entry that has the same amount of characters. Alternatively, find an unused entry that has more characters than you need, and add extra spaces between, before or after words to make the character number count be the same.

Dead rising 2 mod text with notepad plus plus (4)

Line 1 col 17

Dead rising 2 mod text with notepad plus plus (2)

Line 2 col 17, Lines have same amount of characters

Write the new text under the old text in a new file. Every character is the same length in regular Notepad, so you can measure easily.

Dead rising 2 mod text with notepad plus plus (3)

Copy the new text and paste it over the old.

Dead rising 2 mod text with notepad plus plus

result

Copy the new text and paste it over the old.

No Hex editing needed.

Changing text with same number of characters[]

Hex editor start hell

Changing Game to Hell

Hex editor start hell main screen

"START hell" instead of "START GAME" (The Arena is not shown because of the Skip Cinematics option in Debug mode)

This is the simple way to edit text, but has a major restriction, your new text must be the same length, or shorter, than the existing text.

To edit the text, type over the top (overwrite) the text that is currently there.

  1. Go to 0x0000F2F5.
  2. Change the text to read "GAME START", making sure that you leave the NULL character, 00, at the end.
  3. Save the file.
  4. Load the game.
  5. Observe the text on the Main Menu has changed.

You can edit nearly any piece of game text in this way.

Expanding the Text[]

MenuMod

It is however possible, but more difficult, to change the text to say something longer than it currently does.
Again, we'll use the "START GAME" text as an example.

Hex editor visual studio start game

0x0000F2F5. In Microsoft Visual Studio, Ctrl+G to jump straight to 0x0000F2F5

Go to 0x0000F2F5.

Observe the text says "START GAME" and is NULL separated from the next piece of text, "JOIN CO-OP GAME" found at address 0x0000F300.


Hex editor visual studio blank space

0x0000778C. In Microsoft Visual Studio, Ctrl+G to jump to 0x0000778C.

Go to 0x0000778C

The 4 bytes of data starting here is a pointer to the piece of text we found earlier, "START GAME" (0x0000F2F5), 0000F2F5 is backwards here, written as F5 F2 00 00. This pointer tells the game where it should find the text to display.
This information has been stored in Little Endian format: basically it's stored right-to-left, rather than left-to-right, so "F5 F2 00 00", rather than "00 00 F2 F5".
So, to find the pointer to the piece of text you wish to change, you must search the file looking for the address of the piece of text you want to change. "START GAME" is found at address 0x0000F2F5. So you must search for "F5F20000" (some Hex Editors will want you to search for "0000F2F5", this will vary from editor to editor) - remember the pointers are stored in Little Endian format.
Don't forget that when searching for Hexadecimal data as we are doing here, rather than text, you may need to switch your Hex Editor's Search function into Hexadecimal Mode, or similarly named - not all Editors will require this.


Hex editor visual studio join coop

00 F3 00 00.

Notice that the next pointer, found 4 bytes later at address 0x00007790, is "00 F3 00 00" or 0x0000F300, which takes you back to "JOIN CO-OP GAME".
These pointers are not NULL separated.


Hex editor visual studio empty space

0x0005DEF0 empty space. In Microsoft Visual Studio, Ctrl+G to jump to 0x0005DEF0.

Go near the bottom of the file to address 0x0005DEF0. This part of the file is essentially empty, being filled with lots of NULL characters. This makes a great place for us to put some of own text.

Hex editor visual studio long text is long

Typing in LONG TEXT IS LONG

Type some text here, such as "LONG TEXT IS LONG", making sure to leave a NULL character after your own text.

Hex editor visual studio changing location

Original F5 F2 00 00

Hex editor visual studio changing location (2)

Modified F0 DE 05 00

Return to 0x0000778C, and change this pointer to point to our new text at 0x0005DEF0, by replacing "F5 F2 00 00" with "F0 DE 05 00".
Save the file.

Load the game.

MenuMod

Observe that the text on the Main Menu has changed, and that we changed the text to something that was longer than the original text. In this way it should be possible to change any text in the game, to almost anything.

References[]

Advertisement