![]() |
Collision alarm?
Trying to make a refueling base look more realistic, with subs tied up alongside the tender;
https://scontent-msp1-1.xx.fbcdn.net...fc&oe=5D346764 Takes some work to get the subs close enough that they actually look right - slide sub as close as it will get, then slide forward far enough to be clear of the tender's bow, move it over closer to the extended line of the tender, then slide it aft alongside. Main problem is a random siren (probably someone's idea of a USN collision alarm siren) even when all of the subs and the tender are set for 0 speed and docked. Anyone know how to shut that off? |
Maybe get to those ships that you are using, copy them. Rename them "whatever subtender" and then go into those ships dsd files and disconnect it there? That way the normal ships will still alarm but the sun tender ones won't?
|
Good thinking, but looking at the
\Data\Sea\Sub_Depot_Ship\Sub_Depot_Ship.dsd file, no gots siren in there. In the Sh.sdl file is the only reference I can find, Ship_CollisionAlarm_EXT.wav is the sound, apparently applied to all ships. The collision detection subroutine is probably in a common file or the main program, can't find anything that controls that for any individual ship type. Editing the Sh.sdl file isn't really a viable option anyway, since a lot of mods change that one. |
I would try loading in one and disconnect all the sounds you can, just to see if it snags it.
Or create a copy that has no sound attached. The only other thing I could think of is the AI activating it. |
Never cloned a ship before, but it's worth a try. :Kaleun_Salute:
|
Hmmm, nope. Cloned the tender, changed the name in the .dat file and .cfg, didn't show up in the roster. Roster. Duh. :doh: Looked in the roster folder, copied the SubTender.cfg, renamed that and the ship type to SubTender1.
That got some action, launch the ME and get error message, "The unit class SubTender1 from country American not found in the platforms library." Okay, I'll bite, what and where is the "platforms library"? |
Quote:
|
There is, and it appears to be bits and pieces of the ships in game?
I'd try copying the .dsd file, back it up, and then try and remove all those sound triggers. If you remove everything and the sound still triggers, you know it's being controlled somewhere else. At the end of the day though, I could personally live with the sound. I'd just consider it a departure/arrival alarm lol. |
Or a drunken sailor staggering around bumping into the lever. :Kaleun_Goofy:
One option is to silence the collision alarm altogether by editing the wav file, amplify = 0 makes it zero volume. The only time I hear them is in harbors anyway, when a lubberly destroyer crosses the bow of a cruiser trying to dodge torpedoes there's no sound but the crash. platforme.dat and platforme.zon appear to be files for actual platforms near as I can tell, no ship names or types in those. Hold the phone while I fire up google translate - yep, language detected Romanian, platforme = platformS (plural) in English. Gotta run the translator whenever there's a doubt, when I first started hacking this game I assumed "carma" was a horrible misspelling of camera, turns out it's Romanian for rudder. :doh: |
Quote:
If my memory serves me right, the roster is the "platforms library". So when you cloned the SubTender did you: 1 Rename all the relevant folder & files in the Data > Sea > newUnit to matching names? 2 Did you open the Data > Sea > NewUnit.cfg and change the ClassName to your newly named unit? 3 Have you also copied the roster file over, renamed that roster file and also opened it to change the ClassName to match the class name as in question 1? Side note - was it a full cloned, with dats & other files copied, if so have you given the unit new I'D's? As shared ID's are direct route to CTD's in-game, if you have already done this, please disregard this. |
Can't disregard it, I'm so senile I can't remember if I did all of that or not. Guess I gotta try again, this time I'll follow your checkpoints.
I'll be back. :cool: |
Quote:
|
Might help if I could see an actual clone. Went through all the steps;
1. Copied and renamed \Data\Roster\American\Sea\SubTender.cfg to SubTender1.cfg. Edited same to replace all ASSubTender with ASSubTender1, US AS Sub Tender with US AS Sub Tender1, etc. Side note, in default the mission editor menu has this listed as AO rather than AS, don't know where it gets that from. 2. Edited \Data\Roster\Names.cfg to add ASSubTender1=Submarine Tender1 under ASSubTender=Submarine Tender. 3. \Data\Sea\Sub_Depot_Ship copied, renamed Sub_Depot_Ship1, renamed and edited those files to repath and change filenames where needed. Still getting same message from the ME about "platform library". Is there another folder besides \Data\Roster\ and \Data\Sea\ I'm missing, or is it only those two? |
Hmmm. Deleted the whole smash, restored the backup, copied pasted renamed etc., this time it worked, got a clone with no errors. Dunno what I did different, but I'd rather be lucky than good. :D
Next step is getting rid of the siren/whistle, looking at the .dsd file I don't see any reference at all to siren/whistle/whatever? I could strip the whole thing down to whatever makes it a static object if necessary, it will never be an actual ship, just static scenery. |
Quote:
|
All times are GMT -5. The time now is 05:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.