Giter Site home page Giter Site logo

Comments (23)

ParasiteEve avatar ParasiteEve commented on May 26, 2024 1

http://i.imgur.com/ULLzhAg.png
This is the crash I am getting, it's crashing for me as well.

from overwatch-aim-assist.

kkm avatar kkm commented on May 26, 2024 1

I am using VS2013 and .Net 4.5.
In Release or Debug both work fine for me.

from overwatch-aim-assist.

wasdasf avatar wasdasf commented on May 26, 2024 1

I think Ive figured out why the program lags while have both overwatch and the cheat opened Overwatch is use 32% of my cpu and 1,182MB of my memory with the cheat it self also using roughly 14% of my cpu. Which for me is extremely odd and of course you gotta take in account my computer is extremely bad to compared to your I bet. So I don't know if there is a way to optimize the cheat for crappier computers, but if so would greatly appreciate.

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

That is very odd indeed, the method that I'm using for capturing a screenshot is a pretty standard one, but from that info I can't tell why GetObject is causing an exception.
Run the application in debug mode rather than release and tell me what the error is.

I suspect that you're getting "error reading registry value" because it's running in release mode. and hence the local values are not being reported back to the debugger due to optimizations; hence the 'value is optimized away and not available' messages.

TL;DR: Run it in debug mode and report back to me.

Thanks!

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

Thank you for the info ParasiteEve.

Looks like the problem arises when trying to dereference a null pointer. Try modifying line 66 to the following:

if(pixels!=NULL)
        delete[] pixels; 

Or you can download the source again and report back to me please.

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

http://i.imgur.com/T8CSq6h.png

Added the code; this is what occurs, same error. Thanks for the help.

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

Thanks again for your reply.
Hmm, I'm pretty puzzled to be honest as I cannot seem to find a way to replicate the error for investigation purposes. I am assuming that it occurs on starting the program, specifically when line 101 (in Capture.cpp) is called for the first time.

Does the program crash on a pre-compiled version?:
https://www.mediafire.com/?a3omopoh1k20cm1

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

Might be due to my version of VS? I am using 2015. I googled and this may be the case. What version do you use? I will test the pre compiled when I get home.

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

I am using VS2015 Pro edition but as you pointed out, yes, some people have solved this by changing VS versions which I find very odd, hence why I sent you a compiled version (to test this possibility out).
Thanks

from overwatch-aim-assist.

wasdasf avatar wasdasf commented on May 26, 2024

It crashes in release but when I debug it starts work but it lags very much

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

wasdasf does my pre-compiled version work for you? https://www.mediafire.com/?a3omopoh1k20cm1

I genuinely have no idea why it would run on debug (which is rightfully laggy) and not on release.
I need more info for instance the exception details when running in release; I know that it is crashing on GetObject but I don't really know the specifics.

from overwatch-aim-assist.

wasdasf avatar wasdasf commented on May 26, 2024

The precompiled version runs but getting error about blackscreen and is still laggy and yes i have it on borderless

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

I can confirm that the black screenshot thingy is an issue for some people yes (because I received 3 private messages about it).
I currently don't know why some people are getting a black screenshot, even in borderless windowed mode but I will look into it tomorrow if I have the time and motivation.

As for the lag, I cannot understand how it is lagging if it does nothing but report that the screenshot is black and waits for half a second before taking another screenshot and checking it again:
while (!recorder.screenshotGDI(screeny)) Sleep(500);

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

Hi JP, thanks for the support. Precompiled works but I do get the black screen error and also it completely aims in the wrong direction when it sees health bar. I'd edit the code a bit but I can't recompile due to the error. Will try 2013 I suppose.

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

http://i.imgur.com/Nfzl7Nz.png
http://i.imgur.com/yMYk4CW.png
http://i.imgur.com/YVk7UZL.png
http://i.imgur.com/Y81gOFk.png
http://i.imgur.com/VgrQfpg.png

Installed 2013 and same errors. I looked at the call stack and it shows 5 possible locations that's causing the error, I have put the screenshot up along with highlighting to indicate it.

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

When I rebuild the solution there's this warning:
1> Screenshot.cpp
1> screenshot.cpp(109): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

I don't know how you're getting a black screen error yet it still tries to aim, it should be stuck taking endless screenshots until one is obtained successfully.

We do not really need precision in your implementation of line 109 but you can typecast if it bothers you by putting (int) before percentagewidth.
PS: I noticed that you're using a previous commit/version, try and download the latest changes where I removed some unnecessary things/constructors (which MIGHT have been leading a heap corruption in some users).

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

I re-implemented the screenshot function after googling why GetDIBits returns all black pixels.
Can someone test the changes out before resorting to another approach?

from overwatch-aim-assist.

jpxue avatar jpxue commented on May 26, 2024

If by lag, you mean jittery mouse movements then I'd recommend limiting the FPS to display mode; it will do wonders!

Hmm, my CPU is 6 years old and Overwatch uses 15-20%/1.1GB of my CPU & RAM respectively.
The program uses 7%/15mb in my case so yeah, I can imagine it being laggy on your machine if it's consuming 14% of your CPU.

I could potentially run Overwatch in a VM so as to simulate the processing power of really crappy computers and optimize the code (maybe I need more sleep functions so as to tax the CPU a little bit less or use threads to increase performance); idk unless I try this out but I currently do not have time to write code.

At least, I'm assuming that the black screenshot issue was solved seeing that I stopped receiving PMs about it too, but I'd rather have confirmation.

from overwatch-aim-assist.

wasdasf avatar wasdasf commented on May 26, 2024

Yeah you fixed the black screenshot issue

from overwatch-aim-assist.

kkm avatar kkm commented on May 26, 2024

@ParasiteEve All files of *.h should into folder Header Files.

from overwatch-aim-assist.

ParasiteEve avatar ParasiteEve commented on May 26, 2024

The new commit fixes all the errors I had, thanks. Works fine now. There are obvious issues such as multiple enemy bars and whole screen capture but the core works

from overwatch-aim-assist.

wasdasf avatar wasdasf commented on May 26, 2024

You can change the % of your screen it captures

from overwatch-aim-assist.

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.