SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=219)
-   -   [REL] Custom Interior Cams Mod (https://www.subsim.com/radioroom/showthread.php?t=111732)

Payoff 04-13-07 09:04 AM

[REL] Custom Interior Cams Mod JSGME
 
This mod will allow you to place the "Officer Views" from SHIII as 4 custom interior cams (5 in the S-Class) anywhere you like (command room & conning tower) using the Free Cam, then lock them in place using keyboard commands, then access all of the views using the right mouse button.


Update:
*Skweetis has removed the horizontal limits for all the views, allowing for 360 degree viewing for all cams and incorporated this with Beery's "Camera Mod 2" removing the height and zoom restrictions for the F11 Free Cam.

*Skweetis has aslo been kind enough to offer "SH34CFM Command File Merger Utility" that will add only the necessary data to an already modified Commands.Cfg file. Very Handy.


I have assigned keyboard commands to the officer views from SHIII left in the Commands.cfg file. For the sake of this post I will call these:


control+1 Helmsman_view = Cam 1
control+2 Captains_bed_view = Cam 2
control+3 Weapons_officer_view = Cam 3
control+4 Navigator_view (preassigned on Balao,Gato,Tambor & Gar) = Cam 4
control+~ Interior_aft_camera (clickable on Gato style interior, still functions in Sargo & Salmon, wont work in Porpoise & S-class) This is the helmsman cam.

I found if you access the Command Room Free Cam (Shift + F2) and place it anywhere, then hit one of the keyboard commands above, it will lock that view in place for the rest of that patrol or session. I took this a step further and tweaked the go back modifiers to cycle from one cam to the next in a somewhat logical order.

Here is an example of my Balao/Gato/Tambor/Gar setup. (Same interior)
Start position in control room RM (right mouse click) goto Cam1 - Behind planesmen for a clear view of the deep diving guage.
RM goto Cam 2 - Plot table (chiefs position) turns to face guages,ladder, OB scope.
RM goto Conning Tower Cam - stock.
RM goto Cam 3 - Standing at OB scope (tower) with a nice view of the radar scopes without activating the station (Assinged keys to radar functions)
RM goto Command Room Cam - start position.
Now
Left Mouse click on helmsman goto helm - stock
RM goto Cam 4 - Navigators Station.
RM goto Command Room Cam - Start Position.

*I intentionally left the Nav station out of the normal cycle of cams, allowing priority to battle stations but still keeping it a few mouse clicks away.
*Nav Map wil go back to Cam 4 Navigators Station.
*Conning Tower Periscope Cam RM - will go back to Cam 3 RM - Start Position.
*You can hit the Free Cam command from any of these views for a 360 view from that spot, then RM to go back to the Start Position.
* I made sure not to dead end in any one area, for continuous Right Mouse movement. So every cam has another cam to go to.

Installation:
Copy / Paste the individual sections below to your SHIV/Data/Cfg/Commands.cfg file. Just search for the [Cmd #] individually. I didnt copy the whole file as I am sure most have modified Commands files already.
Note: I have highlighted my custom key bindings in red. Yours are probably different. Some commands are optional & noted as such.

*Just copy the blue text into the appropriate entries.


[Cmd7]
Name=Go_back_to_prev_cam
Ctxt=1,11
Key0=0xBF,,"/" . . .Optional, handy for periscopes and maps




[Cmd10]
Name=Interior_fore_camera
Ctxt=1,12
MnID=0x3F020001
Key0=0x70,,"F1"
Page=0x33000000,3703
GoBack=Helmsman_view

[Cmd11]
Name=Interior_aft_camera
Ctxt=1
Key0=0xC0,c,"Ctl+~"
Page=0x33000000,3704
GoBack=Navigator_view .... kicks you out to sea in S-Class boats (no harm)


[Cmd13]
Name=Conning_tower_camera
Ctxt=1
Key0=0x71,,"F2"
Page=0x33000000,3715
GoBack=Weapons_officer_view

[Cmd14]
Name=Conning_tower_periscope
Ctxt=1
Key0=0x72,,"F3"
Page=0x33000000,3716
GoBack=Weapons_officer_view





[Cmd32]
Name=Navigation_2D_map
Ctxt=1
Key0=0xBC,,"<"
MnID=0x3F020002
;Key0=0x74,,"F5"
Page=0x31000000,3740
GoBack=Navigator_view





[Cmd35]
Name=Helmsman_view
Ctxt=1
Key0=0x31,c,"Ctl+1"
Page=0x33000000,3721
GoBack=Captains_bed_view

[Cmd36]
Name=Navigator_view
Ctxt=1
Key0=0x34,c,"Ctl+4"
Page=0x33000000,3712
GoBack=Command_room_free_camera

[Cmd37]
Name=Weapons_officer_view
Ctxt=1
Key0=0x33,c,"Ctl+3"
Page=0x33000000,3713
GoBack=Command_room_free_camera




[Cmd40]
Name=Captains_bed_view
Ctxt=1
Key0=0x32,c,"Ctl+2"
Page=0x33000000,3724
GoBack=Conning_tower_camera




[Cmd53]
Name=Command_room_free_camera
Ctxt=1
Key0=0x71,s,""
Page=0x33000000,3700
GoBack=Interior_fore_camera




[Cmd58]
Name=Obs_periscope_camera
Ctxt=1
Key0=0x4f,,"O"
Page=0x2B000000,3727
GoBack=Weapons_officer_view






[Cmd142]
Name=Radar_toggle_on_off . . . Optional
Ctxt=1
Key0=0x52,,"R"

[Cmd143]
Name=Radar_toggle_sweep_focus . . . Optional
Ctxt=1
Key0=0x46,,"F"

[Cmd144]
Name=Radar_toggle_range . . . Optional
Ctxt=1
Key0=0x47,,"G"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Setup
Its best to set up your cams as soon as you begin a patrol, or you may accidentally assign all your cams to one location just by Right Clicking the mouse.
From the Start Position (Command Room) hit Shift + F2. You will now be at table top height with the plot table. Place the cam where you wish checking for eye level with the crew and so forth using Home / End for elevation. When you are happy with the location press control+1. Cam 1 will now be locked in that position.
Immediatley go back to the start position again (Without Right Clicking) and repeat this procedure for Cam 2, 3 & 4. To setup cams in the conning tower, go to the tower first, then hit Shift + F2 and you will have the free cam activated. Once you find your favorite places on each boat it only takes about 1 1/2 minutes to setup each time. Thats it your done.

Note:
*The navigators station is preassigned in Gato style Interiors, but is customizable in Salmon, Sargo, Porpoise & S-Class boats.

*The S-Class boats have the "Conning Tower Periscope 3D Camera" available, but you must have a key assigned for it and you must not push it until you have set the cam up as per above. To set it up use the Free Cam but dont capture the screen with the mouse. Use the arrow keys to rotate until you are facing the plot table. Now use the Home key to raise it up 6" - 12" above the table. Then use the arrow keys to move the cam in front of and facing the attack periscope. Now hit the "Conning Tower Periscope Camera" key and it will lock in place at the proper height like all the others. This cam can also be placed anywhere you like giving the S-Class 5 cams.

*Its a good idea to call battlestations before setting up to avoid standing in the middle of someone.:lol:

*These are the Smooth Panning views from SHIII, not the herky jerky Free Cam view.

*These cams wont have the motion of the ocean just as the SHIII cams didnt.

************************************************** **************************************************

1. JSGME ready. http://hosted.filefront.com/Payoff/
*Contains:
*STOCK Commands.Cfg file for those without custom keyboard commands, (or anyone that may want to give it a test drive. Keyboard will revert to DEFAULT SHIV)
*Skweetis's "Unrestricted Custom Cameras" mod for 360 viewing combined with Beery's "Camera Mod 2" with unrestricted height & zoom for the External Cam.

*Readme with step by step instructions. It's really very simple.
*Click on Custom Interior Cams Mod

************************************************** ************************************************** *
same link

Version 2. JSGME If you have a MODIFIED Commands.Cfg file.
Includes:
*Skweetis's most excellent "SH34CFM Command File Merger" program.
*Skweetis's "Unrestricted Custom Cameras" mod for 360 viewing combined with Beery's "Camera Mod 2" with unrestricted height & zoom for External Cam.
*Readme with step by step instructions.
*Click on CUSTOM INTERIOR CAMS MOD 2


A Big Thanks to Skweetis & Beery:up:


Whoo . . long post
Run Silent, Run Deep
Payoff

CaptainCox 04-13-07 09:12 AM

Hell of a job man, respect! gonna try this out right away.:up:

Skweetis 04-13-07 09:37 AM

OH DEAR GAWD! YOU JUST MADE MY DAY!

Thank you thank you thank you!

WOohoo!

Now I only have 7 more hours of work to go!

Sailor Steve 04-13-07 10:55 AM

Neat trick!:rock:

sqk7744 04-13-07 11:11 AM

[REL] Custom Interior Cams Mod
 
So why do they call it the head?

NICE JOB MAN! :up:

* Flightsim trick here: Been using CH Control Manager to map keys to a Throttle Quadrant for quick presses in the heat of battle. Now if I can only get the port/starboard throttles to work independently

Meridian 04-13-07 11:24 AM

Because the room was so small that's what you hit on the ceiling every time you stood up after taking a dump. :rotfl:

clayp 04-13-07 12:47 PM

Its beyond me on how to set it up but it sounds like a great mod....:oops:

Payoff 04-14-07 05:03 AM

Thanks. a beautiful command room is a terrible thing to waste.

@clayp It really is easy to setup. The only thing you need is to have keystrokes assigned to the "Officer Views", because those are the views used in the boat (not the jerky free cam view). All the mouse clicking stuff is just icing on the eyecandy cake.:up:

thyro 04-14-07 05:31 AM

Nice work :up:


Would also be nice if was possible to add more sub rums such torpedo room/gally etc to navigate through the sub instead of be stucked in one/two places (when external cam option is off).

Meridian 04-14-07 05:33 AM

Great tip. The only thing I think you missed was your highlighted in blue custom keybinds, I think you missed this section with the Control+? commands.

[Cmd11]
Name=Interior_aft_camera
Ctxt=1
Key0=0xC0,c,"Ctl+~"
Page=0x33000000,3704
GoBack=Navigator_view . . . Optional, If you want to access the helm


[Cmd35]
Name=Helmsman_view
Ctxt=1
Key0=0x31,c,"Ctl+1"
Page=0x33000000,3721
GoBack=Captains_bed_view

[Cmd36]
Name=Navigator_view
Ctxt=1
Key0=0x34,c,"Ctl+4"
Page=0x33000000,3712
GoBack=Command_room_free_camera

[Cmd37]
Name=Weapons_officer_view
Ctxt=1
Key0=0x33,c,"Ctl+3"
Page=0x33000000,3713
GoBack=Command_room_free_camera

[Cmd40]
Name=Captains_bed_view
Ctxt=1
Key0=0x32,c,"Ctl+2"
Page=0x33000000,3724
GoBack=Conning_tower_camera


I was wondering why i couldn't get it to work because all I did was go through and add the goback lines. I know you mentioned it at the top of your post but it wasn't too clear.

Thanks for nice mod though.

Payoff 04-14-07 06:14 AM

Thanks Meridian. You're right I was a little vague. Hopefully it makes more sense now. :doh:

Uber Gruber 04-14-07 06:57 AM

mmMMMM.....could one of you post the complete instructions on how to add this mod, or better still, make a JSGME version ? :roll:

Its just that we're a little confused here :damn:

Payoff 04-14-07 08:29 AM

I didnt make a JSGME version for fear it would cause problems for anyone who has modified their Commands.Cfg file. Which I believe would be a high percentage of folks here. In a nutshell.

1. Open your SHIV/Data/Cfg/Commands.cfg file in Notepad or Word,(backup first) now scroll to each [Cmd #] entry in your file and copy/paste every item I have highlighted in blue in my original post. Copy these individually as they are not in sequence as apparent by the numbers. Thats it. Now whenever you start a new mission or patrol in SHIV you will have 4 new views available that you can placemark anywhere you choose.

2.When the mission starts DO NOT RIGHT CLICK THE MOUSE. I cant stress this enough, as this will lock your new views right where you stand.

3. From the Normal starting position in the sim hit Shift + F2. Now move the camera where you want to place it, then hit control + 1. CAM 1 will now be anchored to that spot. Hit F2 to go back to the starting position then repeat this process for the other 3 Cams.
control + 1 = CAM 1
control + 2 = CAM 2
control + 3 = CAM 3
control + 4 = CAM 4 (this is preset in Gato style interiors to the nav station)

4. Once your views are set just right click the mouse to jump from view to view. This is the exact sequence so you can plan accordingly
START ---> CAM 1
CAM 1 ---> CAM 2
CAM 2 ---> Conning Tower
Conning Tower ---> CAM 3
CAM 3 ---> START
now left click on the helmsman for his view then
HELM ---> CAM 4
CAM 4 --> START

Thats the loop.
Note: Nav map will go back to CAM 4
Observation scope will go back to CAM 3
Conning Tower Periscope 3D will go back to CAM 3
Any Free Cam will go back to START
All clickable items, hatches, views are still present.

5. To change the sequence to your liking simply edit the GoBack= line for any of the views.

I hope that helps. It really is a lot of fun.

Skweetis 04-14-07 09:36 AM

Hi Payoff,

Check your private messages. :D

Sailor Steve 04-14-07 10:46 AM

Quote:

Originally Posted by sqk7744
So why do they call it the head?

Because in the sailing ship days the crew toilets were benches with holes in them placed at the 'head' (bow) of the ship.
http://www.history.navy.mil/trivia/trivia03-2.htm
http://en.wikipedia.org/wiki/Head_(watercraft)

Aren't you sorry you asked.


All times are GMT -5. The time now is 11:48 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.