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 02-25-16, 11:29 AM   #46
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post

I don't think so. To the best of my knowledge gun slots have nothing to do with camera.cam. It seems to me that valid slot settings in GunStationControllerPoperties are hardcoded values
,
Hmm, If there aren't any files which defines them, then it's probably hardcodded. Still, I cant understand why something like this would be hardcodded.
For now , the best I can do is to "teleport" a player to the stern flak , when he "cliks" front one...This can be somewhat confusing though...
vdr1981 is offline   Reply With Quote
Old 02-25-16, 11:57 AM   #47
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
Hmm, If there aren't any files which defines them, then it's probably hardcodded. Still, I cant understand why something like this would be hardcodded.
No idea, but generally when a setting in a controller refers to some items in another set of files, those files must be merged in the Goblin project for the items to be selectable. Besides that, slots selectable in GunStationControllerPoperties are numbered and as if they were an indexed value, and looking at their settings in Hex Editor they looked nothing like a bone ID. Either they refer to an hardcoded index, or to some preset values defined in an ascii file which gets preloaded when Goblin Editor is launched.

Quote:
Originally Posted by vdr1981 View Post
For now , the best I can do is to "teleport" a player to the stern flak , when he "cliks" front one...This can be somewhat confusing though...
LOL, you re-discovered the teleport function
I guess this is happening because front Flak's GunStationControllerPoperties Slot property is set to S1 rather than S2
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-25-16, 01:16 PM   #48
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
LOL, you re-discovered the teleport function
I guess this is happening because front Flak's GunStationControllerPoperties Slot property is set to S1 rather than S2
Yeah...Now even Commands,cfg file is involved...



Ahhh, screw it... 3 player usable flaks + 1AI controlled are more then enough. Anyone who don't think the same can contact Ubisoft...
vdr1981 is offline   Reply With Quote
Old 02-25-16, 05:27 PM   #49
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

No matter what turm/U-boat the controller is applied to, in GunStationControllerPoperties there are four possible slot settings:

