Skip to content

Convert Worlds

Phinehas Beresford edited this page Feb 12, 2024 · 2 revisions

Converting Worlds:

  • Currently this is a "beta" feature and is subject to be included or removed in the first "release" version of this Module.

Attempt to Automatically convert 3DS to Bedrock:

folder_path = ".\\LoCity\\OliverDIMC" # PATH needs to be pointing to folder where 'level.dat' is located along with world data.
world_icon_path = ".\\world_ico.png" # Is not required for save conversion.

mc3dslib.convert_save(folder_path, world_icon_path)

Convert World VDB Files:

folder_path = ".\\LoCity\\OliverDIMC\\db\\vdb" # Example PATH
console2bedrock_vdb(folder_path)

Convert World CDB Files:

folder_path = ".\\LoCity\\OliverDIMC\\db\\cdb" # Example PATH
optional_offset = 0x80 # as it's name suggests, this is optional or required in some circumstances.

console2bedrock_cdb(folder_path, optional_offset)

Generate Lockage Files:

file_path = ".\\LoCity\\OliverDIMC\\vdb\\newindex.vdb" # Example File PATH, but does need to be a newindex.vdb not a *.cdb file.
convert_lockage(file_path)

Regular Data Copy:

level_dat = ".\\LoCity\\OliverDIMC\\level.dat"
level_dat_old = ".\\LoCity\\OliverDIMC\\level.dat_old"
levelname = ".\\LoCity\\OliverDIMC\\levelname.txt"
world_icon = ".\\world_icon.png" # Optional/not required for save conversion

console2bedrock_meta(level_dat, level_dat_old, levelname, world_icon)

Zip & Compress

converter_path = ".\\mcworld_files"
zip_convert_contents()