π Usage#
Quick Start#
- π₯οΈ GUI
Launch
scfile.exewithout arguments to open the graphical interface. Add files or folders, choose output formats and settings, and press Convert.- π₯ Drag & Drop
Drag files or folders directly onto
scfile.exein File Explorer. Supported files are converted to default formats and saved alongside source file.This is equivalent to running
scfile.exe <path>for each dropped file.- π±οΈ Open With
Set
scfile.exeas the default program for opening supported file types. Double-clicking any such file in Explorer will convert it and save output alongside source file.To set up: right-click a file β Open With β choose
scfile.exeand check Β«Always use this appΒ».- π Command Line
Run
scfile.exe --helpto see all available arguments and options. The CLI gives full control over conversion: output formats, skeletons, animations, directory structure, file name conflicts, and more.scfile.exe model.mcsb -F glb --skeleton
- π Python Library
Install the package from PyPI:
pip install sc-file -U. Usescfiledirectly in your Python scripts, automate complex workflows, or build your own tools on top of it.Example#from scfile import Options, convert convert.mcsb_to_glb( "model.mcsb", options=Options(skeleton=True, on_conflict="skip"), )
Command Line Interface#
General#
--versionShow the program version and exit.
scfile --version--updatesCheck for available updates on GitHub Releases and exit. Requires internet connection.
scfile --updates
convert#
Default command. Converts game assets to standard formats.
PATHSOne or more files or directories. Accepts full paths, relative paths, and wildcard patterns (
*). Only files with supported extensions are processed.Example#scfile "model.mcsb" scfile "C:/assets" scfile "C:/assets/*.ol" scfile "model.mcsb" "texture.ol" "C:/assets/*.ol"
-O, --outputOutput directory for converted files. If not specified, output files are saved alongside source file.
Example#scfile "model.mcsb" --output "D:/output"
-F, --mdlformat- Preferred output format for models. Repeatable to specify multiple formats.Accepted values:
obj,glb,fbx,dae,ms3d.Default isobj.When--skeletonor--animationis used, default isglb.Example#scfile "model.mcsb" -F glb scfile "model.mcsb" -F glb -F obj -F dae
--skeleton- Parse and export skeleton (armature) from models.Supported by:
glb,dae,ms3d.Example#scfile "model.mcsb" --skeleton scfile "model.mcsb" -F glb --skeleton scfile "model.mcsb" -F dae --skeleton
--animation- Parse and export built-in animation clips from models. Implies
--skeleton.Supported by:glb.Example#scfile "model.mcsb" --animation scfile "model.mcsb" -F glb --animation
--on-conflict- What to do when an output file already exists.Accepted values:
overwrite,skip,rename.Default isoverwrite.overwriteReplace existing file.skipKeep existing file.renameAdd numeric suffix:model (1).obj,model (2).obj.
Example#scfile "C:/assets/model.mcsb" "C:/assets/sub/model.mcsb" --on-conflict rename
--relativePreserve directory structure of source files inside output directory. Requires
--output.Example#scfile "C:/assets" --output "D:/output" --relative
--parentUse parent directory of each source path as root for relative output. Implies
--relative.Example#scfile "C:/assets" --output "D:/output" --parent
Output Structure#
Examples of how --relative and --parent change output layout.
./assets/
βββ armor/albatros.mcsb
βββ items/vodka.ol
- Default
scfile "./assets" --output "./output"
Output#./output/ βββ albatros.obj βββ vodka.dds
--relativescfile "./assets" --output "./output" --relative
Output#./output/ βββ armor/albatros.obj βββ items/vodka.dds
--parentscfile "./assets" --output "./output" --parent
Output#./output/ βββ assets/armor/albatros.obj βββ assets/items/vodka.dds
mapcache#
.mdat cached regions into .mca region files.map_cache to auto-detect.SOURCEDirectory containing
.mdatfiles.Example#scfile "C:/map_cache/5.0" scfile mapcache "C:/map_cache/5.0"
-O, --outputOutput directory for
.mcafiles. If not specified, creates a folder alongsideSOURCEwith_mcasuffix.Example#scfile mapcache "C:/map_cache/5.0" --output "D:/output"
-W, --workers- Number of worker threads. Default:
CPU count Γ 2.Set to0for sequential execution (no threads).Example#scfile mapcache "C:/map_cache/5.0" -W 4
--rawKeep original block IDs without lookup table replacement.
Example#scfile mapcache "C:/map_cache/5.0" --raw