View Single Post
Old 01-25-22, 07:11 AM   #17
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 794
Downloads: 27
Uploads: 0


Default

Quote:
Originally Posted by Jeff-Groves View Post
The Scripting ability of 010 is why I push it so much!
I rarely program a full exe now days because of it's open abilities!
Sure it costs a few bucks but it is HANDS DOWN the best thing since sliced bread!


You see how fast I did a simple example Script?

That Script is actually just an edited Script I had on hand for finding the Shadow objects in the dat files.
So once you have a Script? It's easy to modify them for other needs!

I have to spend a few days in a Motel so I may try to do a complete Script for you to whack the files in one swoop.
No promises but I'll see what happens.

Now. Since ALL Merchants are Types 100 to Type 105?
You could Wild Card the Search to keep from doing multiple Else If statements.
Quote:
Originally Posted by Jeff-Groves View Post
A WildCard search on a Stock SH3 shows 23 Units.

Stock GWX shows 72
Easiest is just search a UnitType=10.
That will pop them all.

NOW! Right here is where We can change things up!


for( i = 0; i < r.count; i++ )
{
Printf( "%s\n", r.file[i].filename );
}


Here is where We can grab file names and direct 010 to open the sns file and change things.
I'll strip the cfg extension and tell 010 to open the ShipName.sns file. Then have it find the O01 line and change it.
then it will simply close the file with the changes made.
I won't believe it really works until I didn't see it with my eyes...

A program removing all the "SHD" garbage would be very apreciated...

Last edited by Mister_M; 01-25-22 at 05:17 PM.
Mister_M is offline   Reply With Quote