- Admin
- #1
Need a good in-line, multiple file, text search and replace program.
I could write one up myself, but the time it'd take to work it up and test it would seriously cut into the production schedule, which is already WAY behind.
It needs to be able to search through multiple files, subdirectories, replace strings in files matching a mask. It must be able to "insert" and shuffle text if the replace string is of different size than the search string.
Preferably freeware, of course. ^_^
==== Why I need this (begin ramble):
There's just a sh*t load of things wrong with the scripts that need a massive search and replace of so many files that even Editplus can't open them all at once.
For instance, the "doing olympix" bug we have, seems to be the result of inconsistencies with variable declarations across scripts, sometimes standard vars used by the base AI are declared as constants by the higher scripts, sometimes they are not. Sometimes they are designed to define themselves pre-load. Sometimes they are not. It doesn't help that the rules as to which var types override which seem to be broken and unpredictable, but add this total inconsistency to that, and really strange stuff happens.
The temporary solution is to transfer all the variables used by the base monster scripts to post-load variables unique and local to that base script. Then monitor the old vars for changes every second or so. This is likely going to result in massive lag, especially under the older AI. (Newer AI scripts are more uniform, so they don't seem to need this as badly.)
Permanent solution would be to S&H through ALL the monster scripts, and make sure all those variables are post-load variables that the base script can alter without making everything go to hell.
There are many similar problems to this in the scripts, where the only solution I can think of are epic-scale search and replace. There are a great number of bugs I've put off fixing just due to the impracticality of editing hundreds of files individually, or even by folder.
========= [/ramble]
I could write one up myself, but the time it'd take to work it up and test it would seriously cut into the production schedule, which is already WAY behind.
It needs to be able to search through multiple files, subdirectories, replace strings in files matching a mask. It must be able to "insert" and shuffle text if the replace string is of different size than the search string.
Preferably freeware, of course. ^_^
==== Why I need this (begin ramble):
There's just a sh*t load of things wrong with the scripts that need a massive search and replace of so many files that even Editplus can't open them all at once.
For instance, the "doing olympix" bug we have, seems to be the result of inconsistencies with variable declarations across scripts, sometimes standard vars used by the base AI are declared as constants by the higher scripts, sometimes they are not. Sometimes they are designed to define themselves pre-load. Sometimes they are not. It doesn't help that the rules as to which var types override which seem to be broken and unpredictable, but add this total inconsistency to that, and really strange stuff happens.
The temporary solution is to transfer all the variables used by the base monster scripts to post-load variables unique and local to that base script. Then monitor the old vars for changes every second or so. This is likely going to result in massive lag, especially under the older AI. (Newer AI scripts are more uniform, so they don't seem to need this as badly.)
Permanent solution would be to S&H through ALL the monster scripts, and make sure all those variables are post-load variables that the base script can alter without making everything go to hell.
There are many similar problems to this in the scripts, where the only solution I can think of are epic-scale search and replace. There are a great number of bugs I've put off fixing just due to the impracticality of editing hundreds of files individually, or even by folder.
========= [/ramble]