Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyKotor-1.6.2.tar.gz (2.5 MB view details)

Uploaded Source

Built Distributions

PyKotor-1.6.2-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

PyKotor-1.6.2-1-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file PyKotor-1.6.2.tar.gz.

File metadata

  • Download URL: PyKotor-1.6.2.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 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

Hashes for PyKotor-1.6.2.tar.gz
Algorithm Hash digest
SHA256 bd77861ae5002d91f70e9a620cedf5e88355c8de4dd183aa860578a616e58c23
MD5 b89973bac607010a8d3d049d6dad2700
BLAKE2b-256 898ce2936c4ba52a0adc2ff10c5e3bf79a9f42c4603ec2d3669fdad522e3bbee

See more details on using hashes here.

File details

Details for the file PyKotor-1.6.2-py3-none-any.whl.

File metadata

  • Download URL: PyKotor-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 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

Hashes for PyKotor-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 40d511173eb60da777d274bb6d97457407f1c172739801e9d8e6f06412604d4a
MD5 66eef2ce7d95a8aaa9e5cdb86192df26
BLAKE2b-256 3475c703da8170f0f1d2ac4a0fffec01d6752e4435477dc0eb49358cfc02d204

See more details on using hashes here.

File details

Details for the file PyKotor-1.6.2-1-py3-none-any.whl.

File metadata

  • Download URL: PyKotor-1.6.2-1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 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

Hashes for PyKotor-1.6.2-1-py3-none-any.whl
Algorithm Hash digest
SHA256 f07da642bffec2c4fb70f246dfc4512cd8247907b58c336dcbe8ebac003f8708
MD5 66ee5dd4e4fe82f68b3e1ccc35e786bd
BLAKE2b-256 931b72c6066b14f559fd4783448a409fb1888942eabd6f8c68070a6e50949673

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page