June 19, 20251 yr Hello, I came here asking for help regarding the PC Steam game Sky: Children of the Light. I've been trying to get the model files to open inside of Noesis, but every file appears to be a .mesh file. Natively, this format couldn't be opened in Noesis, so, about a year ago, I've commissioned a kind person to make a plug-in that supports .mesh files ("fmt_mesh.py" in attachments). Issue is, the script throws an error every time I try to preview a model (sample files as examples). The creator no longer wants to work on the script, and I have gotten permission to share and edit it. If anyone has any knowledge of this, please give it a shot, I hope the plug-in is a good foundation for the models. fmt_mesh.py samples.zip
June 19, 20251 yr Supporter because the structure is different Previously you used the android version code to unpack the model: Spoiler import os import struct import lz4.block import sys if len(sys.argv) > 1: file_path = sys.argv[1] with open(file_path, 'rb') as f: # read uncompressed size f.seek(86) uncompressed_size = struct.unpack('i', f.read(4))[0] # read compressed size f.seek(82) compressed_size = struct.unpack('i', f.read(4))[0] # get compressed content f.seek(90) compressed_data = f.read(compressed_size) # Unpacking data uncompressed_data = lz4.block.decompress(compressed_data, uncompressed_size) with open(file_path.replace('.mesh','_U.mesh'), 'wb') as wb: wb.write(uncompressed_data) os.system('pause') but after the model there is still a skeleton and after the skeleton there is still a lot of data. I haven't checked what it is Edited June 19, 20251 yr by Durik256
June 19, 20251 yr Author Oh thank you for clarifying, I've tried to research about the other stuff but came up with nothing. And I can't find anyone who is willing to try if I commission them, so I'm trying my luck here.
Create an account or sign in to comment