View Single Post
Old 11-28-13, 05:32 PM   #517
minsc_tdp
XO
 
Join Date: Mar 2007
Posts: 411
Downloads: 1
Uploads: 0
Default resolution

I took a look at the code that handles all this:

$x1024x768 += $RESX - 1024 if $quadrant =~ /Right/i; # Resolution adjustment
$y1024x768 += $RESY - 768 if $quadrant =~ /LowerLeft/i || $quadrant =~ /LowerRight/i; # Resolution adjustment.

It's important to understand what this means to sort these issues out.

The entire thing is based on a few key assumptions, which if you check them one by one and tell me which one is actually wrong, maybe we can sort this out:
  1. That the X/Y coord of anything as specified in the CSV is valid for a 1024x768 screen
  2. Everything is in one of four quardrants (UpperRight, LowerRight, UpperLeft, LowerLeft) (no need to verify this one, it's fact)
  3. That when you increase the resolution to 1920x1200 (an increase of 896 on the X, and 432 on the Y):
    1. Nothing changes in size
    2. Items in the upper left quadrant do not move.
    3. Items in the upper right quadrant move right by 896 pixels
    4. Items in the lower left quadrant move down by 432 pixels
    5. Items in the lower right quadrant move right by 896 and down by 432

I believe somewhere in here these assumptions are not correct.

My suggestion is to take screenshots at 1024x768 and some other resolution and using Photoshop or similar (The Gimp is free) first verify that one control from each quadrant is where it's supposed to be in 1024x768 screenshot (Photoshop/etc will give you exact x/y when hovering over something)

Then using the maths above determine where the control should be due to changing your resolution in the BAT file to whatever. Verify it with your screenshot.

If someone does all this who is having problems I'm sure somewhere along the way there will be an AHA moment.

I know that some of the mods out there like Trigger Maru and such actually modify the contents of the button bar at the bottom which will totally ruin things, which is why there are separate CSVs for each one. But I don't think I had the TM one ever perfect, and it was quickly updated afterward.

If ever I am unreachable here and anyone is desperate to email me, I'm reachable by email: knepfler at gmail dot com
__________________
June 29 2016 - shSpeech v2.55 - Voice Command for Silent Hunter 4! View Thread
minsc_tdp is offline   Reply With Quote