0 - SLOT_A01 (light Flak gun #1)
1 - SLOT_A02 (light Flak gun #2)
2 - SLOT_S01 (heavy Flak gun)
3 - SLOT_M01 (deck gun)

They are covering all the possible gun combinations for stock U-boats/cooning towers: max two single/double 20 mm Flaks, max one 37 mm Flak or one quad 20 mm gun, max one deckgun. The U-Flak is peculiar in having no deck gun and two heavy Flak guns instead of the one heavy Flak allowed in stock game.
Maybe we could rename the S02 gun bone/slot to M01, making the game to think it is a deckgun, but retaining Flak guns functionalities. If we do so, we should update UnitParts5VIIC41F.upc accordingly. If you are busy with other stuff, I can create a patch for you to test it in game. What do you think?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-16, 04:52 AM   #50
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Was there any special reason for using VIIC/41's hull in this mod?
All the U-Flaks were VIIC boats.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-16, 06:32 AM   #51
Cybermat47
Willing Webfooted Beast
 
Cybermat47's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 5,386
Downloads: 293
Uploads: 22


Default

vdr, any chance of making the heavy flak guns quad 20mms by default? I can only find photos of the U-Flak with the 20mms. They could have carried the 37mm, and presumably some did, but given that we only have photographic evidence of the 20mm quad, I think this should be the default.



__________________
Historical TWoS Gameplay Guide: http://www.subsim.com/radioroom/showthread.php?p=2572620
Historical FotRSU Gameplay Guide: https://www.subsim.com/radioroom/sho....php?p=2713394
Cybermat47 is offline   Reply With Quote
Old 02-26-16, 07:58 AM   #52
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
No matter what turm/U-boat the controller is applied to, in GunStationControllerPoperties there are four possible slot settings:

0 - SLOT_A01 (light Flak gun #1)
1 - SLOT_A02 (light Flak gun #2)
2 - SLOT_S01 (heavy Flak gun)
3 - SLOT_M01 (deck gun)

They are covering all the possible gun combinations for stock U-boats/cooning towers: max two single/double 20 mm Flaks, max one 37 mm Flak or one quad 20 mm gun, max one deckgun. The U-Flak is peculiar in having no deck gun and two heavy Flak guns instead of the one heavy Flak allowed in stock game.
Maybe we could rename the S02 gun bone/slot to M01, making the game to think it is a deckgun, but retaining Flak guns functionalities. If we do so, we should update UnitParts5VIIC41F.upc accordingly. If you are busy with other stuff, I can create a patch for you to test it in game. What do you think?
Hmm, nice thinking Gap... Maybe that could work. Whenever you're ready...

Quote:
Originally Posted by gap View Post
Was there any special reason for using VIIC/41's hull in this mod?
All the U-Flaks were VIIC boats.
Because U-Flak tower was originally intended for VIIC41 I decided not to take any chances and use this hull. Is there any difference after all?
vdr1981 is offline   Reply With Quote
Old 02-26-16, 08:02 AM   #53
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by Cybermat47 View Post
vdr, any chance of making the heavy flak guns quad 20mms by default? I can only find photos of the U-Flak with the 20mms. They could have carried the 37mm, and presumably some did, but given that we only have photographic evidence of the 20mm quad, I think this should be the default.



Other heavy flaks are available trough bunker upgrades...You can edit default AA weapons in UnitParts5VIIC41F.upc file.

Code:
[UnitPart 1.UpgradePackSlot 2]
ID= UpgConFlakHeavy
NameDisplayable= UpgConningFlakWG-Name
Type=NULL
AcceptedTypes=GerHeavyAA
UserCustomizable=Yes
IDLinkUpgradePackSlots= VIIC41Tower1FlakMount3
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, UpackUb37mmImpSingle

[UnitPart 1.UpgradePackSlot 3]
ID= UpgConFlakHeavy2
NameDisplayable= UpgConningFlakWG-Name
Type=NULL
AcceptedTypes=GerHeavyAA
UserCustomizable=Yes
IDLinkUpgradePackSlots= VIIC41Tower1FlakMount4
IDLinkUpgradePackSlotsIntervalDefault1= NULL, NULL, UpackUb37mmImpSingle
vdr1981 is offline   Reply With Quote
Old 02-26-16, 08:28 AM   #54
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
Hmm, nice thinking Gap... Maybe that could work. Whenever you're ready...
The patch is ready. I am now re-checking upc and upge files for any required tweak which I migh have overlooked. Stay tuned for updates

Quote:
Originally Posted by vdr1981 View Post
Because U-Flak tower was originally intended for VIIC41 I decided not to take any chances and use this hull. Is there any difference after all?
No idea, probably not, but I will check it

Quote:
Originally Posted by vdr1981 View Post
Other heavy flaks are available trough bunker upgrades...You can edit default AA weapons in UnitParts5VIIC41F.upc file.
Yep, by the way today I made a quick search on the web, and apparently the standard U-Flak gun outfit was as follows:

- 1 Flakvirling on the fore platform
- 1 Flakvierling on the Wintergarten
- 1 single 37 mm gun on the stern platform

Summing up: no light Flak, three heavy Flaks, no deck gun. If my test patch works, I will make all the changes required for reproducing this configuration
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-16, 08:52 AM   #55
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
Yep, by the way today I made a quick search on the web, and apparently the standard U-Flak gun outfit was as follows:

- 1 Flakvirling on the fore platform
- 1 Flakvierling on the Wintergarten
- 1 single 37 mm gun on the stern platform

Summing up: no light Flak, three heavy Flaks, no deck gun. If my test patch works, I will make all the changes required for reproducing this configuration
Using only 3 flak slots instead of 4 can also solve some of the current issues...

I have no doubts that U-FlaK standard equipment somewhat differs, but we should also leave some space for bunker upgrades. People like to customize their U-Boats in bunker...

EDIT
Also, 2x Flakvirling + 1x single 37mm in default state would pose a significant overkill for poor planes AI in SH5...The worst RAF nightmare...

Last edited by vdr1981; 02-26-16 at 08:57 AM.
vdr1981 is offline   Reply With Quote
Old 02-26-16, 10:01 AM   #56
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
Using only 3 flak slots instead of 4 can also solve some of the current issues...
What do you mean?

Quote:
Originally Posted by vdr1981 View Post
I have no doubts that U-FlaK standard equipment somewhat differs, but we should also leave some space for bunker upgrades. People like to customize their U-Boats in bunker...
Of course. I talked about standard gun outfit, but we can leave space for some non-historical user customizations through bunker upgrades

Quote:
Originally Posted by vdr1981 View Post
EDIT
Also, 2x Flakvirling + 1x single 37mm in default state would pose a significant overkill for poor planes AI in SH5...The worst RAF nightmare...
Do you think that switching one 37mm and two double 20 mm with two quad 20 mm Flaks will make much difference?


P.S: man, the German equipment names you have put in upc/upge files instead of the English ones, are driving me nuts
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-16, 10:13 AM   #57
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post

Do you think that switching one 37mm and two double 20 mm with two quad 20 mm Flaks will make much difference?
Never mind that, we can deal with equipment types later... The system with 3x heavy flak slots could actually work, let's try that first. For now it seem OK, all stations are working, only fornt flak have opposite side crew again (A2 bone). Can we rotate bones in gr2 editor?


Quote:
P.S: man, the German equipment names you have put in upc/upge files instead of the English ones, are driving me nuts
LoL sorry...
vdr1981 is offline   Reply With Quote
Old 02-26-16, 10:29 AM   #58
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

http://www.mediafire.com/download/19..._test_patch.7z

Note that I have left the obj_Turret controllers unchanged, but they might need some training/elevation restrictions for the guns to fire a correct angles (i.e. for avoiding the message "cannot shot at the u-boat sir").

Let me know if it works
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-26-16, 10:47 AM   #59
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by gap View Post
http://www.mediafire.com/download/19..._test_patch.7z

Note that I have left the obj_Turret controllers unchanged, but they might need some training/elevation restrictions for the guns to fire a correct angles (i.e. for avoiding the message "cannot shot at the u-boat sir").

Let me know if it works
Nope, I'm teleported to the stern heavy flak when front flak is "clicked"...
Did you get same results?
vdr1981 is offline   Reply With Quote
Old 02-26-16, 10:52 AM   #60
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by vdr1981 View Post
only fornt flak have opposite side crew again (A2 bone). Can we rotate bones in gr2 editor?
Yep. Tell me the which GR2 file, and exact bone name
__________________
_____________________
|May the Force be with you!|
...\/
gap 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 12:53 PM.


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.