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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-27-13, 12:10 PM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Starting with v1.0.145.0 Finished the radio portion of the Carriers/Airbases spawning aircraft patch. The patch will look for 2 zones: 235 (Radio Room) and 236 (Transmit antenna). It will then check the damage to each one. If the damage is greater than the damage in the patch file (0.5 for both) then the unit was unable to radio for support (air support).
I also see some uses of this patch with ship-to-ship communications, esp. merchant to escorts or destroyer-destroyer

Quote:
Originally Posted by TheDarkWraith View Post
This makes it paramount to place your deck gun shells on the radio room and/or it's transmit antenna!


I have made radio room and antenna damage boxes small enough that it won't be very easy to disable them, unless we are very close to the target. Yet, in some cases they are pretty close to fire boxes, so there's a chance that they will get damage from explosion blasts of from spreading fires. There's probably space for some zone settings and box placing adjustements, but final finetuning will be possible after the first test reports

Quote:
Originally Posted by TheDarkWraith View Post
The patch also has the 237 zone enabled: receive radio antenna (max damage of 0.5). It's coded to be able to use it but currently nothing is using this feature (to be added here soon!).
I have not placed receiver antenna boxes yet. But adding them won't be that difficult. In most cases, duplicating the transmit antenna box will be enough I think.

Quote:
Originally Posted by TheDarkWraith View Post
@gap - I noticed that the NLL didn't have a transmit antenna zone. I know this because I was watching the code iterate over all the zones and this one never showed up. The radio room one did. I coded this radio feature in that if the zone is not found it defaults to it's ok and is undamaged. If either of the zones (radio room or transmit antenna/receive antenna) is damaged greater than the damage level in the patch file then unit was unable to transmit/receive radio.
yep, part because of my laziness, part because in some cases I din't know where to place the antenna box, not all the ships got one. After all I knew you were going to patch up the flaws of my work

A couple of questions:

- since we are at it, what do you think about extending you radio damage patch to airplanes?

- could you do a new patch that will look for a "cockpit" and "pilot" boxes aboard planes? The cockpit box could be placed directly on plane models, whereas the pilot one would be better placed on the 3D model of the aviator. If either the cockpit or all the pilots aboard the plane are destroyed, the plane loses control... what do you think?
gap is offline   Reply With Quote
Old 07-27-13, 08:35 PM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
I also see some uses of this patch with ship-to-ship communications, esp. merchant to escorts or destroyer-destroyer

I am already venturing down that route

I have made radio room and antenna damage boxes small enough that it won't be very easy to disable them, unless we are very close to the target. Yet, in some cases they are pretty close to fire boxes, so there's a chance that they will get damage from explosion blasts of from spreading fires. There's probably space for some zone settings and box placing adjustements, but final finetuning will be possible after the first test reports

A torpedo hit should take them out if it's located in the right spot

I have not placed receiver antenna boxes yet. But adding them won't be that difficult. In most cases, duplicating the transmit antenna box will be enough I think.

