Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KINGDOM HEARTS HD 1.5+2.5 ReMIX (PC, EGS) #75

Open
Albeoris opened this issue Apr 3, 2021 · 2 comments
Open

KINGDOM HEARTS HD 1.5+2.5 ReMIX (PC, EGS) #75

Albeoris opened this issue Apr 3, 2021 · 2 comments

Comments

@Albeoris
Copy link

Albeoris commented Apr 3, 2021

Attempting to open the package results in an error:

System.Exception: Invalid CNT header
   в LibOrbisPkg.PKG.PkgReader.ReadHeader()
   в PkgEditor.Views.PkgView..ctor(String path)
   в PkgEditor.MainWin.openPkg(String filename)
   в PkgEditor.MainWin.ShowOpenFileDialog(String title, String filetypes, Action`1 successCb)
   в System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   в System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   в System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   в System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   в System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   в System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   в System.Windows.Forms.Control.WndProc(Message& m)
   в System.Windows.Forms.ToolStrip.WndProc(Message& m)
   в System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@Albeoris
Copy link
Author

Albeoris commented Apr 3, 2021

.hed:
bbs_first.hed.zip

.pkg:
https://disk.yandex.ru/d/A6rVMkMcxwkBRw

Was the header just put in a separate file?
Or is it a completely different format despite the expansion?

.hed:
0x00 (16 byte) 128-bit hash?
0x10 <entries>

.hed entry (32 byte):
0x00 (8 byte) - position in .pkg
0x08 (4 byte) - size in .pkg (16 byte + compressed size)
0x0C (4 byte) - uncompressed size
0x10 (16 byte) 128-bit hash?

.pkg entry (16 byte + compressed size):
0x00 (4 byte) - uncompressed size
0x04 (4 byte) - unknown (flags?)
0x08 (4 byte) - compressed size (ffffffff if not compressed)
0x0C (4 byte) - unknown (flags?)
<comprssed data>

Unpacker:
https://www.mediafire.com/file/rq7mw0k9o8co6q4/KH3DAnim_PC.rar/file

@LinkleZe
Copy link

I've been wondering about this too! Hopefully someone can solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants