AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   Quick way to make multiple copies of *_detail.txt files (https://forums.alliedmods.net/showthread.php?t=321837)

RoboCop 03-02-2020 11:10

Quick way to make multiple copies of *_detail.txt files
 
Hello I'm currently working on adding detailed textures by using "r_detailtextures 1" and "r_detailtexturessupported 1" in the CS 1.6 console. Those detail textures initially came for CZ near 2003 and I've been making some enhancements to them. The problem is coping a set of multiple _detail.txt assigned to each .bsp map as well having them suffixed with _detail.

In order to explain further, the de_dust_detail.txt contains:-

Code:

-0csSandWall    detail/wall        2.0        2.0
-0Sand            detail/sand        4.0        4.0
-0SandRock          detail/rock        4.0        4.0
-1csSandWall    detail/wall        2.0        2.0
-1Sand            detail/sand        4.0        4.0
-1SandRock          detail/rock        4.0        4.0
-2Sand            detail/sand        4.0        4.0
-2SandRock          detail/rock        4.0        4.0
-3Sand          detail/sand        4.0        4.0
csSandWall2            detail/wall        2.0        2.0
MltryCrteSd            detail/metal        5.0        5.0
MltryCrteSd2    detail/metal        5.0        5.0
MltryCrteTp            detail/metal        5.0        5.0
SandCCrete            detail/tiles        4.0        4.0
SandCrtLrgSd    detail/wood        4.0        4.0
SandCrtLrgTp    detail/wood        4.0        4.0
SandCrtSmSd          detail/wood        4.0        4.0
SandCrtSmTp          detail/wood        4.0        4.0
SandRoad            detail/sand        4.0        4.0
SandRoadTgt            detail/sand        4.0        4.0
SandRoadTgtA    detail/sand        4.0        4.0
SandRoadTgtB    detail/sand        4.0        4.0
SandTrim            detail/ridge        1.0        1.0
SandWllDoor            detail/wood        4.0        4.0
SandWllDoor2    detail/wood        4.0        4.0
SandWllWndw            detail/wall        2.0        2.0
SandWllWndw2    detail/wall        2.0        2.0
SandWllWndw3    detail/wall        2.0        2.0

Now CS 1.6 Detail Textures only works if the CS 1.6 mapname searches for the detail texture file, like when de_dust map boots up then automatically loads up de_dust_detail.txt e.g. [Search] <MAPNAME>_detail.txt as long the de_dust_detail.txt exists in /maps folder.

But say if I wanted to highlight or even have those .bsp maps in a specific folder - then make a copy of de_dust_detail.txt text content for like de_dust4ever.bsp (which doesn't have the detail texture .txt file) and producing a de_dust4ever_detail.txt - which can be done manually no sweat. However for like say doing a huge multiple selection of various dust maps using the de_dust_detail.txt can be very time consuming and awkward. I don't know if there is a tool, NotePad++ option or maybe a Linux Shell/Terminal command to allow this task to work. I know those _detail.txt files aren't needed for HLDS servers as this topic is aimed for CS 1.6 client - so you have to forgive me if I've missed the proper sub-forums for assistance needed for CS 1.6 client.

fysiks 03-03-2020 21:26

Re: Quick way to make multiple copies of *_detail.txt files
 
That's a lot of confusing words to request something that copies and renames files based on map names.

Obviously, this can be done with any programming or scripting language (Shell, Batch, Python, PHP, etc). I don't recall Notepad++ having anything natively that could do something like this. However, if it's a relatively small number of maps, I'd just recommend doing it manually. How many maps are you needing to do this for?

P.S. This is more of an off-topic type of post.

RoboCop 03-05-2020 09:01

Re: Quick way to make multiple copies of *_detail.txt files
 
Quote:

Originally Posted by fysiks (Post 2685757)
How many maps are you needing to do this for?

P.S. This is more of an off-topic type of post.

Well I've got over 5000 CS maps but of course i only need around 50 or 80 maps to have those detail textures.

fysiks 03-06-2020 21:53

Re: Quick way to make multiple copies of *_detail.txt files
 
Is there a particular scripting/programming language that you'll be able to execute?

Rahul.N 03-07-2020 03:00

Re: Quick way to make multiple copies of *_detail.txt files
 
Quote:

Originally Posted by fysiks (Post 2686045)
Is there a particular scripting/programming language that you'll be able to execute?

Hello Sir,
Can you please help me, I am in urgent need to fix a problem referring to my server.
Thanks
Sorry I came here on someone else's thread to call you out. Can you check Sagiri's (Needed Solution) thread? For more info.
Again apologies for coming through someone else's thread.

fysiks 03-07-2020 22:11

Re: Quick way to make multiple copies of *_detail.txt files
 
If you don't have anything to add to this topic, don't post.


All times are GMT -4. The time now is 12:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.