Jonn78 Posted 6 hours ago Posted 6 hours ago 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
Engineers Durik256 Posted 4 hours ago Engineers Posted 4 hours ago (edited) 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 4 hours ago by Durik256 1
Jonn78 Posted 4 hours ago Author Posted 4 hours ago 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now