Joost de Valk
Joost de Valk

Reputation: 49

Adding Bytes to file using Hex Editor

I am trying to change the text in some game files using the HxD hex editor.

When I see a sentence in the hex editor, such as Powered by me, this is 13 characters long. I have found that the replacement sentence also needs to be 13 characters long in order to work. If it's not 13 characters long, the game will not load for some reason.

I have added bytes to the file. Now I need to find out how to make it work. How can I make the file work with my added bytes?

Upvotes: 1

Views: 10674

Answers (1)

Yimin Rong
Yimin Rong

Reputation: 2027

It likely has to be the same length or shorter (e.g. padded with nulls) because of pointers within the file itself. If a game file is expecting a structure or function at index XXXX, and you shift everything by five bytes, then it's not going to work. How to fix it? You would need intimate knowledge of the game file format. Then you could go about revising what else needs to be revised.

As an aside, Windows DLLs keep their strings and dialogs in a separate resource area, and are surprisingly easy to revise using a resource editor!

Upvotes: 2

Related Questions