Skip to main content

strindex

PyPI version GitHub downloads license

A command line utility program (with GUI support) that allows you to easily extract, list and patch (replace) the strings embedded in a few filetypes.

It's useful to change the text of a binary file without having to recompile it; for example, to translate it into another language.

A string can be referenced not only by its pointer / offset, but also by the original string itself to ensure compatibility with different versions of the same program.

It features various built-in features to help with translation, such as spellchecking & filtering strings by length and character set.

Supported filetypes

Support for more filetypes is possible, but not planned

  • PE files (".exe", ".dll"...) (direct pointers only!)
  • Gamemaker data files ("data.win")
  • Unreal Engine localization files (".locres")
  • Every filetype, if using force mode*...

*Force mode doesn't allow the replaced strings to be bigger in length than the original strings.

Installation

You can install the program with the command pip install strindex.

Alternatively, the releases tab includes a precompiled version of the program, which by default opens in gui mode (unless executed with arguments). Warning: the precompiled version has a high chance of being detected as a false positive by antivirus software. You can compile the program yourself to avoid this.

Usage

You can run the program with the command strindex <action> <input file(s)> [arguments].

strindex -h will show more information about the available actions and arguments.

Most notably, the program supports the following actions:

  • create: Create a list of string replacement instructions (a strindex) extracted from a binary file. Use -f to enable "force" mode, and replace strings at the same offset they were found. Use -D to create a strindex that uses the original strings as references (dynamic pointers), instead of offsets (fixed pointers).
  • patch: Patch a binary file using a strindex. Strindex files compressed with gzip are also supported for all actions.
  • gui: Open Strindex in GUI mode.

Usage Examples

  • Open strindex in GUI mode:
    strindex gui
    
  • Create a strindex from a PE file, considering only pointers prefixed by the bytes "24c7442404" or "ec04c70424".
    strindex create program.exe -p "24c7442404" -p "ec04c70424"
    
  • Patch a PE file with a strindex:
    strindex patch program.exe strindex.txt
    

Strindex Example

You can find an example of a strindex file and an explanation of its settings here.

Verified programs/videogames

Here is a non-exhaustive list of programs/videogames that have been verified to work with strindex:

Name File name & type Notes
Katana ZERO Katana ZERO.exe (PE)
Nuclear Throne nuclearthrone.exe (PE) *
Persona 4 Golden P4G.exe (PE) Notably, the only text that is embedded in this game's .exe file are cutscene subtitles.
Undertale data.win (IFF)
MOLE Game.locres (locres) Game.locres is "packed" in Mole-Windows.pak (which must be extracted first, using a tool like repak).

*This program/videogame already officially supports localization by external means.

Metadata

Release files for strindex 5.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strindex 5.0.1
File Size Uploaded
strindex-5.0.1.tar.gz 35.7 kB Details

Release files / strindex-5.0.1.tar.gz

Download URL strindex-5.0.1.tar.gz
Size 35.7 kB
Tags Source
SHA-256 checksum
How to use checksums
778217c2757df7c9d69f7abd4627390eec6d850ab3a6ec186e059bd7a8311157
BLAKE2b-256 checksum
How to use checksums
0dd034b58aa4d21cc26230ff96e41fd03bb45617b97af8fd64761df059c5bee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

5.1.0

1 release file

This release

5.0.1 This release

1 release file

5.0.0

1 release file

4.0.0

1 release file

3.9.0

1 release file

3.8.0

2 release files

3.7.1

2 release files

3.7.0

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page