That will work. You are not limited to only one radio room and/or antenna. You can define up to 15 (0xF) of each (that's how I coded it). What I did was every time I encountered a radio room and it's damage level was less than the damage level defined in the patch file I incremented a memory address by 0x1. Every time I encountered a transmit/receive antenna I incremented that same memory address by 0x10. Then at the end of the function I checked the value in that memory address for at least 0x11. If the value was at least 0x11 then unit was able to transmit/receive radio. A value is passed to the function that tells it whether unit is trying to transmit or receive radio (that way function knows what to look for and uses correct zones/memory addresses). Pretty brilliant if I do say so myself

yep, part because of my laziness, part because in some cases I din't know where to place the antenna box, not all the ships got one. After all I knew you were going to patch up the flaws of my work

Too busy writing code. I'll just report what I find and let you all fix it. I'll do the 'hard' stuff

A couple of questions:

- since we are at it, what do you think about extending you radio damage patch to airplanes?

I can expand it to anything. I can write code to do anything (within my limits). My level of knowledge of the game is increasing exponentially now since I have a good majority of the game deciphered/mapped out.

- could you do a new patch that will look for a "cockpit" and "pilot" boxes aboard planes? The cockpit box could be placed directly on plane models, whereas the pilot one would be better placed on the 3D model of the aviator. If either the cockpit or all the pilots aboard the plane are destroyed, the plane loses control... what do you think?

The only loss of control I can do is cut the engine. I don't know how to rotate them yet. By cutting the engine it should induce a loss of control because the game will try to maintain altitude by pitching the nose up. Eventually the speed will die off and the unit should lose control on it's own.

The other things I was thinking about was specifying zones where all the sensors are located (hydro/sonar/etc.). That way I can check to see if those zones are damaged to a certain level and if so render that sensor useless (I'll have to figure out sensors yet but I already know where they are located in the code).
See above in yellow.
TheDarkWraith is offline   Reply With Quote
Old 07-27-13, 09:55 PM   #3
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I am already venturing down that route


Quote:
Originally Posted by TheDarkWraith View Post
A torpedo hit should take them out if it's located in the right spot
Let's see what happens in game. Ideally, disabling foe's radio equipment before our position is radioed, should be a matter of wise aiming mixed with a little dose of luck

Quote:
Originally Posted by TheDarkWraith View Post
That will work. You are not limited to only one radio room and/or antenna. You can define up to 15 (0xF) of each (that's how I coded it). What I did was every time I encountered a radio room and it's damage level was less than the damage level defined in the patch file I incremented a memory address by 0x1. Every time I encountered a transmit/receive antenna I incremented that same memory address by 0x10. Then at the end of the function I checked the value in that memory address for at least 0x11. If the value was at least 0x11 then unit was able to transmit/receive radio. A value is passed to the function that tells it whether unit is trying to transmit or receive radio (that way function knows what to look for and uses correct zones/memory addresses). Pretty brilliant if I do say so myself
I am sure I would agree with you, if only I could understand what you are saying

Do you mean by any chance that we can have more than one radio room and/or antenna of the same type, and that they all need to be destroyed before the radio transmission/reception abilities of the parent unit are disabled?

Quote:
Originally Posted by TheDarkWraith View Post
Too busy writing code. I'll just report what I find and let you all fix it. I'll do the 'hard' stuff
You misunderstood me; I meant that you have addressed in advance the possible lack of antenna/radio room zones. Prevention is better than cure

Quote:
Originally Posted by TheDarkWraith View Post
I can expand it to anything. I can write code to do anything (within my limits). My level of knowledge of the game is increasing exponentially now since I have a good majority of the game deciphered/mapped out.
I like when you talk like this Now to know which are "your limits"

Quote:
Originally Posted by TheDarkWraith View Post
The only loss of control I can do is cut the engine. I don't know how to rotate them yet. By cutting the engine it should induce a loss of control because the game will try to maintain altitude by pitching the nose up. Eventually the speed will die off and the unit should lose control on it's own.
Sounds good enough. Another way to do it could be by marking aircraft as destroyed once cockpit/pilot zones are destroyed or damaged beyond a certain level (sort of critical damage for planes). Thanks to your other patch, pilotless planes wouldn't wanish in the air but they would start falling down.

By the way of killed pilots, would you be able to track down the damage of a zone placed directly on them rather than on aircraft's model? This would make box editing much faster (only one box on the pilot shared by many aircrfat, rather than 1-2 boxes for each aircraft)

Quote:
Originally Posted by TheDarkWraith View Post
The other things I was thinking about was specifying zones where all the sensors are located (hydro/sonar/etc.). That way I can check to see if those zones are damaged to a certain level and if so render that sensor useless (I'll have to figure out sensors yet but I already know where they are located in the code).
Good idea.

I guess that in vanilla game sensors are destroyed when their parent object is destroyed, but as their bones are normally placed directly on the hull, it is unlikely that they will be disabled before the unit is fatally damaged. Likewise radio equipment, we could set an hydrophone zone and an hydrophone room zone, a sonar zone and a sonar room zone, etc.

The only problem would be if a ship had more than one sensor of the same type. How could we tell your patch which one was destroyed? Maybe by assigning a damage box to each of the sensor linking bones or, better, directly to the GR2 sensors? Being dummy adimentional objects, I wonder if linking bones or sensors can take damage when given a damage box

Last edited by gap; 07-27-13 at 10:12 PM.
gap is offline   Reply With Quote
Old 07-29-13, 02:40 AM   #4
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Since i have installed latest Generic Patcher v1.0.145.0 and TDW 7.5 UI's there is no more speed drop while battery recharging is active?! Any hint ?
vdr1981 is offline   Reply With Quote
Old 07-29-13, 03:03 AM   #5
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Quote:
Originally Posted by vdr1981 View Post
Since i have installed latest Generic Patcher v1.0.145.0 and TDW 7.5 UI's there is no more speed drop while battery recharging is active?! Any hint ?
Me too! TDW??
Fifi is online   Reply With Quote
Old 07-30-13, 05:50 AM   #6
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by vdr1981 View Post
Since i have installed latest Generic Patcher v1.0.145.0 and TDW 7.5 UI's there is no more speed drop while battery recharging is active?! Any hint ?
New info on this issue...This only happening with type VIIb, c and a are fine...
vdr1981 is offline   Reply With Quote
Old 07-30-13, 06:04 AM   #7
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by vdr1981 View Post
New info on this issue...This only happening with type VIIb, c and a are fine...
It's known bug with VIIB sub..

http://www.subsim.com/radioroom/show...postcount=2377
http://www.subsim.com/radioroom/show...postcount=2381
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 07-30-13, 06:07 AM   #8
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by volodya61 View Post
I see, tnx for the explanation Sir.
vdr1981 is offline   Reply With Quote
Old 07-30-13, 06:27 AM   #9
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by vdr1981 View Post
..Sir.

Perhaps I'm mistaken, or this form of addressing is only applicable to the crowned heads
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 08-24-13, 03:59 AM   #10
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by vdr1981 View Post
... there is no speed drop while battery recharging is active(type VIIb)?! Any hint ?
Quote:
Originally Posted by volodya61 View Post
I think i cracked this one... Check it out... http://www.subsim.com/radioroom/showthread.php?t=206916

Last edited by vdr1981; 08-24-13 at 04:11 AM.
vdr1981 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 12:27 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.