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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-20-09, 02:09 PM   #1
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default External mouse zoom

Hi Guys:

Is it possible to have the mouse zoom in and out in the external view of ship with the middle wheel mouse button, thanks.

Regards, Rich
rsvette12 is offline   Reply With Quote
Old 07-20-09, 02:20 PM   #2
SteamWake
Rear Admiral
 
Join Date: Mar 2005
Posts: 13,224
Downloads: 5
Uploads: 0
Default

Dont think so.

There are some mods that alter the cameras behaviour. Once you get used to it it actually works pretty good.
__________________
Follow the progress of Mr. Mulligan : http://www.subsim.com/radioroom/showthread.php?t=147648
SteamWake is offline   Reply With Quote
Old 07-20-09, 03:05 PM   #3
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Yowser 7,831 posts wow thanks for the info kind of figured that, take care.

Regards, Rich
rsvette12 is offline   Reply With Quote
Old 07-20-09, 04:18 PM   #4
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by rsvette12 View Post
Yowser 7,831 posts wow thanks for the info kind of figured that, take care.

Regards, Rich
You can make it work by modding with S3D and adding an "optical controller" to the Free camera and set zoom levels.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 07-20-09, 05:40 PM   #5
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Oh could you give me a more in depth description of "modding with S3D and adding an "optical controller" to the Free camera and set zoom levels"
no idea what this mean, thanks. I do have a 3d connexion space navigator I use for 3d modeling.

Regards, Rich
rsvette12 is offline   Reply With Quote
Old 07-20-09, 08:11 PM   #6
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by rsvette12 View Post
Oh could you give me a more in depth description of "modding with S3D and adding an "optical controller" to the Free camera and set zoom levels"
no idea what this mean, thanks. I do have a 3d connexion space navigator I use for 3d modeling.

Regards, Rich
Rich,

1. Go to the SH4 Fleet Boats MODs Workshop section and from the 'sticky' on the first page download S3D (Silent 3ditor) and install.
2. Go to where SH4 is installed and open Data/Library. Find the file cameras.dat and copy it to a working location. The best thing to do is create folders so you can enable and disable as a MOD. So create a folder (I usually use a separate drive to create my 'working' folders) let's call it "CamerawithZoom". Inside that folder make a folder called "Data", inside the 'Data' folder make a folder called 'Library'. (The Data and Library folders MUST be named data and library, the first folder can be named anything.) Copy the cameras.dat file into the Library folder.
3. Start S3D and Open the cameras.dat (the copy you just made, not the original)
4. Now a picture you can refer to. You will be adding #24 and #25. Those numbers will already be there but as you add items the items below it are pushed down and renumbered.



5. Using the pic as a guide select the + beside #22, then RIGHT-Click on number 23, and you will see the menu shown open up. Go to 'Append New Chunk" then 'Controller(type: 10)' then click on "Controller (type: 10/-1)".

6. You can't see it in the picture but select the new #24 <empty> and look to the right and copy the ID: 0x75d349962de7a089 (your number will be different) NOT the Parent ID. You will need it in the next step.
7. RIGHT-click on #24 and select 'Append New Chunk' , then Properties (type 6/0), Then 'SH4", then "Camera Behavior", then click on "Optical".
8. Now it should look like the picture 24 <empty> and 25 !!Optical.
9. With "25. !!Optical" highlighted (selected) paste the ID you copied before into the "PARENT ID" slot on the right side. You just made 24 the Parent node of 25.
10. With 25 still selected set the MinZoom and MaxZoom on the right side. Now RIGHT-click on the "Zoom Levels" and "Add Array Item". It will add one slot to the list, do it 2 or 3 times just to learn how it works. Now you set the value for each at the bottom of the page. Try 0, 2, and 4.
10. Go back and select 24 <empty>. To the right you will see a box labeled: Name: Type and O in the box and from the list select "Optical".
11. Go up and select :#12: _Dummy_Cam_FreeCamera", copy the ID (NOT the Parent ID.)
12. Go back to 24:Optical (notice 24 and 25 are now named the same so make sure you are on 24) and paste the ID you just copied into "PARENT ID". So you just made the Free Camera the Parent of the Optical controller.

13. Save this file and put it into your MODS folder and enable it, then test it.

It may look complicated but if you do one step at a time it will be very easy.

If you are not set up for MODs you need to get JSGME and install it, run it once to create the MODS folder, then in "tasks" Generate snapshot of game files before you use it for the first time.

You are now a modder.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 07-20-09, 08:24 PM   #7
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Yowser you guys are awesome what an explanation, one thing what will all of this do, is this an operation for the mouse to do all the work, thanks pal.

