Page 1 of 1

Ni No Kuni II Tool + Help

Posted: Fri May 11, 2018 11:58 pm
by akderebur
Update
- UVs are working now

Hello,

I recently started working on the pc version of Ni No Kuni 2. I was able to load the vertex positions and indices, but I need some help with the uvs.

Here is a model of a bird : http://www.mediafire.com/file/7o76s0c6a ... 01000.g4mg

And here is the first mesh using hex2obj. Other ones are just LODs.

Image

The file starts immediately with the vertex blocks, and every block is 60 bytes. First 3 floats are vertex positions. UVs should also be somewhere in the block, but I couldn't see them. Any help would be appreciated.

-- Tool --

I also started to make a tool. Not really useful atm without the uvs, but I will update it as I discover new stuff. Skeleton data also doesn't look that complicated, but I want to have proper uvs first.

Overview

Image

How to use
- Extract the cpk archives using CriPakTools (or something else) first
- File -> Open to select a file
- Either select the .g4mg or the .g4pkm file. Both files need to in the same folder.

Download : http://www.mediafire.com/file/zh7xa2i8q ... wer_UV.rar

Re: Ni No Kuni II Tool + Help

Posted: Sat May 12, 2018 1:58 am
by Acewell
akderebur wrote:I need some help with the uvs.
wordUV at position 56 looks good to me :D
a30001000_g4mg.png

Re: Ni No Kuni II Tool + Help

Posted: Sat May 12, 2018 6:21 am
by akderebur
AceWell wrote: wordUV at position 56 looks good to me :D
Great, thanks. I need to find a way to convert WORD to float in my code. I think I will check the Make_obj source :D

Re: Ni No Kuni II Tool + Help

Posted: Sat Jan 16, 2021 4:17 am
by speaker60
akderebur wrote: Sat May 12, 2018 6:21 am
AceWell wrote: wordUV at position 56 looks good to me :D
Great, thanks. I need to find a way to convert WORD to float in my code. I think I will check the Make_obj source :D
I was attempting to use this to convert g4pkm files from Yo-kai Watch 4
This tool can open them and save them as obj but the meshes are exploded, so the vert cords are not correct(not sure how best to put it)
https://drive.google.com/file/d/1L1xqRM ... sp=sharing
here is a sample files

Any chance you could take a look, took me a few hours to figure out how to extract the xci the cpk now im suck :/