maxton / LibOrbisPkg

Library, GUI, CLI for creating, inspecting, and modifying PS4 PKG, SFO, PFS, and related filetypes

Home Page:https://ci.appveyor.com/project/maxton/liborbispkg/build/artifacts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playgo Chunk hash file was not allocated enough space

NikolausC opened this issue · comments

commented

When creating a pkg from a gp4, the following error is shown in the Log Window:

Preparing inner PFS...
 [innerpfs] Setting up filesystem structure...
 [innerpfs] Creating inodes (5 dirs and 29 files)...
 [innerpfs] Calculating data block layout...
Preparing outer PFS...
 [outerpfs] Setting up filesystem structure...
 [outerpfs] Creating inodes (0 dirs and 1 files)...
 [outerpfs] Calculating data block layout...
Preparing PKG header and body...
Error: System.Exception: Playgo Chunk hash file was not allocated enough space. Report this as a bug
   at LibOrbisPkg.PKG.PkgBuilder.BuildPkg(Int64 pfsSize)
   at LibOrbisPkg.PKG.PkgBuilder.Write(String filename, Action`1 logger)
   at PkgEditor.Views.GP4View.<>c__DisplayClass22_0.<buildPkg_Click>b__2()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PkgEditor.Views.GP4View.<buildPkg_Click>d__22.MoveNext()
   at LibOrbisPkg.PKG.PkgBuilder.BuildPkg(Int64 pfsSize)
   at LibOrbisPkg.PKG.PkgBuilder.Write(String filename, Action`1 logger)
   at PkgEditor.Views.GP4View.<>c__DisplayClass22_0.<buildPkg_Click>b__2()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PkgEditor.Views.GP4View.<buildPkg_Click>d__22.MoveNext()
commented

Aw, I really thought I had fixed this particular bug. Can you attach a project that reproduces this error?

commented

I have same issue
Project - P5R.pkg, that cursed thing.
But i can build pkg succesfully if i remove/comment size comparsion check

I got the same error today with PkgTool.Core! It said I should report this as a bug.
I extracted a PKG with "PkgTool.Core pkg_makegp4", then (without changing anything) I tried to rebuild it with "PkgTool.Core pkg_build", and then the error showed up.
project.zip

Exact same error using PkgEditor to build a PKG from a GP4 project.
Project.zip