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

Unable to replace file in std.cpk (K-On! Houkago Live!!) #8

Open
kourm opened this issue May 29, 2018 · 0 comments
Open

Unable to replace file in std.cpk (K-On! Houkago Live!!) #8

kourm opened this issue May 29, 2018 · 0 comments

Comments

@kourm
Copy link

kourm commented May 29, 2018

I'm trying to replace a file in std.cpk. It extracts fine, but when trying replace, CriPakTools.exe fails with:

$ mono CriPakTools/bin/Debug/CriPakTools.exe ../K-On\!\ Houkago\ Live\!\!/PSP_GAME/USRDIR/std.cpk teatime.bin ../extracted/std.cpk/PSP_GAME/USRDIR/bind/teatime.bin std.cpk
CriPakTools

Based off Falo's code relased on Xentax forums (see readme.txt), modded by Nanashi3 from FuwaNovels.
Insertion code by EsperKnight


Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at CriPakTools.Program.Main (System.String[] args) [0x005d4] in <63025593547a400085707f511166cbdb>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at CriPakTools.Program.Main (System.String[] args) [0x005d4] in <63025593547a400085707f511166cbdb>:0 

(The replacement file is simply the original)

A short printf-debugging session led me to believe that entries[i].FileSize in Program.cs:125 isn't properly set a few iterations in (maybe something like null?). But as I have no clue about C# I gave up on fixing 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

1 participant