Skip to main content

Utility & Library for decoding stalcraft assets

Project description

sc-file

icon

Pypi License Docs Tests Build Issues

🇬🇧 English | 🇷🇺 Русский

Overview

scfile is a utility and library for converting proprietary Stalcraft assets formats to standard ones.

This is an unofficial project and is not affiliated with EXBO.

✨ Supported Formats

Type Game formats Standard formats
🧊 Model .mcsb .mcsa .mcvd .glb .obj .dae .ms3d
🧱 Texture .ol .dds
🖼️ Image .mic .png
📦 Archive .texarr .zip
⚙️ Data NBT* .json

* NBT refers to specific files (itemnames.dat, prefs, sd0, etc.)

📚 Detailed formats support →


[!IMPORTANT]
Reverse conversion (standardgame) is not available.
📚 See FAQ for details →

🚀 Installation

Three ways to get started: download, install, or compile.
📚 Usage guide and CLI options →

💻 Download executable

Standalone scfile.exe available on Releases page.
No Python required.

Usage:

🐍 Install Python package

Install:

pip install sc-file

Usage:

🔧 Compile from source

Build from source code using the compile guide.
For developers, contributors, or custom builds.

📖 Library

Install latest version:

pip install sc-file -U

Usage example:

from scfile import convert, formats, UserOptions

# Simple conversion (auto detect format by file suffix)
# User options to control parsing and export settings
convert.auto("model.mcsb", options=UserOptions(parse_skeleton=True))

# Advanced control (manual decoding and data inspection)
# Context manager ensures proper resource cleanup
with formats.mcsb.McsbDecoder("model.mcsb") as mcsb:
    # Access parsed scene data: meshes, bones
    scene = mcsb.decode().scene
    print(f"Model total vertices: {sum(m.count.vertices for m in scene.meshes)}")

    # Export to a specific standard format
    mcsb.to_obj().save("output.obj")

📚 Complete Library API reference →

🔗 Links

🤝 Acknowledgments

kommunist2021 · Art3mLapa · n1kodim · TeamDima · BoJIwEbNuK7
IExploitableMan · tuneyadecc · Hazart

Thanks to everyone who reported issues, shared findings, or contributed ideas.

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-4.4.1.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sc_file-4.4.1-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file sc_file-4.4.1.tar.gz.

File metadata

  • Download URL: sc_file-4.4.1.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sc_file-4.4.1.tar.gz
Algorithm Hash digest
SHA256 8bc225f341789b43ef0f7df76e40d399fa6285676bbd73ab8917e0e1cb3bfb05
MD5 07aa1c399ee11bb1a0e065b99da25c22
BLAKE2b-256 ced7f9d8ba59e8e2e2c698939e7acfbf362e2a8edb98d80a281a78b2c723fe6a

See more details on using hashes here.

File details

Details for the file sc_file-4.4.1-py3-none-any.whl.

File metadata

  • Download URL: sc_file-4.4.1-py3-none-any.whl
  • Upload date:
  • Size: 58.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sc_file-4.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 710a036c6a8f5f6e9201c4ed3f5b4b3d4f15bc0abcb7cc4343022077c644b18a
MD5 3ae15a750f6c05bcd2f7dfc5d420c7e6
BLAKE2b-256 f7ea9a9a42e8f17537691a91f9ee21b2bd792419b0456c2d678d28a6a15a30fb

See more details on using hashes here.

Supported by

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