Coder Social home page Coder Social logo

source-engine-model-junk-file-remover's Introduction

Source Engine Model Junk File Remover

A Simple VBScript that will make modelers lifes much easier in the Source Engine space, especially when it comes to GMod since recently, GMod now requires addons to remove sw.vtx files, since sw.vtx files are the same as dx80.vtx and dx90.vtx.

If you have a few models, then that wouldn't be a big deal, but if you had lots of models, like props, NPC models, Playermodels, then it's more of a chore to select the files and delete them, well no more.

This will work for any Source Engine Game (Garry's Mod, Left 4 Dead, Left 4 Dead 2, Team Fortress 2) Any game that is on Source 1.

This will search dx80.vtx and sw.vtx files and you can choose to move the dx80.vtx files, sw.vtx files, or both into the Recycling Bin.

How to Use?

To use the script, place the VBS script into and directory (where your models are located) that you want to move the junk files into the Recycling Bin. It will not move everything, as you need to go into each directory and repeat the steps.

This is my first time messing with VBScripts, so I tend to make sure that no severe mistakes are made, if you're cautious I do not blame you, you can make a backup of your model directory before you attempt to clear, it should at least tell you the files that it finds.

You can choose to not delete dx80.vtx files and skip to sw.vtx files. I would recommend to delete both since It's 2024, and there's barely any hardware that is running DirectX 8.

The script has found DX80.VTX files.

image

It will ask you to move them to the Recycling Bin.

image

Files been moved to the bin.

image

Same thing for SW.VTX files

image image image

Files moved to the Recycling Bin, waiting to be deleted by you.

image

This does save you space, based on how large the model is (Lots of textures, bodygroups). This is both sw.vtx and dx80.vtx files here.

image

FAQ

  • Will this delete other files?

    • No, it will only delete dx80.vtx and sw.vtx files. It should never delete any other files besides those two.
  • It's saying it doesn't detect X files, but there are files that it's suppose to find.

    • Make sure the VBScript is inside the directory of the folder that you want to remove the junk files, please reference this screenshot

Conclusion

Make modding Source Engine games easier and fun by spending less time manually deleting model junk files, thanks and have fun.

PSA: No files were harmed in the making of this script and screenshots, please laugh for comedic purposes.

source-engine-model-junk-file-remover's People

Contributors

combineslayer24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.