Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

[Nitro+] Sonicomi .MDL Files (character/environment models)

Post questions about game models here, or help out others!
Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

[Nitro+] Sonicomi .MDL Files (character/environment models)

Post by Cubeburner » Wed Feb 27, 2013 3:03 am

I've managed to open the Sonicomi game assets and extract the game data. I have also got the header of the .MDL files that are inside the 3d.npa file. They are not in Source, Half-Life or Quake format as far as I'm aware of (judging from the extension I thought they were). Here's the dump:

Code: Select all

< Hex > | < Text/ASCII >
42494E5652534E7B0D0A2020202020202020310D0A7D0D0A4D455348686561645F6D6F757468007B565254587BDC0E00 | BINVRSN{..        1..}..MESHhead_mouth.{VRTX{...
To me, it looks like a binary mesh file. Looking at the files, towards the end of the file there is a lot of extra data with words like "FRME" "TRNS" and others. The middle "beef" is vertex data, I believe.
I can upload these files if you like.

Does anyone have experience with any of the Nitro+ games? Is there a converter or reader plugin I need to use?

Cheers,
Cubeburner.

finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 296 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by finale00 » Wed Feb 27, 2013 4:43 am

What did you use to unpack it? asmodean's exnpa?

Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Cubeburner » Wed Feb 27, 2013 5:13 am

finale00 wrote:What did you use to unpack it? asmodean's exnpa?
I used the tool called "nipa". The .npa files were encrypted but I ran the EXE like so:

Code: Select all

nipa.exe -xg media/st.npa Sonicomi
And it went to work decrypting the archives.

Originally from some Visual Novel forum. Here's a link: http://forums.novelnews.net/showthread.php?t=35621 .

Like I said, I can upload the .mdl files for you to examine.

finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 296 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by finale00 » Wed Feb 27, 2013 11:20 pm

Uploads would be nice I don't know where I put the game.

Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Cubeburner » Wed Feb 27, 2013 11:25 pm


finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 296 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by finale00 » Thu Feb 28, 2013 1:15 am

Oh right this format. I never liked it cause they have text data mixed in with binary data.

Karpati
mega-veteran
mega-veteran
Posts: 305
Joined: Thu Dec 07, 2006 11:25 pm
Has thanked: 7 times
Been thanked: 58 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Karpati » Sat Mar 02, 2013 10:23 am

Cubeburner wrote:Uploaded here on my server.
Cheers!
It is a nice 3d format.

You can download the converted files in Wavefront .obj/mtl format using this link:
http://3dconverter.webege.com/converted

I must down my PC now, but I will release my developer version of 3D Object Converter as soon as possible.

Karpati
mega-veteran
mega-veteran
Posts: 305
Joined: Thu Dec 07, 2006 11:25 pm
Has thanked: 7 times
Been thanked: 58 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Karpati » Sun Mar 03, 2013 9:26 pm

Cubeburner wrote:And it went to work decrypting the archives.
Can you tell me how did you decode the .mdl and the .png files ?
(I downloaded the SoniComi Trial version and I extracted the files from the 3d.npa already.)

Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Cubeburner » Mon Mar 04, 2013 12:19 am

I will edit this post when I get back to my desk.

Also, there is an issue with the converted models. The .MDL files have multiple meshes, while you only converted the base face mesh. Maybe we need a scan function that will look for additional meshes. Then there are bones, which can be seen at the bottom of the file in a hex editor. If you open the source file in a hex editor and search for VRTX (I think...) Then you will see the other meshes.
Thanks again for your efforts. :)

finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 296 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by finale00 » Mon Mar 04, 2013 4:43 am

Ah ha, I just kept reading lines until I was past that annoying plain-text material section.
Let's see where I can get now.

EDIT: nvm I really don't like the nested structure. If this was just plain text I wouldn't mind as much (like how the .x format is done), but I've never really had a good idea how to deal with parentheses matching. Maybe I should be parsing it recursively or something. Good luck karpati lol maybe I'll visit this thing when I am up for some recursive programming.

Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Cubeburner » Mon Mar 04, 2013 7:14 am

On the topic of the encryption, when I ran the tool I linked in a post that I used to decrypt the .npa files, it automatically decrypted the model .mdl files. I don't know if the archive itself is only encrypted and the data actually isn't inside the archive, or if both are encrypted and the tool uses the same key to decrypt them.

When I first saw the extension I thought "hey, Source/HL2 models!" but nope, I was wrong.

Karpati
mega-veteran
mega-veteran
Posts: 305
Joined: Thu Dec 07, 2006 11:25 pm
Has thanked: 7 times
Been thanked: 58 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Karpati » Tue Mar 05, 2013 10:07 pm

Cubeburner wrote:Also, there is an issue with the converted models. The .MDL files have multiple meshes, while you only converted the base face mesh. Maybe we need a scan function that will look for additional meshes.
I did find 3 MESH, VRTX, TXUV, FACE data blocks in your sample files, so these files have 3 meshes only.
The other parts of the models are in the \media\3d\st\sonico\coordinate\ directories!

I modified the .mdl loader module:
- I flipped the UC datas vertically
- I changed the face ordering
- I added the materials.

You can download the new converted (+ studio.obj/mtl file) files in Wavefront .obj/mtl format using this link:
http://3dconverter.webege.com/converted

You can download the latest version of 3D O.C. using this link:
http://3dconverter.webege.com/develop_x86

Karpati
mega-veteran
mega-veteran
Posts: 305
Joined: Thu Dec 07, 2006 11:25 pm
Has thanked: 7 times
Been thanked: 58 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Karpati » Tue Mar 05, 2013 10:10 pm

Cubeburner wrote:On the topic of the encryption, when I ran the tool I linked in a post that I used to decrypt the .npa files, it automatically decrypted the model .mdl files.
Thank you for your information, I ran into a little stupid situation.

I used the following command:
nipa.exe -xg 3d.npa Sonicomi
and it did not work fine.

If I used the following command on the DEMO version I got the correct files:
nipa.exe -xg 3d.npa SonicomiTr2

Cubeburner
n00b
Posts: 14
Joined: Tue Oct 11, 2011 7:53 am
Has thanked: 2 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Cubeburner » Tue Mar 05, 2013 10:42 pm

Karpati wrote:
Cubeburner wrote:On the topic of the encryption, when I ran the tool I linked in a post that I used to decrypt the .npa files, it automatically decrypted the model .mdl files.
Thank you for your information, I ran into a little stupid situation.

I used the following command:
nipa.exe -xg 3d.npa Sonicomi
and it did not work fine.

If I used the following command on the DEMO version I got the correct files:
nipa.exe -xg 3d.npa SonicomiTr2
Sonicomi decrypt option is for the full game, while SonicomiTr2 is for the trial. I should have been more clear.

Szkaradek123
mega-veteran
mega-veteran
Posts: 292
Joined: Wed May 05, 2010 8:21 pm
Location: Poland Głogów
Has thanked: 21 times
Been thanked: 592 times

Re: [Nitro+] Sonicomi .MDL Files (character/environment mode

Post by Szkaradek123 » Fri Mar 15, 2013 3:32 pm

Only for Blender249: animation importer for anm files.
First run script (alt+p)for import meshes and bones from mdl file.
For autotexturing go to correct line in script and write your path to folder with images.

On stage model script crash.

link for blend file and examples.
http://www.mediafire.com/?alg5b845et33s60

Post Reply