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 > Silent Hunter III
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-16-26, 06:29 PM   #1
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Icon9 How to make Player radar work for playable ships?

Hi this is mainly geared towards people who work on subs I guess but I've been at this for awhile today but I finally started on making playable ships. Right now my issue is I can't seem to get my crew to give me any vision outside of using binoculars or uzo. I don't know if my hierarchy is wrong or something or a sensors.dat issue. Same thing with radar I don't know how to set it up

Edit: I was messing with some things and found that cfg#O01 is what controls the vision but I don't know where thats referenced from or how to activate it

Edit 2: So I currently have radar on my ship but it does absolutely nothing and I don't know how to get it to spin once I activate it. I don't know if this is because I'm adding sensordata into VDguns and then having it overwrite the one thats being interfaced inside the game on GWX KC

This is what I've done so far



Last edited by Bladekill1298; 07-21-26 at 09:05 PM. Reason: New Title for different needs
Bladekill1298 is offline   Reply With Quote
Old 07-18-26, 04:18 AM   #2
VikingGrandad
Chief
 
Join Date: Jul 2005
Location: AM93
Posts: 319
Downloads: 99
Uploads: 0
Default

"O" is an optical/visual sensor (i.e. it simulates a lookout crewman)
"01" is the number of that O sensor on the unit
The sensor is listed in the unit's .sns file, which references a sensor with the listed name in a library file.
__________________
VikingGrandad is offline   Reply With Quote
Old 07-18-26, 04:33 PM   #3
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by VikingGrandad View Post
"O" is an optical/visual sensor (i.e. it simulates a lookout crewman)
"01" is the number of that O sensor on the unit
The sensor is listed in the unit's .sns file, which references a sensor with the listed name in a library file.

Thank you very much, does this also apply to R01 for radar? because whenever i try adding that into .dat it crashes my game or makes the radar disappear and without it the radar does nothing but the buttons will show up.


Last edited by Bladekill1298; 07-18-26 at 05:17 PM.
Bladekill1298 is offline   Reply With Quote
Old 07-23-26, 04:15 AM   #4
VikingGrandad
Chief
 
Join Date: Jul 2005
Location: AM93
Posts: 319
Downloads: 99
Uploads: 0
Default

Quote:
Originally Posted by Bladekill1298 View Post
Thank you very much, does this also apply to R01 for radar? because whenever i try adding that into .dat it crashes my game or makes the radar disappear and without it the radar does nothing but the buttons will show up.

All types of sensors are set up in basically the same way, from what I understand: a placement node in the unit's dat file, a corresponding reference for that node in the .sns file (which specifies the library node name of the sensor and its start & end dates), and the named sensor (with its controller) in a library file.


Regarding crashes,I would suspect something is missing / mismatched in that standard set-up chain. Maybe there's already a R01 node in the dat file? Although I wouldn't expect that to crash the game. Or maybe the library node you're linking to is the wrong type of sensor (not radar type), or it's linking to an AI sensor when you need a player boat sensor (or vice versa).
__________________
VikingGrandad is offline   Reply With Quote
Old 07-27-26, 01:11 PM   #5
Bladekill1298
Engineer
 
Join Date: Sep 2014
Location: Land of Corn
Posts: 210
Downloads: 63
Uploads: 0
Default

Quote:
Originally Posted by VikingGrandad View Post
All types of sensors are set up in basically the same way, from what I understand: a placement node in the unit's dat file, a corresponding reference for that node in the .sns file (which specifies the library node name of the sensor and its start & end dates), and the named sensor (with its controller) in a library file.


Regarding crashes,I would suspect something is missing / mismatched in that standard set-up chain. Maybe there's already a R01 node in the dat file? Although I wouldn't expect that to crash the game. Or maybe the library node you're linking to is the wrong type of sensor (not radar type), or it's linking to an AI sensor when you need a player boat sensor (or vice versa).
The ship I'm using is a VonDos Type 34 which uses X01 to call in the radar onto the ship setting up a SensorData onto it inside the .dat its stored in inside the Library gives it the option to activate it but does nothing. When I put a R01 node the radar disappears and setting R01 to NULL in the .sns does nothing. I'm completely stumped by this right now

"or it's linking to an AI sensor when you need a player boat sensor" The sensor is an ai sensor but I just added SensorData to it but even then I don't get how to just add a player radar instead because when I look at the .sns file for subs it says R01 is set to NULL and then theres nothing in the .eqp file aside from only a R01 node on the conning tower. I looked at the basic.cfg for the radar section but that doesn't seem to make a difference since I'm using a basic.cfg from Surface Mod 2.7 and the ship I swapped out already has radar attached to it in the basic.cfg so idk why its not working

Last edited by Bladekill1298; 07-27-26 at 01:25 PM.
Bladekill1298 is offline   Reply With Quote
Old 07-31-26, 04:57 AM   #6
VikingGrandad
Chief
 
Join Date: Jul 2005
Location: AM93
Posts: 319
Downloads: 99
Uploads: 0
Default

An "X" call is generic and basically used to add a model from a library file. I don't think it can affect how a sensors works, or prevent it from working.


R01 set to null in .sns will result in no radar being linked on an AI unit.

With a player unit, there are setting in basic.cfg which control default equipment and sensor loadouts. I haven't yet needed to tweak those settings much, so don't have much experience with them. You'll need to familiarise yourself with "NameIdx[X]" identifiers and the Radar_[XX] settings, and check all the dates align.
__________________
VikingGrandad is offline   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 09:54 AM.


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