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

Compiling screws up my game files. #58

Open
mrwallace888 opened this issue Aug 21, 2023 · 1 comment
Open

Compiling screws up my game files. #58

mrwallace888 opened this issue Aug 21, 2023 · 1 comment

Comments

@mrwallace888
Copy link

Despite both my input and output folders being in a different directory, Crowbar is going into my game directory's files and deleting/moving the model files from the game entirely when I compile. Why? How do I get it to not do that?
image

@ZeqMacaw
Copy link
Owner

I apologize for the inconvenience and the confusion. Let me describe what Crowbar actually does when compiling.

Crowbar has always called a game's studiomdl.exe, which does NOT have any way to compile the model files into any other folder except where the QC file's $modelname states within the game's "models" folder. Crowbar, as indicated in the image provided in first post, moves the compiled model files after studiomdl.exe compiles them.

I have on my ToDo list to have Crowbar temporarily rename any existing model files before running a compile and then rename them back after a compile, to prevent the problem you described. However, I am not sure when that feature will be implemented.

I can think of two workarounds that might work for your situation. Workaround One: Rename the existing "models" folder to something else before compiling and then rename it back to "models" after compiling. Workaround Two: Pack the "models" folder into a VPK and place the VPK in a folder that the game can use, and then delete the "models" folder.

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

2 participants