Giter Club home page Giter Club logo

Comments (18)

michaelb7k avatar michaelb7k commented on May 5, 2024

I've got a glitch where the card ages of the opponents cards doesn't line up - this seems to be a similar problem.
Also, the horizontal position of the player's deck is set to 80% to get it to show on screen.

This glitch occurs with the latest version of the program, 0.3.11 and earlier versions.

Desktop resolution (Win7x64) is set to 1920_1200
Hearthstone resolution (windowed) is set to 1920_1080

Curiously, the resolution of the window that Hearthstone has set is not as above but rather ~1845*1080.

Adjusting the CustomWidth and CustomHeight values in the config does alter where overlay sits but not by much - I'm unable to get the overlay to matchup.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

You can also set VisibleOverlay to true, that will make the overlay have a blue tint instead of being transparent and move it with OffsetX and OffsetY. You should be able to make it line up with hearthstone using those.

I still don't have the slightest clue why this happens :/. Or how to get the "correct" resolution, for that matter.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

Could you clear the custom values in the config (or just rename your config for the time being) and try if replacing your exe with this one fixes it?

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

Running with that unfortunately didn't fix the problem.
Config was renamed, no config settings altered running new exe, restarted Hearthstone aswell to no luck.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

Well it was worth a try. Then I'm all out of ideas again.

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

It looks like the tracker is just making the overlay bigger than it should be.

Desktop resolution (Win7x64) is set to 1920_1200
Hearthstone resolution (windowed) is set to 1920_1080

The dimensions of the window that Hearthstone has set is not as above resolution but rather ~1845*1080px.

But setting:-
0
0
1460
860
Will give correctish results.

When setting the tracker to auto-detecting size (custom values of -1) the overlay is also bigger than window.

Also, occasionally when alt-tabbing into Hearthstone card ages are shifting position upon x-axis by some smallish amount (other overlays are fine and are staying put when this occurs).

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

This is what's used to get the window size. And that seems to be for some reason incorrect in some cases. All reports I got on this were laptop users, is that the case with you as well? Not sure what that means but it sure means something.

Does the cardage shifting happen after the opponent hand changed (play/draw)? That happens because the labels are on a parabola that shifts to the left/right depending on the handcount, to match the card locations. So the same thing should happen without alt-tabbing.

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

Using a desktop computer with a widescreen 24inch monitor (1920*1200).

No action has been taken when the card ages have shifted.

Some further resolution testings:
1920_1080 resolution
1460_860 overlay

1650_1080
1320_860

1600_900
1280_720

Is the result of the call to User32.GetWindowRect logged at all?
The rest of the overlay sizes and variables?

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

So I guess the shifting is then somehow related to the resolution problems.

No logging of that currently. Before I add that, your hearthstone window actually the resolution it says it is? (screenshot -> paint, draw selection)

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

They are with the exception of the 1920_1080 resolution which is 1845_1080.

It seems like the overlay is out by 0.2 almost exactly in all cases - not sure if that's a hint to anything.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

So that's probably all the logging will tell us anyway then. I mean.. I could just add an option to scale the overlay down by 20% if that's consistent (which is the problem, since I haven't heard too many reports about it and I can't reproduce it either)... is the offset 0,0 in all cases?

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

Each resolution has a different offset - they're not all offset by the same.

If it's just a few people experiencing this then perhaps there are other priorites to get to - no need to worry too much I guess.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

Is the offset at least consistent with the 20%?

Yeah, if I could think of a soution I would probably try to fix it asap, but I really can't. And once you set the custom values it would work just fine, so that's okay I suppose.

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

Source of bug discovered.

If the dpi setting within Windows is not set to 100% (ie. font scaling is set to something other) then the overlay will not be the same size as the game window.

In Windows 7 right-click desktop -> Screen Resolution -> Make text and other items larger or smaller -> Setting to 100% fixes sizes issues for all resolutions.

The code fix would be to take current dpi of screen into account.
This also seems to fix all offsets issues - no offset adjustments required so far.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

You are awesome :).

Got it fixed now.

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

yay!

from hearthstone-deck-tracker.

michaelb7k avatar michaelb7k commented on May 5, 2024

Awesome!

Glad we were able to tackle that one - can the faq on the front page be updated now?

from hearthstone-deck-tracker.

azeier avatar azeier commented on May 5, 2024

Completely forgot about that, yes, thanks.

from hearthstone-deck-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.