![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-24-22, 07:55 AM
|
#1 | |
|
Stowaway
Posts: n/a
Downloads:
Uploads:
|
Quote:
In terms of my own the only one I've ever been interested in is the merchant visual ability, so I just use the NYGM values as is for a 16k env. or halve the range for an 8k env. I don't worry about different install sensors or sim.cfg settings in using a merchant node; I'm just interested in reducing it and a simple range and/or MaxBearing change will do that regardess. Fine adjustments not needed in other words in my opinion. But if desired, one would look at the sim.cfg file vs. the sensors.cfg file; the sensors.cfg file is for one's crew, etc. whereas the sim.cfg file affects the ai visuals, etc. |
|
|
01-24-22, 01:37 PM
|
#2 | |
|
Ace of the Deep
![]() |
Quote:
|
|
|
|
01-24-22, 05:43 PM
|
#3 |
|
GLOBAL MODDING TERRORIST
|
This is where the Scripting ability of 010 Editor would be VERY handy.
![]() You tell it to search the cfg files for a given Type, if found open the sns file and replace the O01 line with the new sensor. A Complete install adjusted in probably less then a minute! Last edited by Jeff-Groves; 01-24-22 at 06:33 PM. |
|
|
01-24-22, 07:14 PM
|
#4 |
|
GLOBAL MODDING TERRORIST
|
Here's a quick example on how to do it.
Code:
//------------------------------------------------
//--- 010 Editor Script File
//
// File: Silent Hunter AI Adjuster
// Authors: Jeff Groves
// E-mail: Privateer@GMX.US
// Version: 1
// Purpose: Script to change the AI Sensors on Merchant Ships
// Category: Change Code for SH3/4
// History:
// 1 2022/1/24 Jeff Groves
//------------------------------------------------
int i, X;
char Y[20];
X = InputRadioButtonBox( "Select your search", "You are about to Find all Merchent Ships", 0, "Abort", "Merchant Ships");
if( X != 1)
{
Y = "Abort";
End;
}
else
{
Y = "UnitType=101";
}
Printf( "You searched for %s\n", Y );
TFindInFilesResults r = FindInFiles( Y, InputDirectory( "Select Folder to search", "C:\\" ), "*.cfg" );
for( i = 0; i < r.count; i++ )
{
Printf( "%s\n", r.file[i].filename );
}
OutputPaneSave( "C:\\temp\\data2.log" );
Last edited by Jeff-Groves; 01-24-22 at 07:23 PM. |
|
|
01-24-22, 07:37 PM
|
#5 |
|
GLOBAL MODDING TERRORIST
|
Once you have the Merchant identified?
You just tell 010 to open it's .sns file and replace the O01 line then close the .sns file. |
|
|
01-24-22, 08:15 PM
|
#6 |
|
Krusty Krab
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,569
Downloads: 624
Uploads: 0
|
Wow Jeff, thanks !
![]() John Pancoast and I were just discussing this very thing in a PM. Add mind reader to the list of talents you have. Again, thank you very much!!! Good hunting, FUBAR295
__________________
Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment. |
|
|
01-24-22, 08:28 PM
|
#7 |
|
GLOBAL MODDING TERRORIST
|
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. Last edited by Jeff-Groves; 01-24-22 at 08:44 PM. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
