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)
-   -   [REQ] Uboat Gradations scales (https://www.subsim.com/radioroom/showthread.php?t=149114)

vanjast 03-08-09 08:59 AM

[REQ] Uboat Gradations scales
 
Does anybody know how to get rid of the Scale lines on the UBoat scopes.
I've managed to get rid of the text, but worried that the scales might be in code :nope:
http://www.vanjast.com/SH4Mod/Attk.jpg

http://www.vanjast.com/SH4Mod/Obs2.jpg

Thanks for any help
Van

keltos01 03-08-09 10:11 AM

yes it can be done, post the files for me and I'll modify them sometimes this week.

Keltos

ps but if you really wanna help me back find me real proof of how those lines looked on an IJN periscope ;)

vanjast 03-08-09 11:36 AM

Quote:

Originally Posted by keltos01
yes it can be done, post the files for me and I'll modify them sometimes this week.

Hmm, which files are you talking about.
I've modified the scope skin files, and didn't see it there.
I found the text pieces in the menu_1024_768.ini file, but haven't found the scale lines here yet. I've tried editing some marker dds file... no luck yet.:wah:

Quote:

Originally Posted by keltos01
ps but if you really wanna help me back find me real proof of how those lines looked on an IJN periscope ;)

It's bad enough finding the UBoat scope stuff, but I'll have a go. :D
:)

keltos01 03-08-09 11:40 AM

Quote:

Originally Posted by vanjast
Quote:

Originally Posted by keltos01
yes it can be done, post the files for me and I'll modify them sometimes this week.

Hmm, which files are you talking about.
I've modified the scope skin files, and didn't see it there.
I found the text pieces in the menu_1024_768.ini file, but haven't found the scale lines here yet. I've tried editing some marker dds file... no luck yet.:wah:

Quote:

Originally Posted by keltos01
ps but if you really wanna help me back find me real proof of how those lines looked on an IJN periscope ;)

It's bad enough finding the UBoat scope stuff, but I'll have a go. :D
:)

I think it's in the alpha channel of the periscope.dds

but we have to be sure which one it uses, I modified a german scope but not both I think...

it's just drawing with photoshop really but I'm not too good at it.

keltos

vanjast 03-08-09 12:09 PM

I've played with all the available 'periscope.dds' files = no luck.
:wah:
I'll just carry on looking :-?

Hitman 03-08-09 03:11 PM

The scale is encoded :damn: but if you use the cameras.dat values I told you in the readme file they will go out of the mask. Of course you will also have a smaller field of view than supposed, but since screen resolution is limited it doesn't hurt to be able to see images bigger (Reducing FOV does the same effect as increasing the zoom).

joegrundman 03-08-09 07:47 PM

so what does this scale do, here?

(from sh3periscope dds in sh4)

http://img8.imageshack.us/img8/3066/scalep.jpg

Webster 03-09-09 12:58 AM

Quote:

Originally Posted by joegrundman
so what does this scale do, here?

(from sh3periscope dds in sh4)

http://img8.imageshack.us/img8/3066/scalep.jpg

that sure looks like it to me :yep:

vanjast 03-09-09 04:58 AM

I've masked that one out in those image files - makes no difference.
What i managed to do in the menu_1024_768.ini file is move the text into the 'masked' top left corner, but when I saw the zoom value indicator change, I sort of knew this was hardcoded :wah:.

vanjast 03-09-09 05:09 AM

In the Cameras.dat file, you have only one FOV and zoom section that works on both US and Axis subs. This causes a problem if you want to match the zoom scales/FOV/Bearing indicators to the correct scaling.

One can scale the US scopes by changing the skin files, but cannot do this with the Axis scope because of this hardcoding.
Well you might think why not scale both to the Axis sub - and then the Bearing indicator will be out of sync for both scopes.

I think the only solution is to overlay the skin file over the hard coded section and hope it fits OK.

:up:

vanjast 03-09-09 08:20 AM

Decided to combine the two together, so as not to mess it up too much:D.

Attack scope with minimal night time additions.. Just managed to cover the scales, although not completely
http://www.vanjast.com/SH4Mod/Attk2.jpg

And obsscope.. with sextant thingy
http://www.vanjast.com/SH4Mod/Obs3.jpg

As the UBoat scope is now it should just pass the AOBWheel test... I'll put this up later tonight.
:)

keltos01 03-09-09 08:25 AM

how did you do it ? what files did you change and how ?

keltos

vanjast 03-09-09 08:36 AM

The Uboat scaling is very close to mine (or the other way round :D).

I just played with the Alpha and Red layers, and blanked out the Green and Blue.
to get the scales to align I took a screen grab (image is the same size) and after adjusting the opacity (to make it see-through), positioned it over the the alpha layer.

These are the scope skin DDS files of course..
:)

Hitman 03-09-09 08:46 AM

Quote:

I've masked that one out in those image files - makes no difference.
What i managed to do in the menu_1024_768.ini file is move the text into the 'masked' top left corner, but when I saw the zoom value indicator change, I sort of knew this was hardcoded :wah:.
LOL I told you it was hardcoded :arrgh!:

Quote:

In the Cameras.dat file, you have only one FOV and zoom section that works on both US and Axis subs. This causes a problem if you want to match the zoom scales/FOV/Bearing indicators to the correct scaling.

One can scale the US scopes by changing the skin files, but cannot do this with the Axis scope because of this hardcoding.
Well you might think why not scale both to the Axis sub - and then the Bearing indicator will be out of sync for both scopes.

I think the only solution is to overlay the skin file over the hard coded section and hope it fits OK.
You have another alternative:

In the US periscopes the game doesn't place reticles or whatever, they are in the Alpha Channel of the periscope mask. So you can:

1.- Increase the FOV like I suggested (Angularvalue=47) and use the mask to hide the reticle in the german scope

2.- Make a bigger mask for the US scope, effectively still using all field of view.

vanjast 03-09-09 11:38 AM

From what I remember ( I must check again), when I started this scheme, is that when playing with the zoom factors, you could misalign the bearing indicator at the top of the scope, so I set the zoom factors to match the bearing indicator, then set the gradations on the scope skin masks/layers.

This was the reason why I avoided going the larger FOV mask route
:)


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