Skip to main content

Module convert

Module convert 

Source
Expand description

File format converters: .inf → .ron, .b3d → .glb, .bmp → .png, .bmpf → .fnt + .png, .s2 → .osmap.

Functions§

convert_b3d_to_glb
Convert a .b3d file to .glb using the b3d2glb library.
convert_bmp_to_png
Convert a .bmp texture to .png, converting the magenta colour key (255, 0, 255 ± tolerance) to fully transparent.
convert_bmpf_to_fnt
Convert a .bmpf bitmap font + its .bmp texture into .fnt + .png.
convert_inf_to_ron
Unified .inf → .ron conversion: extract scripts, write .ron, register.
convert_s2_to_osmap
Convert a .s2 map file to .osmap (OpenStranded MAP) format.