craftablescience / craftablescience/VPKEdit

Root items first character cut off

Open
#323 0 comments 0 reactions 1 assignee View on GitHub

@craftablescience is already working on this.

Since Aug 6, 2026.

bug
Dominant language
C++
Stars
746
Forks
56
Avg merge
5d 16h
Merged PRs (30d)
2

Description

Describe the Bug

Creating a VPK from a folder while being inside said folder (i.e the current directory) results in the created VPK having the first letter of its root items cutoff. This does not occur when you are in the parent directory and select the same folder.
An example of what happens is that "materials", "models", and "mod.json" folders and file get the first letter cutoff, resulting in "aterials", "odels", and "od.json"
Image

https://github.com/user-attachments/assets/7cde1c66-0284-4477-b358-9efd69d167ca

To Reproduce
  1. File -> Create From Folder -> VPK
  2. Set any of the settings to anything
  3. Go inside the folder you want to turn into a VPK, and make sure the current directory is what is being used
  4. Save it somewhere nice
  5. Open it, and observe that the first letter has been cut off for each root folder/file item
VPKEdit Version

VPKEdit v5.0.0-beta.4

Operating System

Operating System: EndeavourOS, Kernel: Linux 7.1.5-arch1-2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.