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

Ni No Kuni II Tool + Help

Post questions about game models here, or help out others!
Post Reply
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Ni No Kuni II Tool + Help

Post 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
Last edited by akderebur on Sun May 13, 2018 3:21 pm, edited 1 time in total.
Acewell
VIP member
VIP member
Posts: 1330
Joined: Wed Nov 05, 2008 12:16 pm
Has thanked: 2710 times
Been thanked: 884 times

Re: Ni No Kuni II Tool + Help

Post by Acewell »

akderebur wrote:I need some help with the uvs.
wordUV at position 56 looks good to me :D
a30001000_g4mg.png
You do not have the required permissions to view the files attached to this post.
akderebur
double-veteran
double-veteran
Posts: 640
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 65 times
Been thanked: 898 times

Re: Ni No Kuni II Tool + Help

Post 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
speaker60
beginner
Posts: 32
Joined: Sat Jun 17, 2017 5:41 pm
Has thanked: 1 time
Been thanked: 12 times

Re: Ni No Kuni II Tool + Help

Post 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 :/
Post Reply