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

Reply
 
Thread Tools Display Modes
Old 12-12-11, 10:52 AM   #1
Fish40
The Old Man
 
Join Date: Aug 2006
Location: Yonkers, NY U.S.A.
Posts: 1,507
Downloads: 154
Uploads: 0
Default Missing Detail In RFB?

After watching some of the videos by Lord Cucumber, I noticed a small detail that I think is missing from RFB. I believe LC uses the latest TMO in his videos, and I noticed when he's at battlestations (when he remembers to call "battlestations that is) I notice his Deck Gun crew and AA gunners are wearing battle helmets. This little detail stood out to me, because I don't remember seeing such a thing in RFB. Sure enough to satisfy my curiosity, I loaded a single mission, manned the guns, called Battlestations, and observed my crews at their guns minus the helmets. I'm wondering if that detail is part of TMO, or a seperate mod, and if it is compatable with RFB. Definitly needed IMO, since it's a realistic detail, and I'm surprised it was excluded from RFB!
Fish40 is offline   Reply With Quote
Old 12-12-11, 02:43 PM   #2
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

The brain buckets are part of TMO. I figured out how to get helmets to appear when at battle stations when working on the "Nine Delta Two" project that i've abandoned. I then took what I learned while working on that project, and applied it when i was updating TMO.

While i don't remember the exact syntax, the gist of how it works is you add the helmet via a 3d accessory to the gun crew position while at battle stations, or while the station is actively maned in 3d. I forget which, probably whenever its manned, not just battle stations. You add this 3d accessory via what is tanatmount to a global command for that item. (meaning add all nine varations of this 3d item.)

However, to get it to work properly without clipping, you have to remove all other "hats" (for all possible ranks) from that position. There's a line for this in the UPC files. Or you get something that looks like this. The funny thing is a global item command doesnt work when removing hats. So you have to specifiy, each and every single individual hat to be removed so you don't get clipping issues.

The end result, if i remember correctly, is that whenever that gun position is manned, the normal hats are removed, and the helmets are placed.

In defense of the RFB guys, how to do this wasn't discovered until after they had wound down on development. Had they still been actively working, I'm sure they would have added it. As an aside, its not hard to add yourself. In fact, i'll bet you could copy and paste the associated 4 lines of code from a TMO upc file into a RFB upc file, and it would work without a hitch.

The exact lines and all that, i don't have infront of me. But, look for the crew assiggnments while at battle stations, 3d rendering, accessories added and subtracted. it'll probably be in the UPCData/UPCUnits data, the uniparts file that define crew for conning towers and such. Look in there, and find the lines that extend waaaaaaaaaaaaaayyyyyy over to the right with a huge list of hats. That'll be the lines you need to copy and paste. Once you see them, i think it's self explanitory on what you need to copy.
Ducimus is offline   Reply With Quote
Old 12-12-11, 03:39 PM   #3
Spike88
Ocean Warrior
 
Join Date: Jan 2008
Location: Miami, FL
Posts: 3,052
Downloads: 36
Uploads: 0
Default

Quote:
Originally Posted by Ducimus View Post
-snip-
I know nothing of modding, but would it be possible to edit the UPC as a whole new mod, and just apply it through JGSME?
__________________
Spike88 is offline   Reply With Quote
Old 12-12-11, 10:16 PM   #4
Fish40
The Old Man
 
Join Date: Aug 2006
Location: Yonkers, NY U.S.A.
Posts: 1,507
Downloads: 154
Uploads: 0
Default

Thanks for the info Ducimus. If you could somehow post those lines of code so they could be copied and pasted that would be great. Better still would be to make the files JSGME ready as Spike suggested if at all possible.
Fish40 is offline   Reply With Quote
Old 12-13-11, 01:36 PM   #5
Spike88
Ocean Warrior
 
Join Date: Jan 2008
Location: Miami, FL
Posts: 3,052
Downloads: 36
Uploads: 0
Default

In TMO, there are several people near the deck gun/AA gun, how easy would it be to add them? Do I need to change information, or do these spots already exist?
__________________
Spike88 is offline   Reply With Quote
Old 12-13-11, 09:04 PM   #6
Ducimus
Rear Admiral
 
Ducimus's Avatar
 
Join Date: May 2005
Posts: 12,987
Downloads: 67
Uploads: 2


Default

Here's an example.
Code:
UserPlayerUnit 1.Compartment 8.CrewMemberSlot 2]
ID=CrewMemberSlot_DGunC1
NameDisplayable= Deck Gun Crew
Type= Crewman
WatchIndex= 0
IDLinkCrewMember= NULL
WatchCrewMemberSlot3D= WM1@slot_M02
BattleStationsCrewMemberSlot3D= WM1@slot_M02
WatchAccessoriesForAdding3DObjects= sapca_ca#Head
WatchAccessoriesForSubtracting3DObjects= sapca_o01, sapca_o02, sapca_o03, sapca_o04, sapca_o05, sapca_o06, sapca_o07, sapca_o08, sapca_o09, sapca_o10, sapca_o11, sapca_o12, sapca_m01, sapca_m02, sapca_m03, sapca_m04, sapca_m05, sapca_m06, sapca_m07, sapca_m08, sapca_m09, sapca_m10, sapca_m11, sapca_m12, nco_o01,nco_o02, nco_o03, nco_o04, nco_o05, nco_o06, nco_o07, nco_o08, nco_o09, nco_o10, nco_o11, nco_o12, sapca_mp01, sapca_mp02, sapca_mp03, sapca_mp04, sapca_mp05, sapca_mp06, sapca_mp07, sapca_mp08, sapca_mp09, sapca_mp10, sapca_mp11, sapca_mp12
BattleAccessoriesForAdding3DObjects= sapca_ca#Head
BattleAccessoriesForSubtracting3DObjects= sapca_o01, sapca_o02, sapca_o03, sapca_o04, sapca_o05, sapca_o06, sapca_o07, sapca_o08, sapca_o09, sapca_o10, sapca_o11, sapca_o12, sapca_m01, sapca_m02, sapca_m03, sapca_m04, sapca_m05, sapca_m06, sapca_m07, sapca_m08, sapca_m09, sapca_m10, sapca_m11, sapca_m12, nco_o01,nco_o02, nco_o03, nco_o04, nco_o05, nco_o06, nco_o07, nco_o08, nco_o09, nco_o10, nco_o11, nco_o12, sapca_mp01, sapca_mp02, sapca_mp03, sapca_mp04, sapca_mp05, sapca_mp06, sapca_mp07, sapca_mp08, sapca_mp09, sapca_mp10, sapca_mp11, sapca_mp12
Ducimus 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 05:16 PM.


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.