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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-03-13, 09:29 PM   #12
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default BigWalleye

BigWalleye, send me your files and I will post them. PM me.

I took a quick look at the source code - which I haven't looked at in years btw.

How the whole thing works is as follows:

* The coordinates in the Excel are based on a 1024x768 screen 4:3 aspect, but the aspect shouldn't come into things anywhere, it's certainly not coded to change anything depending on aspect, only resolution.
* sh4, when resolutions change, simply moves, but does not stretch, the image, based on quardrants. The right quadrants move further right, the left ones move further left.
* shSpeech checks the quadrant defined in the CSV,
* And if it is lower or upper right, such as the Oxygen at 590 x 729...
* it adds your resolution to the X and then subtracts 1024, resulting in 902 for a 1336x768 scenario.
* it adds your resolution to the Y, then subtracts 768, resulting in 729 for a 1336x768 scenario (no change).
* If the quadrant is any of the left side quadrants - there is no change. Note that all but 5 of the quadrants are lowerleft (even if the object is further right, SH4 treats it as if it were lower left).

What I would suggest is taking a screenshot at 1024x768 and take another at 1336x768.

Then confirm the oxygen click point is indeed at 590 x 729 for the 1024x768 scenario.
If so, check the 1336x768 screenshot. Figure out how far off it is, then PM me with the screenshots and how far off it is, and any theories as to why.

If for any reason some stretching is occurring, that would definitely be it.

Essentially the cause must be, simply put, that increasing your resolution beyond 1024x768 does not merely "move" the entities by a relative amount, but something else is happening. I'd imagine that when you modified all of the X/Y values, you modified them all by the same amount based on each quadrant.

If you're feeling adventurous, feel free to modify voice.pl with a text editor and then compile it with perl2exe.

If you have any mods installed that, say, add a new button to the command bar, that would account for why you had to modify every single X value.
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote
 


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:19 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.