NMS Lore Translator
With the Echoes update, No Man's Sky introduced some dialogue written in binary. I created this tool so that I could easily grab the screen, extract the binary text, and then convert it to UTF-8 characters. It will then append each new bit of lore to a file in your home folder.
Caveats
This was only tested on Ubuntu 23.04 with a screen resolution of 1920x1080 and the game running in full screen. It should, theoretically, work on any OS with the Tesseract OCR library installed, but it has not at all been tested and I take no responsibilites for this.
Installation
You can either clone this repository and then run poetry build && pip3 install --user dist/nms_ts-<version>-py3-none-any.whl or you can install from PyPi with just pip3 install --user nms-ts
Usage
The script runs and copies everything it sees on the screen within the resolution as soon as you call it. This could cause issues if your terminal pops up over the game as it will try to read binary from that as well and then fail because it's not proper binary. I would suggest, instead, binding to a hotkey:
nms --xend=<your X resolution> --yend=<your Y resolution>
Then, when you hit your hotkey, it will run the script without launching a terminal, therefore introducing no confusion for the script. Doing it like that will make it capture your entire display and attempt to extract from there. However, you can also specify just a small portion of your screen (to get a more exact area to translate and minimize possible errors) by specifying more exact xstart, ystart, xend and yend values.
Changelog
- v1.1.3
- Preserve spaces
- v1.1.2
- Actually fixed the damn thing
- v1.1.1
- Fixed capture and translate
- v1.1.0
- Added option to set boundary box
- Made it so that values actually get passed to grab function
- Now filters out characters that are not proper binary digits
- v1.0.0
- Initial release
Metadata
Release files for nms-ts 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nms_ts-1.1.3.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nms_ts-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / nms_ts-1.1.3.tar.gz
| Download URL | nms_ts-1.1.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a5f4bfbe9bb6d62b9016d6deae5bb7087c211001cf1fae2adfd3732d2f2ae12
|
|
BLAKE2b-256 checksum How to use checksums |
2932d88811f46926173657b0ad80930f9af2a5ba82d41260f753ec5417c900d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.10 Linux/5.15.0-1045-azure
|
Release files / nms_ts-1.1.3-py3-none-any.whl
| Download URL | nms_ts-1.1.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21c9da987f70082354c7787e813031a8765a5d68d60ee42c449030b35a51e007
|
|
BLAKE2b-256 checksum How to use checksums |
0983d135d9f097d9fd7c17027d17fd857289f7d3979c438d63bb78e7ca26b4c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.9.10 Linux/5.15.0-1045-azure
|