1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-10-16 06:27:29 +00:00
Terraria world parser in Python
Find a file
2019-08-13 19:56:30 +02:00
.github/workflows Update pythonpackage.yml 2019-08-13 00:00:36 +02:00
docs 1.0b1 2019-08-13 19:56:30 +02:00
docs_source 1.0b1 2019-08-13 19:56:30 +02:00
lihzahrd 1.0b1 2019-08-13 19:56:30 +02:00
.gitattributes Update git data 2019-08-07 14:08:25 +02:00
.gitignore First commit 2019-08-06 18:16:17 +02:00
LICENSE.txt Create LICENSE.txt 2019-08-13 17:06:24 +02:00
README.md 1.0b1 2019-08-13 19:56:30 +02:00
requirements.txt Create empty requirements.txt file 2019-08-12 23:55:13 +02:00
setup.py 1.0b1 2019-08-13 19:56:30 +02:00
test.py 1.0b1 2019-08-13 19:56:30 +02:00

lihzahrd

A Terraria 1.3.5.3 world parser in Python.

You can use this package to get programmer-friendly data from a Terraria world!

Install with:

pip install lihzahrd

Usage

You can open a world file and get a World object by calling:

import lihzahrd
world = lihzahrd.World.create_from_file("filename.wld")

It will take a while to process: a small Terraria world contains more than 5 million tiles!

Once you have a World object, you can use all data present in the save file by accessing its attributes.

Documentation

The documentation is available here.

It's a bit messy and incomplete, as I still have not figured out the meaning of some data, and the code is in need of some refactoring.

If you know something that isn't present in the documentation, please let me know with an issue!

References used

License

lihzard is licensed under the AGPL 3.0. That means you have to publish under the same license the source code of any program you create that uses lihzahrd.