Read, modify and write files used by KotOR's game engine.
Project description
PyKotor
A Python library that can read and modify most file formats used by the game Knights of the Old Republic and its sequel.
Installation
Install from PyPI.
pip install pykotor
Example Usage
Simple example of loading data from a game directory, searching for a specific texture and exporting it to the TGA format.
import os
from pykotor.resource.type import ResourceType
from pykotor.extract.installation import Installation
from pykotor.resource.formats.tpc import write_tpc
inst = Installation("C:/Program Files (x86)/Steam/steamapps/common/swkotor")
tex = inst.texture("C_Gammorean01")
write_tpc(tex, os.getcwd() + "/C_Gammorean01.tga", ResourceType.TGA)
License
This repository falls under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyKotor-1.5.1.tar.gz.
File metadata
- Download URL: PyKotor-1.5.1.tar.gz
- Upload date:
- Size: 280.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d6ea748bfb869008cb33ad398a4ccf4f9a52be1922a114656891ec3e4638850
|
|
| MD5 |
59f840651078da70a4258923544887d6
|
|
| BLAKE2b-256 |
68362edc8aca882d1b379def7a36ae984a2dd3adcd9ffcaecc79446333477796
|
File details
Details for the file PyKotor-1.5.1-py3-none-any.whl.
File metadata
- Download URL: PyKotor-1.5.1-py3-none-any.whl
- Upload date:
- Size: 338.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e568529a34663e68c477187475d3a4d4b8c35fbe402a95393e5f8638edbdf943
|
|
| MD5 |
d61fa7ff3f329cc1c4679cc513a80eb4
|
|
| BLAKE2b-256 |
2d1f6eb1c8e5e683ac2ab808fa62ab09e99809256dd7cbd9ff86e3183ff9da0f
|