edit .hip file

   6742   11   0
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
Is it possible to edit .hip files by hand or script ? Whenever I tried it I just get a corrupt header error message.
Is this some DRM mechanism ?
www.woogieworks.at
User Avatar
Member
1904 posts
Joined: 11月 2006
Offline
Since a hip file is basically a cpio file you need to use hexpand and hcollapse to expand the file out for editing and then collapse it back into a hip file.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
if I just try to list the files in the archive with cpio -i -t < test.hipnc I get thousands of error messages cpio: Malformed number
Is there some offset involved ?
www.woogieworks.at
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
/opt/hfs13.0.1067/bin/hexpand ./test.hipnc
bash: /opt/hfs13.0.1067/bin/hexpand: /bin/csh: bad interpreter: No such file or directory
www.woogieworks.at
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
Sorry I didnt have a csh installed. But I still have a problem.
export PATH=$PATHopt/hfs13.0.1067/bin/
hexpand ./test.hipnc 
test.hipnc does not seem to be a .hip file.

Edited by dulo - 2016年8月5日 10:08:35
www.woogieworks.at
User Avatar
Member
1904 posts
Joined: 11月 2006
Offline
Oh… Yeah, you won't be able to hexpand .hipnc files since that's basically cheating and would allow people to extract work done in a non-commercial file for use in commercial files.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
Is it possible to expand indie hip files ?
www.woogieworks.at
User Avatar
Member
383 posts
Joined: 6月 2010
Offline
So I guess its also impossible to extract indie hip files ?
www.woogieworks.at
User Avatar
Member
696 posts
Joined: 3月 2006
Offline
I've never attempted to use hexpand before. Is it still working in H16?
Or maybe it's a Windows issue?

If I attempt to run the Houdini Command Line Tools,
'hexpand' is not recognized as an internal or external command, operable program or batch file.
Stephen Tucker
VFXTD
User Avatar
Member
696 posts
Joined: 3月 2006
Offline
Allegro
Or maybe it's a Windows issue?

So from what I can tell, hexpand and hcollapse don't work with windows, and instead you use hcpio [www.sidefx.com]. Is there any other documentation than this for this utility? I seem to be able to use hcpio to extract the .hip file into folders/files however I'm not having any luck using

"[where exe is located]\hcpio.exe" -o -O .\test.hip

After I enter that in the command line, it just sits there doing nothing… if I type a file name, it lets me move onto a new line, and if I type anything else it says "Warning *.* not found - skipping. Not sure what else I should be doing to assemble the .hip file.
Edited by Allegro - 2017年10月14日 20:17:51
Stephen Tucker
VFXTD
User Avatar
Member
1390 posts
Joined: 7月 2005
Offline
On Windows just use 7-zip.
User Avatar
Member
7 posts
Joined: 2月 2019
Offline
Hey Symek,

Can you actually collapse back into with 7zip ? I believe 7zip cannot write cpio files ?

Thanks for the help, trying to rescue a corrupted hip file
  • Quick Links