I'm pretty early, just wanted to ask if there was a way to open this game's models?
For switch and mobile it's no exception, the data is practically the same.
Models use a .MESH format,
and textures use a .KTX format, which can be opened with PVRTex Tool.
I haven't dug nor came up with a way to open the model files with the skeletons still in tact.
I've provided a few of the .MESH files for anyone that wants to experiment :I
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Sky: Children of the Light Models
-
- double-veteran
- Posts: 840
- Joined: Sat Nov 06, 2010 12:27 am
- Has thanked: 435 times
- Been thanked: 235 times
Re: Sky: Children of the Light Models
This game is really amazing, i too been looking for ways to convert it's characters/animations and even its very simple map levels, had no luck so far, hoping it will be noticed one day by someone
- shakotay2
- MEGAVETERAN
- Posts: 4284
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1146 times
- Been thanked: 2242 times
Re: Sky: Children of the Light Models
Well, I used Aluigi's world famous comtype scanner with the first 300 compression types on Stone_dragon_body.mesh and nearest hit were some fake float blocks like these:
. (163.dmp, 167.dmp, 230.dmp were similar, iirc)
Of course I may have missed the correct result (especially short/int vertex blocks are hard to detect) but finally I'd say:
probably you'll need to disassemble the game code to get the decompression algorithm.
. (163.dmp, 167.dmp, 230.dmp were similar, iirc)
Of course I may have missed the correct result (especially short/int vertex blocks are hard to detect) but finally I'd say:
probably you'll need to disassemble the game code to get the decompression algorithm.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
-
- mega-veteran
- Posts: 181
- Joined: Sun Oct 10, 2010 9:44 pm
- Has thanked: 35 times
- Been thanked: 162 times
Re: Sky: Children of the Light Models
If it may help, older format of the game was partially reversed back then: https://www.vg-resource.com/thread-39211.html
- shakotay2
- MEGAVETERAN
- Posts: 4284
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1146 times
- Been thanked: 2242 times
Re: Sky: Children of the Light Models
Well, I created an lz4.exe from the code (https://github.com/lz4/lz4) and gave Stone_dragon_body.mesh a (what I thought to be decent) lz4 header like so:
. Added extension .lz4. Sadly the decompressed file has a size of zero bytes.
(Another attempt with the len DWord and "Stone_dragon_body" removed: again 0 bytes...)
Well, maybe I should take longbyte1's code into account (offset 0x52 in unpatched .mesh looks promising):Compressed size 14835 dec., uncompressed size 26259 bytes, number of lods:1, would make sense
Compressed content starting at 0x56. I'll give it a last shot...
. Added extension .lz4. Sadly the decompressed file has a size of zero bytes.
(Another attempt with the len DWord and "Stone_dragon_body" removed: again 0 bytes...)
Well, maybe I should take longbyte1's code into account (offset 0x52 in unpatched .mesh looks promising):
Code: Select all
# read uncompressed size
f.seek(0x52)
uncompressed_size = struct.unpack('i', f.read(4))[0]
# read compressed size
f.seek(0x4e)
compressed_size = struct.unpack('i', f.read(4))[0]
# read num lods
f.seek(0x44)
num_lods = struct.unpack('i', f.read(4))[0]
print('compressed_size', compressed_size)
print('uncompressed_size', uncompressed_size)
print('num_lods', num_lods)
# get compressed content
f.seek(0x56)
Compressed content starting at 0x56. I'll give it a last shot...
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
-
- mega-veteran
- Posts: 181
- Joined: Sun Oct 10, 2010 9:44 pm
- Has thanked: 35 times
- Been thanked: 162 times
Re: Sky: Children of the Light Models
@shakotay2: You can use this script for decompressing chunk with the first lod, it's direct implementation of longbyte1's code.
You do not have the required permissions to view the files attached to this post.
- shakotay2
- MEGAVETERAN
- Posts: 4284
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1146 times
- Been thanked: 2242 times
Re: Sky: Children of the Light Models
ha, bingo, from time to time I seem to have some luck:
. @Spiritovod: thanks - too late. Worked with the previous mentioned lz4.exe.
. @Spiritovod: thanks - too late. Worked with the previous mentioned lz4.exe.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
- shakotay2
- MEGAVETERAN
- Posts: 4284
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1146 times
- Been thanked: 2242 times
Re: Sky: Children of the Light Models
Hmm, stone dragon body? Strange:
.
.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
- shakotay2
- MEGAVETERAN
- Posts: 4284
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 1146 times
- Been thanked: 2242 times
Re: Sky: Children of the Light Models
Since the thread opener seems to have lost interest I didn't see a reason to continue...
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
-
- ultra-n00b
- Posts: 7
- Joined: Fri Sep 17, 2021 7:20 pm
- Has thanked: 5 times
- Been thanked: 4 times
Re: Sky: Children of the Light Models
I guess the thread is pretty much dead, but there has been some good progress made when it comes to meshes!
https://github.com/oldmud0/SkyEngineTools
I found this on VGResource. this is not my github, i don't understand how mesh file formats work
This gh has a python blender script that works for importing most of static meshes.
The most interesting thing is the imhex folder which describes the mesh format.
Not all of the meshes are supported yet though, the ones not supported have flags Cine, StripAnim, Anim and Col.
I also suspect that some of them may not be compressed, but most of them are with lz4.
I don't really understand how to read rigs and skeletons and stuff from mesh format, so any insight would be really appreciated!
Here's an archive with meshes in case someone would like to check out the formats:
https://drive.google.com/drive/folders/ ... sp=sharing
https://github.com/oldmud0/SkyEngineTools
I found this on VGResource. this is not my github, i don't understand how mesh file formats work
This gh has a python blender script that works for importing most of static meshes.
The most interesting thing is the imhex folder which describes the mesh format.
Not all of the meshes are supported yet though, the ones not supported have flags Cine, StripAnim, Anim and Col.
I also suspect that some of them may not be compressed, but most of them are with lz4.
I don't really understand how to read rigs and skeletons and stuff from mesh format, so any insight would be really appreciated!
Here's an archive with meshes in case someone would like to check out the formats:
https://drive.google.com/drive/folders/ ... sp=sharing