VPKEdit icon indicating copy to clipboard operation
VPKEdit copied to clipboard

Add some more CLI features

Open craftablescience opened this issue 1 year ago • 1 comments

  • [x] When packing, control preload amount of specific file types
  • [ ] Convert VPK into directory (extract)
  • [ ] Add individual files/directories to VPK
  • [ ] Extract individual files/directories from VPK
  • [ ] Remove individual files/directories from VPK
  • [ ] Print VPK directory tree to console
    • [ ] "Dry run" for VPK packing as well

craftablescience avatar Jan 07 '24 03:01 craftablescience

  • [ ] Print file to console without saving

Could posibly have a --dry-run argument and just simulate the output vpk structer

Example:

vpkeditcli -o whaterver_dir.vpk --dry-run

The vpk will be structured as follows
Root/
 materials/
    File_1.vtf
    Folder/
      File2.vtf

Nbc66 avatar Jan 08 '24 13:01 Nbc66

If you add support for extracting individual files, this would singlehandedly allow me to release my tool lol, I use a tool for vpk files written in python, but I don't want to rely on python

I'm making a very useful tool imo: it hooks into hammer, and when you press a shortcut, it looks what the currently selected prop is, and exports it to blender. You can compile it back from blender by pressing a button, and when you go back in hammer, you immediately see it changed. Can also compile the model as unique, affecting only the selected prop. And also has a functionality to combine multiple selected props into 1.

The cool thing is that it just expects blender to have Blender Source Tools installed, so all models are supported- (Maybe making use of SourceOps would be more handy, but I've only used BST)

So um, I'm explaining this to hopefully make you as excited as I am about this thingy and give you motivation to update the cli!

NvC-DmN-CH avatar Jun 07 '24 20:06 NvC-DmN-CH

Oh that's sick, I can get this done

craftablescience avatar Jun 07 '24 20:06 craftablescience

I'm really tired so I'm going to sleep now, and I have an event tomorrow after I wake up that will take a few hours. If I don't get this done in the next 24 hours make a callout post on my Twitter.com (just bump this thread, probably won't forget though)

craftablescience avatar Jun 08 '24 03:06 craftablescience

Oh it's okay, no need for urgency! Sorry if I made it seem like I'm waiting on you, it's going to take me a couple of weeks to get my program in a stable state. Really appreciate what you do

NvC-DmN-CH avatar Jun 08 '24 08:06 NvC-DmN-CH

Woops I've put this on the backlog for way too long

Getting it done now

craftablescience avatar Jun 16 '24 22:06 craftablescience

Extraction done

craftablescience avatar Jun 17 '24 07:06 craftablescience

Extraction done

omg

does the release for the CLI have this change?

NvC-DmN-CH avatar Jun 17 '24 14:06 NvC-DmN-CH

I'm not cutting a release until I finish checking off this whole list, but here's the standalone binaries: VPKEdit-Linux-Standalone-CLI-gcc-Release.zip VPKEdit-Windows-Standalone-CLI-msvc-Release.zip

craftablescience avatar Jun 17 '24 14:06 craftablescience

This is finally done, release will be up in under an hour

craftablescience avatar Jul 18 '24 19:07 craftablescience