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] first/third-person-view cameras mod v1.0 (https://www.subsim.com/radioroom/showthread.php?t=120160)

lba 08-12-07 04:25 PM

Quote:

Originally Posted by DirtyHarry3033
Like a couple other guys, I've had problems with very jerky views when using mouse to look around in the F5 view, and also with the camera acting like you're doing a "loop" in a plane when moving forward/backward with the arrow keys.

Well I've found "fixes" for both of these issues. They work for me anyway, YMMV.

<...>

Hope this info is useful to someone! :yep:

DH

Yes it worked! Thank you, thank you, thank you! :up:

Edit: Okay a small but annoying problem came from this. I can no longer use the arrow keys on the plotting map. I can scroll using the edges or click/drag with the mouse, but the arrow keys are not working anymore. So was that because I "For each command, comment out the Key0="? I wonder what would happen if I don't comment them out...... :hmm: Do I also have to name them Key2= so it doesn't conflict with the other key0=? And would this even work, I mean I guess the arrow keys will try to do two things in the f5 free cam now?

Edit: Well I set them to key2, and I got down and right to work on the map, but then those two did not work in the F5 view anymore and were back to rotation/loop.

Vorkapitan 08-12-07 07:22 PM

DirtyHarry3033,


Thank you for taking time to resolve this problem for us.

Yes, there is a minor glitch..but I'm confident that it will soon be resolved.

Thanks again. :up: :up: :up: :up: :up:

DirtyHarry3033 08-12-07 07:41 PM

Quote:

Originally Posted by lba
Edit: Okay a small but annoying problem came from this. I can no longer use the arrow keys on the plotting map. I can scroll using the edges or click/drag with the mouse, but the arrow keys are not working anymore. So was that because I "For each command, comment out the Key0="? I wonder what would happen if I don't comment them out...... :hmm: Do I also have to name them Key2= so it doesn't conflict with the other key0=? And would this even work, I mean I guess the arrow keys will try to do two things in the f5 free cam now?

Edit: Well I set them to key2, and I got down and right to work on the map, but then those two did not work in the F5 view anymore and were back to rotation/loop.

Hmm, sorry there is a problem :oops: I meant to say in my original post that there might possibly be some problems or something else broken by messing with the keymappings, but you can see I tend to run my mouth too much (grin) and I totally forgot!!! I did all the things I normally do using arrow keys and everything worked fine...

At any rate, don't think I've ever used the cursor (or any other) keys on the plotting map - always have used mouse wheel to zoom, and click-drag to move the map so I didn't notice this problem.

If you really want to use the plotting map with the keyboard, you can do so using the KP4, KP6, KP9 and KP3. Just tried it and it works great! Sure it's something new to get used to, but it's offset by not getting "seasick" with Sergbuto's mod, right???

Glad I was able to actually give something back for a change (if I actually did...) !!!!

DH

DirtyHarry3033 08-12-07 07:49 PM

Quote:

Originally Posted by Vorkapitän
DirtyHarry3033,


Thank you for taking time to resolve this problem for us.

Yes, there is a minor glitch..but I'm confident that it will soon be resolved.

Thanks again. :up: :up: :up: :up: :up:

No prob Joe! This mod was so close to what I've wanted since the 1.2 patch destroyed the Shift-F2 view, but the jerkiness and the camera rotations made it almost useless for me. So somehow I managed to "fix" both probs despite not having a clue how do do it, and now it's my favorite mod!

Thought I'd share what I found, and I'm glad if it has helped others. Now all I'm waiting on for it to be perfect is the ability to "walk the deck" of other ships! I'm trying to find out how to do that but no luck yet :damn:

DH

lba 08-12-07 08:07 PM

I’m new to this so I just walk on until I hit a wall. I have a temporary solution now for the map keys. Hopefully I can explain it well. I used the SH4 Keyboard Configurator to find keys that were not in use, I quickly learned that list wasn’t exactly correct as L was listed. That’s used for lock isn’t it? Anyway for now I landed on “r-f-g-h”. F=left, H=right, G=down, H=up. I then I added a Key1 or Key2 depending how many there were before. Then I gave it the command properties of the original arrow keys, and finally I put that at the bottom of each [ cmd(X) ], The results were that I can now use “r-f-g-h” to move the navigation map around, and the F5 custom free cam now also works as Sergbuto designed it I guess. The camera is now steady when using the mouse and it goes straight when I use the arrow keys. Additionally I can use the “r-f-g-h” keys to tilt and angle the camera the same way you can do with the mouse.

My changes (including DirtyHarry3033 changes):
Quote:

[Cmd80]
Name=To_left
Ctxt=1,2,3,5,6,9,11
MnID=0x31000001
Key0=0x64,Rn,""
Key1=0x46,R,"F"

[Cmd81]
Name=To_left_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x64,Rsn,""
Key1=0x46,Rs,"F"

[Cmd82]
Name=To_left_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x64,Rcn,""
Key1=0x46,Rc,"F"

[Cmd83]
Name=To_right
Ctxt=1,2,3,5,6,9,11
MnID=0x31000003
Key0=0x66,Rn,""
Key1=0xb0,R,""
Key2=0x48,R,"H"

[Cmd84]
Name=To_right_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x66,Rsn,""
Key1=0xb0,Rs,""
Key2=0x48,Rs,"H"

[Cmd85]
Name=To_right_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x66,Rcn,""
Key1=0xb0,Rc,""
Key2=0x48,Rc,"H"

[Cmd86]
Name=To_up
Ctxt=1,2,3,5,6,9,11
MnID=0x31000002
Key0=0x69,Rn,""
Key1=0x52,R,"R"

[Cmd87]
Name=To_up_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x69,Rsn,""
Key1=0x52,Rs,"R"

[Cmd88]
Name=To_up_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x69,Rcn,""
Key1=0x52,Rc,"R"

[Cmd89]
Name=To_down
Ctxt=1,2,3,5,6,9,11
MnID=0x31000004
Key0=0x63,Rn,""
Key1=0xb1,R,""
Key2=0x47,R,"G"

[Cmd90]
Name=To_down_fast
Ctxt=1,2,3,5,6,9,11
Key0=0x63,Rsn,""
Key1=0xb1,Rs,""
Key2=0x47,Rs,"G"

[Cmd91]
Name=To_down_slow
Ctxt=1,2,3,5,6,9,11
Key0=0x63,Rcn,""
Key1=0xb1,Rc,""
Key2=0x47,Rc,"G"
I hope I got that right. And remember I'm shooting blind so if anyone sees a problem with the keys I chose say the word. :up:

DirtyHarry3033 08-12-07 08:33 PM

Quote:

Originally Posted by lba
<...>I hope I got that right. And remember I'm shooting blind so if anyone sees a problem with the keys I chose say the word. :up:

lba, if you're learning (and looks like you are!) then that's great! But keep in mind, with the keys I mapped you can still scroll the map. Like I said I never tried that, since I always clicked-dragged to move the map, but after reading your last post I tried it and yep, the cursor keys didn't move the map at all.

But the keypad keys did, as follows:

KP4 = Left
KP6 = Right
KP9 = Up
KP3 = Down

It's a matter of preference I guess, what keys you want to push to get something to happen. But that's neither "here nor there", you've learned how to start hacking SH4 files! Hopefully you'll keep it up and will be releasing a kick-*ss mod in a few month :up:

Can't speak for whether the keys you've chosen are already in use or not, I use near-100% voice recog to control SH4 so I pretty much don't have a clue about the keys. But I will tell you this, if the "SH4 Keyboard Configurator" you mentioned is the SH3 SetKeys program, and you directly edited your Commands.cfg with it, don't be suprised if your Gramophone and Radio buttons don't work anymore. SH3 SetKeys breaks a few things in SH4, and those two I know about for sure...

DH

lba 08-12-07 08:40 PM

[QUOTE=DirtyHarry3033]
Quote:

Originally Posted by lba
If you really want to use the plotting map with the keyboard, you can do so using the KP4, KP6, KP9 and KP3.

Ah yes, but you see I don’t really have a numeric/key pad. I prefer a minimal keyboard so I use a cordless desktop for notebooks, and the numeric/key pad is separate, turned off and packed away.

DirtyHarry3033 08-12-07 09:01 PM

Understood!!!

That's more of my stupidness, I don't have a laptop or use one, or even want one so I guess it's hard for me to picture anyone else using one (especially for gaming) But if you're playing on a laptop then I guess making another map is the only way to go here. Keypad is obviously out of the question!

DH

lba 08-12-07 09:18 PM

First:
Quote:

Originally Posted by DirtyHarry3033
But I will tell you this, if the "SH4 Keyboard Configurator" you mentioned is the SH3 SetKeys program, and you directly edited your Commands.cfg with it, don't be suprised if your Gramophone and Radio buttons don't work anymore. SH3 SetKeys breaks a few things in SH4, and those two I know about for sure...

The program created a new commands.cfg in an output folder. I had already realized those values wouldn't be correct, bad methods on my end, but at least it gave me the format and correct key addresses. I then copy/pasted each value to my real commands.cfg in my mod_fix jsgme_folder and then corrected the wrong values. Both my on screen radio and pull down pacific map(gramophone) buttons work. And in case I did break something, well I don't even know if it is possible to turn them on using the keyboard so at least it's not a feature I'm going to miss. I also looked at the quick reference card that came with the game and the keys r-f-g-h were dark gray so hopefully this will continue to work smoothly.

Quote:

Originally Posted by DirtyHarry3033
lba, if you're learning (and looks like you are!) then that's great! But keep in mind, with the keys I mapped you can still scroll the map. Like I said I never tried that, since I always clicked-dragged to move the map, but after reading your last post I tried it and yep, the cursor keys didn't move the map at all.
But the keypad keys did, as follows:

<..>

I've walked this plank as a land lubber many times before, so while learning how to balance my sea legs I intend to break my game and reinstall it many times. Whether there will be a treasure I don't know yet. I like that there are so many active modders here. I find myself adding and/or updating a few mods every time I'm in port. As I head out for my mission I'm jumping of joy to experience the new mods, then as I head home again I'm jumping of joy to get back here and check out the new mods, and in the meantime I get to blow stuff up. This is living. :|\\

Quote:

Originally Posted by DirtyHarry3033
Can't speak for whether the keys you've chosen are already in use or not, I use near-100% voice recog to control SH4 so I pretty much don't have a clue about the keys.

I really should. I want to, but I don't have a microphone and I'm too busy playing and not getting fired at work to go buy me one. :damn:

Torpex752 08-12-07 10:21 PM

Excellent Mod! I love this! :up:

Reaves 08-12-07 10:26 PM

Works nicely, I really like the new external view panning. A lot more freedom in it.

:up:

sergbuto 08-14-07 08:16 AM

Quote:

Originally Posted by DirtyHarry3033
Like a couple other guys, I've had problems with very jerky views when using mouse to look around in the F5 view, and also with the camera acting like you're doing a "loop" in a plane when moving forward/backward with the arrow keys.

Well I've found "fixes" for both of these issues. They work for me anyway, YMMV.

The "looping" effect is apparently caused because the default F5 view used the arrow keys to rotate left/right and look up/down. In the modded F5 view, they are now used to move around, i.e. forward/back/left/right.

But for some reason (on my system anyway) they are still rotating the view as well. Not sure why, looks like Sergbuto took out the x-y axis rotation in Cameras.dat for the F5 camera. :hmm: At any rate, in addition to doing the new function of changing the camera position, they are also still rotating the camera as was originally done.

Anyway, I fixed this by editing Commands.cfg. The following commands rotate the camera up/down/left/right, and are bound to the arrow keys:

[Cmd80] Name=To_left
[Cmd81] Name=To_left_fast
[Cmd82] Name=To_left_slow
[Cmd83] Name=To_right
[Cmd84] Name=To_right_fast
[Cmd85] Name=To_right_slow
[Cmd86] Name=To_up
[Cmd87] Name=To_up_fast
[Cmd88] Name=To_up_slow
[Cmd89] Name=To_down
[Cmd90] Name=To_down_fast
[Cmd91] Name=To_down_slow

I originally tried just commenting out the keymapping, but that also kills ability to rotate with mouse. So I rebound them to KP4 and KP6 for left-right, and KP3 and KP9 for up-down.

For each command, comment out the Key0= line which is the one bound to arrow keys and replace it with the appropriate KP binding. I'm listing them below, with a comment after each as to whether it's normal, fast or slow speed. Copy to the appropriate command, i.e. copy Key0=0x64,Rsn,"" to the command To_left_fast.

Left:

Key0=0x64,Rn,"" (Normal)
Key0=0x64,Rsn,"" (Fast)
Key0=0x64,Rcn,"" (Slow)

Right:

Key0=0x66,Rn,"" (Normal)
Key0=0x66,Rsn,"" (Fast)
Key0=0x66,Rcn,"" (Slow)

Up:

Key0=0x69,Rn,"" (Normal)
Key0=0x69,Rsn,"" (Fast)
Key0=0x69,Rcn,"" (Slow)

Down:

Key0=0x63,Rn,"" (Normal)
Key0=0x63,Rsn,"" (Fast)
Key0=0x63,Rcn,"" (Slow)

Goes without saying, make a backup of Commands.cfg before you do this!

This completely fixed the problem of the camera rotating when moving, on my system. I can now move forward/back/left/right and the camera doesn't rotate at all.


OK, the problem of the "jerky" mouse views I fixed by editing Cameras.dat. I used skwasjer's awesome Silent 3ditor for this. Maybe you could also use SH3 MiniTweaker, I didn't try so I can't say...

Naturally, back up your Cameras.dat before you start!

Run Silent 3ditor and load C:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific\Data\Library\Cameras.dat.

Open the node "_Dummy_Cam_ConningDeck", then open "FreeMove" under that node. Click "Properties". In the right-hand pane, expand the "FreeMove" branch if it's not already expanded.

You want to change 3 values. The original values are:

RotationSpeed=120
RotationInertia=0.05
RotationRun=2

Change all 3 of these values to 0:

RotationSpeed=0
RotationInertia=0
RotationRun=0

and save the file. This totally eliminated the "jerky" mouse movements on my system :up: I can look around with the mouse and it's as smooth as it was before the mod!

Hope this info is useful to someone! :yep:

DH

Glad, you worked it out.

Vlad34 09-01-07 12:25 PM

Quote:

Originally Posted by DirtyHarry3033
Like a couple other guys, I've had problems with very jerky views when using mouse to look around in the F5 view, and also with the camera acting like you're doing a "loop" in a plane when moving forward/backward with the arrow keys.

Well I've found "fixes" for both of these issues. They work for me anyway, YMMV.

The "looping" effect is apparently caused because the default F5 view used the arrow keys to rotate left/right and look up/down. In the modded F5 view, they are now used to move around, i.e. forward/back/left/right.

But for some reason (on my system anyway) they are still rotating the view as well. Not sure why, looks like Sergbuto took out the x-y axis rotation in Cameras.dat for the F5 camera. :hmm: At any rate, in addition to doing the new function of changing the camera position, they are also still rotating the camera as was originally done.

Anyway, I fixed this by editing Commands.cfg. The following commands rotate the camera up/down/left/right, and are bound to the arrow keys:

[Cmd80] Name=To_left
[Cmd81] Name=To_left_fast
[Cmd82] Name=To_left_slow
[Cmd83] Name=To_right
[Cmd84] Name=To_right_fast
[Cmd85] Name=To_right_slow
[Cmd86] Name=To_up
[Cmd87] Name=To_up_fast
[Cmd88] Name=To_up_slow
[Cmd89] Name=To_down
[Cmd90] Name=To_down_fast
[Cmd91] Name=To_down_slow

I originally tried just commenting out the keymapping, but that also kills ability to rotate with mouse. So I rebound them to KP4 and KP6 for left-right, and KP3 and KP9 for up-down.

For each command, comment out the Key0= line which is the one bound to arrow keys and replace it with the appropriate KP binding. I'm listing them below, with a comment after each as to whether it's normal, fast or slow speed. Copy to the appropriate command, i.e. copy Key0=0x64,Rsn,"" to the command To_left_fast.

Left:

Key0=0x64,Rn,"" (Normal)
Key0=0x64,Rsn,"" (Fast)
Key0=0x64,Rcn,"" (Slow)

Right:

Key0=0x66,Rn,"" (Normal)
Key0=0x66,Rsn,"" (Fast)
Key0=0x66,Rcn,"" (Slow)

Up:

Key0=0x69,Rn,"" (Normal)
Key0=0x69,Rsn,"" (Fast)
Key0=0x69,Rcn,"" (Slow)

Down:

Key0=0x63,Rn,"" (Normal)
Key0=0x63,Rsn,"" (Fast)
Key0=0x63,Rcn,"" (Slow)

Goes without saying, make a backup of Commands.cfg before you do this!

This completely fixed the problem of the camera rotating when moving, on my system. I can now move forward/back/left/right and the camera doesn't rotate at all.


OK, the problem of the "jerky" mouse views I fixed by editing Cameras.dat. I used skwasjer's awesome Silent 3ditor for this. Maybe you could also use SH3 MiniTweaker, I didn't try so I can't say...

Naturally, back up your Cameras.dat before you start!

Run Silent 3ditor and load C:\Program Files\Ubisoft\Silent Hunter Wolves of the Pacific\Data\Library\Cameras.dat.

Open the node "_Dummy_Cam_ConningDeck", then open "FreeMove" under that node. Click "Properties". In the right-hand pane, expand the "FreeMove" branch if it's not already expanded.

You want to change 3 values. The original values are:

RotationSpeed=120
RotationInertia=0.05
RotationRun=2

Change all 3 of these values to 0:

RotationSpeed=0
RotationInertia=0
RotationRun=0

and save the file. This totally eliminated the "jerky" mouse movements on my system :up: I can look around with the mouse and it's as smooth as it was before the mod!

Hope this info is useful to someone! :yep:

DH


Thank you! This completely fixed it, I appreciate your time in getting this ironed out because this is really an incredible mod and really didn't want to pass on it. So, to you sir....I owe you a round!:up:

DirtyHarry3033 09-01-07 01:23 PM

Vlad34, turns out there are some problems with the Commands.cfg changes I made. Like LBA mentioned, arrow keys no longer scroll the map. Also turns out that arrow keys will no longer control deck gun elevation.

I've been looking at this after reading this thread yesterday:

http://www.subsim.com/radioroom/showthread.php?t=121412

and finally found out this morning what was causing the problem to begin with.

Turns out that I had a "Copy of Cameras.dat" in my Data\Library folder that was made before I put Sergbuto's mod on. It was either put there by MiniTweaker, or I made a backup copy before looking at Cameras.dat.

Either way, it was conflicting with the modded Cameras.dat. Seems SH4 will load any and all files it finds with "Cameras.dat" anywhere in the name. So it loaded Sergbuto's file with the cool freemove stuff, then loaded the old copy which still had the axis rotation stuff for the arrow keys from the un-modded conning deck camera. Basically it combined the new function of moving around the deck with arrow keys, with the old function of looking up/down/left/right with the arrow keys so that both happen when you press an arrow key - at least if I understand what's going on here ;)

I think there was also a "conflict" in the 2 different Cameras.dat's that was causing the "shakiness" when panning with the mouse.

I fixed it like this: 1st I took out all the changes I made to Commands.cfg mentioned in my earlier post. 2nd I put back the original Cameras.dat from Sergbuto's mod. 3rd I deleted the "Copy of Cameras.dat" from Data\Library folder.

After doing that, the camera no longer rotates at all when using arrow keys, and the "shakiness" is gone when panning with mouse. Though the pan speed seems a little too fast to me.

Vlad, check your Data\Library folder, if there are any copies of Cameras.dat in there, delete it/them, undo changes to Commands.cfg and reinstall Sergbuto's original mod. Should work perfect then, and you won't lose any functions of the arrow keys!

DH

sergbuto 09-04-07 08:30 AM

The interference problem of two copies of the file is known from SH3 times. The brief installation intsructions in post #39 of this thread point out to the necessity of removal of existing Camera.dat from the Library folder before installing the mod. But maybe these instruction are not clear enough in emphasizing the problem.


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