Skip to main content

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 utility from Releases page.

Formats

.mcsa -> .obj
.mic -> .png
.ol -> .dds

Install:

Pip

pip install scfile -U
Manual
git clone git@github.com:onejeuu/sc-file.git
cd sc-file
poetry install

Or

pip install -r requirements.txt

Usage:

Simple

from scfile import mcsa_to_obj, mic_to_png, ol_to_dds

mcsa_to_obj("path/to/file.mcsa", "path/to/file.obj")
mic_to_png("path/to/file.mic", "path/to/file.png")
ol_to_dds("path/to/file.ol", "path/to/file.dds")

Advanced

from scfile import McsaFile, MicFile, OlFile
from scfile import BinaryReader

with BinaryReader("path/to/file.ol") as reader:
    ol = OlFile(reader).to_dds()

with open("path/to/file.dds", "wb") as fp:
    fp.write(ol)

CLI Utility

SCF.exe --source path/to/file.mcsa
SCF.exe --source path/to/file.ol --output path/to/file.dds

Build:

poetry run build

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

sc_file-1.3.2.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

sc_file-1.3.2-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

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