Trombov / FutureNNAimbot

Universal neural network aimbot for all games with custom training mode
284 stars 93 forks source link

System.DllNotFoundException: Microsoft Visual C++ 2017 Redistributable (x64) #31

Closed C-hrl closed 4 years ago

C-hrl commented 4 years ago

I get this exception when I launch the .exe and when the "trained" folder has files in it, I have CUDA 10.0 and VC Redist 2015-2019 which should work as 2017 but isn't detected,

I can't have both installed (if I try to install one of the version while to other is already installed, I get an error message telling me that it's already installed). If I completely remove 2015-2019 and replace it with 2017 most of my games don't work anymore.

Was wondering how to remove the check for VC 2017 or how to make it understand that 2015-2019 should work like 2017. Would also be great if FNN used a newer version of Alturos.Yolo as I saw over there that they check for 2015-2019 now.

C-hrl commented 4 years ago

After further tests, it seems that the YoloWrapper in Alturos.Yolo is the reason why it doesn't work. It has a function to look for vc redist 2017.

I found a brutish way of fixing this by decompiling the Alturos.Yolo and setting environmentReport.MicrosoftVisualCPlusPlus2017RedistributableExists = true; line 138 as well as deleting any check for vc redist 2017 in the code and then recompiling it with these fixes

Hope this help people with similar issues

New dll to get rid of vc redist error (don't forget to back up your original file, may not work with future updates of FNN) VCRedistCorrectedDLL.zip

Neakita commented 4 years ago

Hi, could you send me your corrected version?

yosoloman commented 4 years ago

same couuld you send

yosoloman commented 4 years ago

ca you send me the dll

Neakita commented 4 years ago

Can't you download it from here?

Neakita commented 4 years ago

https://drive.google.com/file/d/1KZxIwyfZBkTxDctcDKdJKS-6AxnKKnki/view?usp=sharing

Neakita commented 4 years ago

I edited the code through visual studio, updated NuGet, installed a Redist of an older version, I was written that the video card was not detected, I deleted the check for this, it started, but the speed was not very fast, as if it worked on the processor.

yosoloman commented 4 years ago

trhanks

Neakita commented 4 years ago

I edited the code through visual studio, updated NuGet, installed a Redist of an older version, I was written that the video card was not detected, I deleted the check for this, it started, but the speed was not very fast, as if it worked on the processor.

Yeah, it working on CPU. image

yosoloman commented 4 years ago

i had to request access

yosoloman commented 4 years ago

plz let me have access so i can download

Neakita commented 4 years ago

Am.. u havent access?

Neakita commented 4 years ago

Done.

yosoloman commented 4 years ago

thxz

yosoloman commented 4 years ago

i still get the issue of it not recognizing the vc runtime 2017

Neakita commented 4 years ago

With not modified dll - yes, on moded dll it working on cpu.

yosoloman commented 4 years ago

i have the correct cuda kit and have vc 2015-2019

yosoloman commented 4 years ago

Unhandled Exception: System.DllNotFoundException: Microsoft Visual C++ 2017 Redistributable (x64) at Alturos.Yolo.YoloWrapper.Initialize(String configurationFilename, String weightsFilename, String namesFilename, Int32 gpu, Boolean ignoreGpu) at FutureNNAimbot.Program.Main(String[] args)

yosoloman commented 4 years ago

i dont understand why this wont work even with the patched dll

Neakita commented 4 years ago

How did you decompile the DLL?

yosoloman commented 4 years ago

is there a fix to not look for the vc 2017 which is replaced by the 2015-2019 update

yosoloman commented 4 years ago

i didnt decompile

yosoloman commented 4 years ago

i thot yor dll was the fizxed one

Neakita commented 4 years ago

"I found a brutish way of fixing this by decompiling the Alturos.Yolo and setting"

yosoloman commented 4 years ago

can you give me the fix

yosoloman commented 4 years ago

i dnot know how to fix

yosoloman commented 4 years ago

its just the one i donwloaded from you

Neakita commented 4 years ago

•-•

I can, but it working on cpu, i trying to fix it.

Neakita commented 4 years ago

image

yosoloman commented 4 years ago

i havent leanred much coding to be able to implement this. if I get a newer cuda version will it work for the dll you sent

Neakita commented 4 years ago

image But i not programmer.

yosoloman commented 4 years ago

where is it that you are writing that code to

Neakita commented 4 years ago

I installed 10.1 cuda coz new version of nugget need it.

yosoloman commented 4 years ago

oh ok

Neakita commented 4 years ago

image

yosoloman commented 4 years ago

so if i get that should it fix since I have your dll

yosoloman commented 4 years ago

i ahve a 2080ti so i should be compatible

Neakita commented 4 years ago

So, i'll send it?

yosoloman commented 4 years ago

ok

yosoloman commented 4 years ago

what steps do i need to take to get this to work

Neakita commented 4 years ago

https://drive.google.com/file/d/1SDCdw083gJ1x36tSzhNGMOfEILJC394R/view?usp=sharing

Neakita commented 4 years ago

I tried everything that comes into my head, in particular, I have an older version of the C++Redist

yosoloman commented 4 years ago

Unhandled Exception: System.MissingMethodException: Method not found: 'Void Alturos.Yolo.YoloWrapper..ctor(System.String, System.String, System.String, Int32, Boolean)'. at FutureNNAimbot.Program.Main(String[] args)

Neakita commented 4 years ago

image

yosoloman commented 4 years ago

now i only have this error but the other one is fixed

Neakita commented 4 years ago

Unhandled Exception: System.MissingMethodException: Method not found: 'Void Alturos.Yolo.YoloWrapper..ctor(System.String, System.String, System.String, Int32, Boolean)'. at FutureNNAimbot.Program.Main(String[] args)

Am... I need to think about it.

yosoloman commented 4 years ago

i have the 14.26 version do i need to downgrade to .25

Neakita commented 4 years ago

image I'm confused about the variable "Ignore gpu"

yosoloman commented 4 years ago

is there a way you can just send me all of the files you have for the cheat

yosoloman commented 4 years ago

i trained the game for apex now its just when I run it after it wont work