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 02-01-10, 12:53 AM   #1
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default [TEC] Getting rid of the hardcoded reticles (Yes, it can be done!!!)

When I consider how simple the solution was, I feel almost stupid for the time (years!) it has taken to figure it out

I guess I'll never get accepted at MENSA ... oh well

On to the topic:

THE PROBLEM:

As most modders know, the reticles seen in the periscopes and UZO in SH3 and SH4 (german uboats, not american ones) are hardcoded and can't be removed away. This has given more of a headache to the modders who wanted to change the look of the reticles, because the old ones would still show, no matter what. The only solution we found for this was to reduce the field of view, and make it smaller than 30º for the periscopes (Because the graticle leaves a space of approximately that size in the centre, where you only see the crosshair). But that of course meant losing field of view at the expense of historical reality, where periscopes had some 38º (In the game it is 40º)

THE SOLUTION:

Well, as you also know, when you zoom in with your mouse wheel, the hardcoded reticle does NOT change its size. It is scaled to display in the proper size of the default zoom you have, which is usually 1.5x

Soooooo if you think that the high power zoom is way less than 30º (Normally 8º-9º) and will as such never show the reticle ....

the simple solution is to INVERT the order of the zoom levels in cameras.dat, making the high power (6x) the default one (First zoom entry in cameras.dat), and the low power (1.5x) the second one (Second zoom entry in cameras.dat) you get when moving the wheel mouse. That way, the reticle is scaled to the 6x default one, and actually is moved off the screen, leaving only the central crosshair And you won't see it either when switching zoom to low power, because it doesn't rescale

That's it gentlemen
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 02-01-10, 03:26 AM   #2
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

Great Work Hitman !!!

now we need to try that in the Jyunsen B mod !

rid at last of that extra reticle, going full IJN !

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 02-03-10, 11:05 AM   #3
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

nice!

And finaly I found a way, how to draw (self)hardcoded things on the screen
__________________
--
Vapor-ware is always easier to sell because there's no limit what it can do!

Last edited by Seeadler; 02-03-10 at 09:04 PM.
Seeadler 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 12:10 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.