View Single Post
Author Message
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 03-02-2020 , 11:10   Quick way to make multiple copies of *_detail.txt files
Reply With Quote #1

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.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop