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

[REQUEST] Coretech model format

Post questions about game models here, or help out others!
Post Reply
Drawing
mega-veteran
mega-veteran
Posts: 282
Joined: Wed Jan 11, 2012 10:21 pm
Has thanked: 43 times
Been thanked: 17 times

[REQUEST] Coretech model format

Post by Drawing »

Hi guys,

I found these model format looking in King's Arthur 2 files. Each file is stored in C2AR archive that could be extracted via quickbms with chrrox's script in this post viewtopic.php?t=10351.
chrrox wrote: Sun Apr 21, 2013 4:15 pm

Code: Select all

#King Arthur 2 N2M quickbms script
#by chrrox
idstring "C2AR"
append
getdstring null 10
get TSIZE long
do
get ZSIZE long
savepos OFFSET
if TSIZE >= 0x800000
set SIZE 0x800000
else
set SIZE TSIZE
endif
clog MEMORY_FILE OFFSET ZSIZE SIZE
math TSIZE -= SIZE
math OFFSET + ZSIZE
goto OFFSET
while TSIZE != 0
append
get NAME basename
string NAME + ".ext"
get SIZE asize MEMORY_FILE
log NAME 0 SIZE MEMORY_FILE

List of file ( all of them have a c2ar header and need to be unpacked via script)

- .n2m archive containing model ? , output file header seems to have textures information : Image
- .npt , seems to be a .dds file ( need to remove extra byte before dds header)
- .dds , textures ( remove extra bytes before dds header)

Is there any tool that could handle the model format? I would like to get skinned models if possible.

Here some sample , wish someone could take a look : https://www.mediafire.com/file/bf2yqftf ... e.rar/file

Thanks in advance,

Drawing :scaredy:
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: [REQUEST] Coretech model format

Post by Durik256 »

Drawing wrote: Thu Sep 29, 2022 5:28 pm Here some sample
Infested_legion.ext: (1 submesh)

Code: Select all

vbuf ofs = 876
vert num = 5218
stride 72:
	-vert (float) ofs = 0
	-normal (float) ofs = 28
	-uvs (float) ofs = 40

ibuf ofs = 376572 (prim type = triangels)
indices num = 26304 (ushort)
Infested_legion.ext.png
i made plugin:
Image
You do not have the required permissions to view the files attached to this post.
Last edited by Durik256 on Thu Oct 06, 2022 7:46 pm, edited 1 time in total.
Drawing
mega-veteran
mega-veteran
Posts: 282
Joined: Wed Jan 11, 2012 10:21 pm
Has thanked: 43 times
Been thanked: 17 times

Re: [REQUEST] Coretech model format

Post by Drawing »

Great!
Post Reply