Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat Apr 13, 2024 8:05 pm
All times are UTC + 0
SOUNDCLEAN - a script to organize sound.ini, and re-order declarations
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 27, 2023 2:13 am    Post subject:  SOUNDCLEAN - a script to organize sound.ini, and re-order declarations Reply with quote  Mark this post and the followings unread

This script requires TCL runtimes, you can get it here: https://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai/downloads/activetcl-8612-for-windows

SOUNDCLEAN is a very narrowly-focused script, and contains all its activity to making sound.ini neat and tidy, with a proper list. It has no fancy log output or messages, since it doesn't check for errors, or any dependencies, and only organizes the contents.

To this end, it gives you a few options, to re-index the declarations starting at 0, and various sortation options for sound objects in the declaration list. When these options are enabled, the list will start at 0, have every sound alphabetically organized, with ambient sounds (_amb_xxxxxx) placed first, very useful when adding ambient sounds to maps with FA2, followed by the sound objects themselves written in the same sequence as the list, that is alphabetically. Assuming every sound for a given unit or category is named similarly, they will end up grouped together for easier editing.

Previous versions didn't allow automatically overwriting the existing sound.ini and instead created a new sound(NEW).ini in parallel, requiring one extra step to use it, or alternately copy just the list back to the original. It wasn't clear if there might be any side effects of thoroughly re-organizing the ini, but tests have shown it has no effect on the game. The latest update has an 'enablebackup' option just like AICLEAN, which will rename the existing sound.ini before making a new one of the same name.

As always the sndclean.tcl will have to be edited to set filenames and path.

Current version: 1.5



sndclean.zip
 Description:

Download
 Filename:  sndclean.zip
 Filesize:  2.07 KB
 Downloaded:  8 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Last edited by G-E on Sun Jul 23, 2023 8:33 am; edited 1 time in total

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Jul 21, 2023 8:24 am    Post subject: Reply with quote  Mark this post and the followings unread

SOUNDCLEAN 1.6...

- speeds up loading sound.ini
- removes "random" from sound objects with only 1 wave
- now sorts everything starting with underline (not just _amb_*) to the front, so if you have other general sound types, they could be named distinctly



sndclean.zip
 Description:

Download
 Filename:  sndclean.zip
 Filesize:  2.17 KB
 Downloaded:  23 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1569s ][ Queries: 13 (0.0120s) ][ Debug on ]