Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-03-2020 , 21:26   Re: Quick way to make multiple copies of *_detail.txt files
Reply With Quote #2

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.
__________________
fysiks is offline
RoboCop
AlliedModders Donor
Join Date: Dec 2010
Location: Dundee, Scotland
Old 03-05-2020 , 09:01   Re: Quick way to make multiple copies of *_detail.txt files
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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.
__________________
vBulletin Webmaster Since 2001
Bots-United Webmaster and Botmaster
RoboCop is offline
Send a message via Skype™ to RoboCop
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-06-2020 , 21:53   Re: Quick way to make multiple copies of *_detail.txt files
Reply With Quote #4

Is there a particular scripting/programming language that you'll be able to execute?
__________________
fysiks is offline
Rahul.N
New Member
Join Date: Mar 2020
Old 03-07-2020 , 03:00   Re: Quick way to make multiple copies of *_detail.txt files
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
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.
Rahul.N is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-07-2020 , 22:11   Re: Quick way to make multiple copies of *_detail.txt files
Reply With Quote #6

If you don't have anything to add to this topic, don't post.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:04.


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