Kingdom Hearts Model Viewer

Discussion in 'Misc PS2 Discussion' started by Shinju, Apr 22, 2006.

  1. dsfgd

    dsfgd New Member

    Messages:
    64
    Likes Received:
    0
    i had some free time to play again with Kingdom Hearts 1 Final Mix and 2 Final Mix+

    since now i'm a real programmer i wrote for both games a new dumper tool, it supports much more files then yaz0r's tool (cracking the FileHash algo was funny :lol:)

    here both if anyone wanna write a tool ^^

    KH1 calcHash:
    Code:
    int calcHash(char *FileName)
    {
    	int FileHash=0,HashXor=0;
    	for (unsigned int i = 0; i < strlen(FileName); i++ )
    	{
    		HashXor = FileName[i] << 16;
    		HashXor %= 0x11021;
    		
    		FileHash *= 2;
    		FileHash ^= HashXor;
    	}
    	return FileHash;
    }
    KH2 calcHash:
    Code:
    int calcHash(char *FileName)
    {
    	int x, FileHash = -1;
    	for (unsigned int i = 0; i < strlen(FileName); i++ )
    	{
    		x = 7;
    		FileHash ^= FileName[i] << 24;
    		do
    		{
    			if ( FileHash >= 0 )
    			{
    				FileHash *= 2;
    			}
    			else
    			{
    				FileHash *= 2;
    				FileHash ^= 0x4C11DB7;
    			}
    			x--;
    		}
    		while ( x >= 0 );
    	}
    	return -1 - FileHash;
    }
    so far:
    - KHFM: yaz0r ~900 files, my tool ~2500 files from ~3300 files
    - KH2FM+: yaz0r ~2500 files, my tool ~5000 files from ~9000 files
    it dumps every known filename to do this,

    i found some new interestings 3D Models and other stuff:
    ImageBanana - toystory.jpg

    P_EX300 & P_EX310, it seams Toy Story was planned as a world or NPC's ^^

    when i fixed some bugs i will release both dumpers.

    PS: i tested translating Final Mix, it is possible, but it's a lot of work:
    ImageBanana - gsdx_20100711212055.png
    changing the font to support lowercase is possible but they use a font like in the old snes days ^^

    (i'm not going to translate Final Mix, this was just a test if it's easy or hard to do.)
  2. Nanny_Ogg

    Nanny_Ogg New Member

    Messages:
    12
    Likes Received:
    0
    Wow, thanks. I can not wait until you release the dumper tools.
  3. Dark_Ansem

    Dark_Ansem New Member

    Messages:
    56
    Likes Received:
    0
    which programs are required to dump models from the Final Mix games?
  4. cooliscool

    cooliscool Honda - Powered by Senna Staff Member

    Messages:
    7,241
    Likes Received:
    2
    That's one of the greatest things I've ever seen. :thumb:
  5. iZerox

    iZerox New Member

    Messages:
    4
    Likes Received:
    0
    dsfgd I'd love to get your new dumper even if it isn't perfect.
  6. Mirrorman95

    Mirrorman95 New Member

    Messages:
    3
    Likes Received:
    0
    I have found a useful Birth By Sleep 3D extractor here. I suggest downloading P3dO to view the models.

    By the way, can someone convert dsfgd's KH2 dumper to BMS script?
    Also, does anyone have an mdlx file converter? MVWX crashes too often to be practical.
  7. wiser

    wiser New Member

    Messages:
    1
    Likes Received:
    0
    Hi everybody, I have a problem with FFXIIdumper, when i try to run it, it crash , do i made any mistake while running it or I missing any steps?
    Last edited: Aug 16, 2010
  8. Aurangzeb56

    Aurangzeb56 New Member

    Messages:
    7
    Likes Received:
    0
    hmm well the easiest way and it also works for me is that i put FFXII.iso and FFXIIdumper in the same folder and then in the folder right click ---> new ---> text document and write this in the text document "path of exe" "path of iso"

    write the path of ur dumper and in the other place the path of ur iso file and save it and change tht txt files extension from .txt to .bat and double click it,it will start dumping models ^^

    Hmm well i HAVE extracted the models in the PMO format using QuickBMS BUT i don't know how to view the file properly,so can you tell me that how can we view them properly?? ^^
    Last edited: Aug 23, 2010
  9. Mirrorman95

    Mirrorman95 New Member

    Messages:
    3
    Likes Received:
    0
    Like I said two posts ago, use Falo's pmo converter, and view with P3dO.
  10. Aurangzeb56

    Aurangzeb56 New Member

    Messages:
    7
    Likes Received:
    0
    by view them properly i mean the textures in the right place as in fixed UVs
  11. Aurangzeb56

    Aurangzeb56 New Member

    Messages:
    7
    Likes Received:
    0
    so will u ever release your dumper dsfgd??
  12. dsfgd

    dsfgd New Member

    Messages:
    64
    Likes Received:
    0
    I totally forgot to do it ^^
    new_kh_dumper.rar

    I use Deep Exploration 6 to view KH BBS models.

    I made a new exporter, which supports 99% of the PMO format, except normals and bones, i think they are generated, but i don't know how.
    The last 1% is just a small UV bug and for bones i need to change from Wavefront OBJ to Valve SMD.
  13. Dark_Ansem

    Dark_Ansem New Member

    Messages:
    56
    Likes Received:
    0
    thanks for the release!
  14. Nanny_Ogg

    Nanny_Ogg New Member

    Messages:
    12
    Likes Received:
    0
    Thanks dsfgd.

    But I'm still looking for the KH1 weapon models. How do I create a nametable to get them? Are the corresponding idx files somehwere on the disk?
  15. dsfgd

    dsfgd New Member

    Messages:
    64
    Likes Received:
    0
    KH1 uses only KINGDOM.IDX.

    I think the weapons are xw_%s_%04d.wpn (xw_ex_5010.wpn)

    They looks like mdls without the 64 Byte MOBJ header.
  16. Dark_Ansem

    Dark_Ansem New Member

    Messages:
    56
    Likes Received:
    0
    does this wonderful dumper get also all the battle quotes?
  17. dsfgd

    dsfgd New Member

    Messages:
    64
    Likes Received:
    0
    You mean the voices from bosses ?
    Like Sephiroth's "I am the chosen One" or "Decent Heartless Angel" ?

    They are part of the battle model, example xa_ex_3000.mdls this is Sephiroth's battle model, scan it with PSound to get them.
  18. Dark_Ansem

    Dark_Ansem New Member

    Messages:
    56
    Likes Received:
    0
    so it will be the same for Ansem or riku possessed? thank you very much!

    dammit, how does one view .mdls files?
    Last edited: Sep 27, 2010
  19. iZerox

    iZerox New Member

    Messages:
    4
    Likes Received:
    0
    Thanks a lot dsfgd for the new dumper. I can't wait to look and see if those Buzz and Woody models have UV maps.

    I'm also anxiously awaiting a new version of your KH_PMO. (I'm much more active over at Xentax though.)
  20. Nanny_Ogg

    Nanny_Ogg New Member

    Messages:
    12
    Likes Received:
    0
    I guess you're right. Strange that SE used different model files for the weapons. Back to the sketchboard.:)

Share This Page