Regards, Rich
rsvette12 is offline   Reply With Quote
Old 07-20-09, 09:07 PM   #8
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Tried it got lost in the last part the 3 zoom changes and the last parent id copy and paste got an error mesage is it possible you could post a good one sorry.

Regards, Rich
rsvette12 is offline   Reply With Quote
Old 07-21-09, 02:16 PM   #9
peabody
Admiral
 
Join Date: Jan 2008
Location: New York State, USA
Posts: 2,390
Downloads: 126
Uploads: 7
Default

Quote:
Originally Posted by rsvette12 View Post
Tried it got lost in the last part the 3 zoom changes and the last parent id copy and paste got an error mesage is it possible you could post a good one sorry.

Regards, Rich
Ok, we will redo the part you got lost on. I had to change some node numbers to make it match what I was doing since I deleted the "Terrain Collider" my numbers were different.


Here is a photo to refer to with it done.




This shows the zoom levels, one thing I may have said wrong, I don't know if you can use 0 for a zoom level, I never tried it, so here I use 1,4, and 8.

These values are set in a little box at the bottom of the page called "Value"
1. Select MinZoom and set the 'value box' to 1
2. Select MaxZoom and set to 8

Zoom Levels:
1. When you first get here it will say Zoomlevels [0]
2. Right-click and select "Add Array Item". Do this three times. You should have 3 listings now [0], [1] and [2]. Notice it starts numbering at 0 like a lot of computer files do.
3. Select [0]=0.0 and in the "value" box at the bottom of the window, type 1
4. Select [1]=0.0 and set to 4
5. Select [2]=0.0 and set to 8

It should look like it does in the picture.

Now the other part you had problems with, the IDs.

1. Select node "24: Optical" copy the ID
2. Select node "25: Optical" paste into the "Parent ID" box. If there is already a number for Parent ID, you can change it by holding down the Ctrl key and click on the number and the box will return and you can paste into it..
3. At this point 25 should be indented under 24 like in the picture.

4. Now go to node "12: Node-_Dummy_Cam_FreeCamera" and copy the ID.
5. Select "24: Optical" and paste into the "Parent ID" box.

Easiest way is to start over until you learn how these work, rather than try to fix a mistake.
************************************************** ****

The following is just some explaination, it is already done if you did the steps above, so you don't need to do anything below:

The ID and Parent ID can be a bit comfusing to start with. But you need to tell the game what the Optical controller is connected to otherwise it won't know. The more you do it the more it makes sense.
In this case the Free Camera is the parent so you have to tell the program that, but instead of using names, it uses IDs and Parent IDs so if later you change the name of an object it will stay connected. So by putting the Free Camera ID into the Optical "Parent ID" you are telling the game that the 'Parent of Optical' is the FreeCamera.

What makes this a bit confusing is that you have two nodes called "Optical". But if you remember when you added them, #24 is the controller, and #25 is the Properties of that controller. So that means that 24 controller needs to be the "Parent" of the 25 Properties. Then 12 the FreeCamera is the "Parent" of the 24 controller.
So, the Properties or settings (25) are linked to the Controller (24) and the whole thing is linked to the FreeCamera (12).

Now if you go down the list to the Binoculars and click the + sign, you will see there is an Optical in there too. That gives a magnification to the Binoculars. And if you check the Optical "Parent ID" it will be the ID of the Binoculars. That is how you tell a controller what it controls. (The Optical is a controller) And it also lets the game know that this Optical is not for the FreeCamera it is for the Binoculars, by telling the program who the 'Parent" is.

And you can thank Skwasjer for making this fantastic program that shows this. When you make an item the "Parent" the "child" indents under it to show the relationship of one to the other.
And also a thank you to Nisgeis who showed my how to do the optical.

Once you get this done and enabled you should be able to use the mouse wheel for some magnigication on the Free Camera. Not really very realistic, but it's a nice touch for a beginner.

Good luck, I hope you understand, I don't seem to explain things very will sometimes.

Peabody
__________________

System Spec: Gigabyte GA-965P-DS3, PentiumD Dual Core Presler 945 3.4Ghz, Gigabyte Geforce 7600GS, 2-1GB Corsair XMS2 800Mhz in Dual Channel, 2-WD 250 SATA 3Gb/s, Onboard Realtek HD 7.1 Audio, DVD ROM, DVD burner, Hiper 580 Watt Power supply, WinXP SP2.

peabody is offline   Reply With Quote
Old 07-21-09, 05:01 PM   #10
rsvette12
Lieutenant
 
Join Date: Mar 2007
Posts: 263
Downloads: 132
Uploads: 0
Default

Huge thanks Peabody thanks for the taking the time this should clear things up now, I will give it a go buddy. your expalnation is very good and in depth.

Regards, Rich
rsvette12 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 10:21 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.