SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-24-22, 07:20 AM   #1
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 812
Downloads: 27
Uploads: 0


Default

Would be cool to post the NYGM values of each X_visual sensor (or your own version), along with the Sensors.cfg and Sim.cfg (in data/Cfg folder).

Mister_M is offline   Reply With Quote
Old 01-24-22, 07:55 AM   #2
John Pancoast
Ocean Warrior
 
Join Date: Apr 2002
Location: Minnysoda
Posts: 3,189
Downloads: 490
Uploads: 4


Default

Quote:
Originally Posted by Mister_M View Post
Would be cool to post the NYGM values of each X_visual sensor (or your own version), along with the Sensors.cfg and Sim.cfg (in data/Cfg folder).

I don't have a way to post photos/screenshots but here are the files needed from a base NYGM install. S3D or Timetraveler's program are needed to view the ai_sensors.dat file, the relevant nodes are at the top of the list.
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.
__________________
"Realistic" is not always GAME-GOOD." - Wave Skipper
John Pancoast is offline   Reply With Quote
Old 01-24-22, 01:37 PM   #3
Mister_M
Grey Wolf
 
Join Date: Feb 2021
Posts: 812
Downloads: 27
Uploads: 0


Default

Quote:
Originally Posted by John Pancoast View Post
I don't have a way to post photos/screenshots but here are the files needed from a base NYGM install. S3D or Timetraveler's program are needed to view the ai_sensors.dat file, the relevant nodes are at the top of the list.
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.
Thanks !
Mister_M is offline   Reply With Quote
Old 01-24-22, 05:43 PM   #4
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,321
Downloads: 130
Uploads: 0


Default

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!
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 01-24-22 at 06:33 PM.
Jeff-Groves is offline   Reply With Quote
Old 01-24-22, 07:14 PM   #5
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,321
Downloads: 130
Uploads: 0


Default

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" );
Easy to add Else if statements for all Merchant Types.
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 01-24-22 at 07:23 PM.
Jeff-Groves is offline   Reply With Quote
Old 01-24-22, 07:37 PM   #6
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,321
Downloads: 130
Uploads: 0


Default

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.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 01-24-22, 08:15 PM   #7
FUBAR295
Krusty Krab
 
FUBAR295's Avatar
 
Join Date: Mar 2002
Location: Decks awash in the North Atlantic
Posts: 1,296
Downloads: 442
Uploads: 0
Default

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.


FUBAR295 is online   Reply With Quote
Reply


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 -5. The time now is 07:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.