The Forum is up for sale: XeNTaX Forum looking for new owner

Long 3D meshes

Post questions about game models here, or help out others!
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Long 3D meshes

Post by moonpaladin »

Hello, I were checking the files after extraction of this game and trying to get a relation between meshes and textures, there are around 5k-6K textures, so is a hard task, another thing is the meshes some that still seeying compressed, others seems like an objects, and others have skel info, so should be any kind of characters or monster, I'm gonna attach some samples hope someone can get any kind pattern to be able to make a script, because if I try to get every mesh with a hex2obj gonna take much more time, besides I need to find the right texture :cry: . Thank you so much in advance!

https://www.mediafire.com/file/xolpmlv9 ... S.zip/file
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: Long 3D meshes

Post by shakotay2 »

moonpaladin wrote: Wed Jan 26, 2022 7:03 pmhope someone can get any kind pattern to be able to make a script, because...
mesh format appears to be simple, so why not try to create a script on your own?
.
0000019b-dat.png
At 0x10960 sizeOfUvsBlock = 2206x8 +6
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?"
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

shakotay2 wrote: Wed Jan 26, 2022 10:06 pm
Thanks shakotay2! Gonna review the values, I were checking the 0000004d.dat and to be honest doesn't seems that it contain a mesh :(
User avatar
Durik256
ultra-veteran
ultra-veteran
Posts: 425
Joined: Wed Nov 21, 2018 7:26 pm
Has thanked: 45 times
Been thanked: 411 times

Re: Long 3D meshes

Post by Durik256 »

moonpaladin wrote: Wed Jan 26, 2022 7:03 pm Hello
Ogre?
files that have :"[MeshSerializer_v1.40]"
Image
do you want to RIP all the games that exist? Why do you need this? :?
Last edited by Durik256 on Thu Jan 27, 2022 2:42 pm, edited 1 time in total.
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

Durik256 wrote: Thu Jan 27, 2022 12:06 am do you want to RIP all the games that exist? Why do you need this? :?
Thanks Durik!not all the games! xD, is just that sometimes I see a very cool creature or so, and when I download the game it have around 20k models, so like this case I'm gonna search that one in the ocean of models lol. Thanks again :D
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

Durik256 wrote: Thu Jan 27, 2022 12:06 am
Durik! one question, how about the 0000005e.dat and 0000007b.dat, them doesn't have the '[MeshSerializer_v1.40]' but seems that are meshes too, or I'm wrong? [roll] , Im attaching more files like those too, please take a look when you can. ty! :D

edit*: btw how can I add another data.find value, in case I found meshes with the value of meshv2, or meshserializer_v3.0?

https://www.mediafire.com/file/kjy555od ... s.zip/file
User avatar
Durik256
ultra-veteran
ultra-veteran
Posts: 425
Joined: Wed Nov 21, 2018 7:26 pm
Has thanked: 45 times
Been thanked: 411 times

Re: Long 3D meshes

Post by Durik256 »

moonpaladin wrote: Thu Jan 27, 2022 12:59 am meshserializer_v3.0
replace [MeshSerializer_v1.40] >> [meshserializer_v3.0].
functionality is not guaranteed. because the file structure may differ
moonpaladin wrote: Thu Jan 27, 2022 12:59 am 0000005e.dat and 0000007b.dat
i will check.

you can also use this script to rename all files that have a head "[MeshSerializer_v1.40]".
for example, in (.rip_mesh).
in the plugin, change .dat >> .rip_mesh too.

Code: Select all

import os
#your path (subdirectories too)
path = "C:\\SAMPLES\\"

def find_header(file):
    with open(file, "rb") as f:
        data = f.read()
        header = data.find('[MeshSerializer_v1.40]'.encode())
        if header != -1:
            return 1
        else:
            return 0

for root, dirs, files in os.walk(path):
    for file in files:
        without_ext, ext = os.path.splitext(file)
        file_path = os.path.join(root,file)
        if ext == ".dat":
            if find_header(file_path):
                os.rename(file_path, os.path.join(root,without_ext+".rip_mesh"))#your ext
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

Durik256 wrote: Thu Jan 27, 2022 1:10 am
That gonna be really useful! [bruce]
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

as if I was guessing, there is this type of meshes v1.30 , and they load incorrectly with the script :(

https://www.mediafire.com/file/go58bex8 ... 0.zip/file
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

Durik256 wrote: Thu Jan 27, 2022 1:10 am
Durik I checked around 2.3k models! sorry for the spam! but here are some models that doesn't load all the submeshes and others that load but doesn't look good [bruce] . Thanks for your time :mrgreen:

https://www.mediafire.com/file/gl8xahrk ... 2.zip/file

edit*: still checking the models [roll]

https://www.mediafire.com/file/6o8l5yjt ... 3.zip/file
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: Long 3D meshes

Post by shakotay2 »

moonpaladin wrote: Thu Jan 27, 2022 12:33 amxD, is just that sometimes I see a very cool creature or so, and when I download the game it have around 20k models, so like this case I'm gonna search that one in the ocean of models lol.
Understand. :D
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?"
User avatar
Durik256
ultra-veteran
ultra-veteran
Posts: 425
Joined: Wed Nov 21, 2018 7:26 pm
Has thanked: 45 times
Been thanked: 411 times

Re: Long 3D meshes

Post by Durik256 »

moonpaladin wrote: Thu Jan 27, 2022 2:54 am Thanks for your time :mrgreen:
replace ([MeshSerializer_v1.40] >> [MeshSerializer) in script to open all versions
Image
this code is scaring me :ninja:

8D
edit: ...samples 3\looks blank (dont work)
Last edited by Durik256 on Thu Jan 27, 2022 2:42 pm, edited 1 time in total.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: Long 3D meshes

Post by shakotay2 »

Creating general scripts is harder (see "patch" below) than using hex2obj for individual models, that's why I prefer the later:
.
0000425c-rip_mesh.png
btw: this is the line with the "suspicious" value (patched for above sample):
bs.seek(62+16, NOESEEK_REL)
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?"
User avatar
Durik256
ultra-veteran
ultra-veteran
Posts: 425
Joined: Wed Nov 21, 2018 7:26 pm
Has thanked: 45 times
Been thanked: 411 times

Re: Long 3D meshes

Post by Durik256 »

shakotay2 wrote: Thu Jan 27, 2022 12:36 pm
I didn't want to do this. :D :D :D

ok, I took a closer look. completely new plugin. :D
opens all your problematic models. (:
Image
Oops. Not the right archive.. now i think everything 8D
You do not have the required permissions to view the files attached to this post.
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: Long 3D meshes

Post by moonpaladin »

Durik256 wrote: Thu Jan 27, 2022 2:04 pm
Thank you so much Durik! :D :D :D
Post Reply