VPKEdit icon indicating copy to clipboard operation
VPKEdit copied to clipboard

Renaming `panorama` folder in CS2 pak01_dir.vpk freezes the app

Open szmarczak opened this issue 1 year ago • 3 comments

Describe the Bug

obraz

To Reproduce

As in the title.

Operating System

Windows 11, VPKEdit v4.2.0

szmarczak avatar Apr 27 '24 21:04 szmarczak

To the best of my knowledge it actually does work, it just takes a very long time to complete the operation. So I suggest two things for myself to implement:

  • Add an indeterminate progress bar to the application when renaming directories, so it doesn't appear to freeze
  • Change the internal data structure used to hold pack files in memory so renaming directories is quicker

The last one will be a larger refactor, but the first one is easy to do and will be tracked by this issue.

craftablescience avatar Apr 27 '24 22:04 craftablescience

Due to some stupid technical nonsense I'm going to have to push this back and only do the second item in that list, which is what the correct fix for the issue is anyways

craftablescience avatar May 27 '24 06:05 craftablescience

To the best of my knowledge it actually does work, it just takes a very long time to complete the operation. So I suggest two things for myself to implement:

  • Add an indeterminate progress bar to the application when renaming directories, so it doesn't appear to freeze
  • Change the internal data structure used to hold pack files in memory so renaming directories is quicker

The last one will be a larger refactor, but the first one is easy to do and will be tracked by this issue.

Done both of these things, but I still need to hook up the fast rename path to the GUI, which is proving a bit more difficult than I thought it would be

craftablescience avatar Aug 20 '24 20:08 craftablescience