Getting material/model paths easy way (Windows)
1 Attachment(s)
Hey!
Often when I add new models to my server I get pissed off to get all the paths for all the files I need and add to sm_downloader or anywhere else. I checked everywhere, buy couldnt fine anything usefull to make this job easier, so I needed to write my own script. Here is how it looks: http://i.imgur.com/OaKb6qx.gif Soo, all you need to do, the new models/materials that you want to put in your server, you put in some kind of directory at your PC. Then just copy paths.bat file to that directory and open it - whoola, all the paths will open up in text editor. You just need to delete the first line and your ready to copy, paste. Im not 100% this will work for you, because Im not an expert in batch script, but it should work. Here is the code if anyone wants to create their own batch file Code:
@ECHO OFF Or you can just download the 7z with the batch file over here |
Re: Getting material/model paths easy way (Windows)
✪ boomix: making alliedmods topic
✪ boomix: so everyone gets it ✪ boomix: https://forums.alliedmods.net/showthread.php?p=2533472 ✪ boomix: post something good http://papercrave.com/wp-content/upl...hing-good1.jpg |
Re: Getting material/model paths easy way (Windows)
Nice, I don't need to run cmd.exe and use "dir" command anymore.
|
Re: Getting material/model paths easy way (Windows)
Quote:
Simply just add the folder names that contains content to be downloaded: Code:
materials/models/player/slow There's only 74 lines in one of my downloads_simple.ini files, which takes care of downloading 3672 files from the materials/models folders... Can't be more "simple" than that... |
Re: Getting material/model paths easy way (Windows)
Quote:
Okey, maybe sm_downloader was not the best example, but this could be handy in more ways, even if I want to plugin to build into plugin automatic downloads for all the files. |
Re: Getting material/model paths easy way (Windows)
This helps too when writing your own plugins.
https://forums.alliedmods.net/showthread.php?t=206496 |
Re: Getting material/model paths easy way (Windows)
Quote:
|
Re: Getting material/model paths easy way (Windows)
Quote:
Code:
for /r %%F in (.) do ( |
Re: Getting material/model paths easy way (Windows)
Quote:
Code:
. Code:
models\player\custom_player\kodua\doom2016\ |
All times are GMT -4. The time now is 19:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.