No project description provided
Project description
Converting STALCRAFT Files Library
Library for converting encrypted stalcraft game files, such as models and textures into well-known formats.
You can use compiled cli utility from Releases page.
Formats
.mcsa
->
.obj
.mic
->
.png
.ol
->
.dds
Install
Pip
pip install sc-file -U
Manual
git clone git@github.com:onejeuu/sc-file.git
cd sc-file
poetry install
Usage
Simple
from scfile.utils import convert
convert.mcsa_to_obj("path/to/file.mcsa", "path/to/file.obj")
convert.mic_to_png("path/to/file.mic", "path/to/file.png")
convert.ol_to_dds("path/to/file.ol", "path/to/file.dds")
Advanced
from scfile import OlFile, BinaryReader
with BinaryReader("path/to/file.ol") as reader:
dds = OlFile(reader).to_dds()
with open("path/to/file.dds", "wb") as fp:
fp.write(dds)
CLI Utility
scfile path/to/file.mcsa
scfile path/to/file.ol --output path/to/file.dds
Build
poetry install
poetry run build
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
sc_file-1.5.1.tar.gz
(12.1 kB
view hashes)
Built Distribution
sc_file-1.5.1-py3-none-any.whl
(17.0 kB
view hashes)