Skip to content

onejeuu/sc-file

Repository files navigation

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.)


Important

Reverse conversion (standardgame) is not available.
📚 See FAQ for details →

🚀 Installation

Three ways to get started: download, install, or compile.

💻 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")

🔗 Links

🤝 Acknowledgments

kommunist2021 · Art3mLapa · n1kodim
IExploitableMan · tuneyadecc · Hazart

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

About

Stalcraft Assets Converter

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages