Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Magicka .XNB model files.

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

Re: Magicka .XNB model files.

Post by CameronCarson »

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: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: Magicka .XNB model files.

Post by shakotay2 »

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.
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?"
Post Reply