Join also our Discord channel! Click here.

Magicka .XNB model files.

Post questions about game models here, or help out others!
CameronCarson
n00b
Posts: 13
Joined: Sat Jan 25, 2020 1:53 am
Has thanked: 5 times

Re: Magicka .XNB model files.

Post by CameronCarson » Mon Jun 22, 2020 5:14 pm

shakotay2 wrote:
Sun Jun 21, 2020 6:28 am
It's not "code" it's just "parameters" (values, addresses, counts). With a model loaded enter parameters then press File/Save H2O.
But how to find parameters easily

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1690 times

Re: Magicka .XNB model files.

Post by shakotay2 » Sun Jun 28, 2020 7:32 am

There's no "ease" - it's hard learning in most cases. "Learn it to earn it." :D

To get the vertex start address search for "-A0" in the decompressed files, then skip 4 floats (16 bytes), then another 5 bytes.
(First vertex (3 floats) in green rectangle.)
.
xnb_lz4_decompressed.png
.
How to get the counts is here:
shakotay2 wrote:
Mon Jun 15, 2020 9:45 pm
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Post Reply