Giter VIP home page Giter VIP logo

dota2cheat's Introduction

Dota2Cheat 7.35b: now with VPK decoding!

v4 image

There weren't many open-source Dota cheats. And so I decided to fix that. Written in C++20 with love.

Some SDK bits were fully or partionally taken from McDota by LWSS, which D2C is inspired by.

Using ImGui with DirectX 11 for the interface

also using Minhook for them trampolines

also using Google's Protocol Buffers for net message handling

Cheers to their wonderful creators!

Features

To open the cheat menu, press Insert

WARNING! Legit features ahead, no scripts that play the game for you!

  • Automation:

    • AutoAccept:
      • Customizable delay
    • AutoHeal with customizable health tresholds
    • AutoMidas with customizable min XP reward
    • Bounty rune & Aegis snatcher
    • CastRedirection™(always casts on real hero)
    • Mana & HP abuse
    • AutoDodge for projectiles
    • Tome of Knowledge purchase RIP on 21.04.2023. Goodbye, sweet prince.
  • Information:

    • Maphack:
      • Teleport Tracker — draws enemy TPs on the map
      • Particle MapHack — shows particles in FoW and identifies their source()
    • AbilityESP™(abilities & items)
    • Bars:
      • Manabars
      • HP amount displayed on healthbar
    • Indicators
      • Speed indicator — shows whether you are faster or slower than the enemy
      • Kill indicator — shows if you can kill the enemy with a nuke(if your hero has one). If you can't, shows how much more health there is than the treshold.
    • Draw circles of custom radius around your hero(e. g. to see XP receiving range)
    • Shows point-cast spells(Sunstrike, Torrent, Light Strike Array)
    • Modifier Revealer:
      • Shows target-cast spells(Assassinate, Charge of Darkness)
      • Shows Linken's Sphere on everyone
      • Shows True Sight on allies and wards
    • Customizable enemy illusion coloring
    • Shows trajectories of enemy projectiles like Mirana's arrow and non-projectile abilities like Meat Hook
    • Visible by Enemy RIP on 21.02.2023, you shall not be forgotten
  • Convars:

    • Using ConVar spoofing to counter serverside detection mechanisms
    • customizable dota_camera_distance with proper r_farz and fog_enable(no clipping or blue fog)
    • dota_use_particle_fow RIP too
  • Utility:

    • Perfect Blink
    • BadCastPrevention™(prevents bad BHs and RPs and chronospheres)
  • Changer:

    • Weather changing(Ash, Spring etc)
    • River painting
    • Unlocks emoticons
    • Dota Plus Unlocker
    • TreeChanger™
    • Allows playing with VPK mods
  • Work in progress:

    • Roshan timer

Building

You need to install the protobuf library for it to work. Install vcpkg. Navigate to the folder with vcpkg.exe. Open the console in the folder and enter the following command:

.\vcpkg.exe install protobuf:x64-windows-static

This will install the heavier static version of the library.

Once the process completes, go to installed/x64-windows-static. Copy libprotobuf.lib and libprotobuf-lite.lib files from /lib to Dota2Cheat/lib. You can also copy the libs with a d suffix from debug/lib if you want to compile it in Debug

You also need to install the June 2010 DirectX SDK

Open the project in Visual Studio and build Dota2Cheat as Release x64

Injecting

This cheat can be safely reinjected at any point of the game

Build & run D2CUpdater to move/update all relevant resources to their destination in C:\Users%user%\Documents\Dota2Cheat, then use any injector to do the job.

Use at own risk (also consider not using non-legit features that you can get reported/flagged for)

Troubleshooting

If you encounter an error and want to coherently report it:

Debugging

This method is for errors that are easily reproducible. You're meant to be playing either in the demo mode or a lobby(not on a VAC-protected server!) Build both the cheat and loader in Debug. Launch dota 2, then In Visual Studio Ctrl + Alt + P and select dota2.exe. Now that you're debugging the process, inject the cheat and trigger the error. VS will show you where the exception occurs.

What to do when an error appears

Upon an exception, examine the file and lines it happened on. In the Call Stack tab you'll be able to trace the call to the function(in case the exception place doesn't provide enough information). Screenshot all of this and then you can make an Issue here with the data.

For Developers

Check out the repo's Wiki, I add useful pieces of information about dota-specific cheat things there

Also has a guide on how to update it

AND I also consider translating my YouGame tutorials to a human language for the sake of preservation

dota2cheat's People

Contributors

abevol avatar existedgit avatar f0rqu1n avatar t4bby avatar underflowerror avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dota2cheat's Issues

menu not showing

when i drag the dota 2 dll to loader it shows updated scripts and assets then automatically gone and the menu didnt appear.

Bars and AbilityESP not working

Bar and AbilityESP not working for me
Also all enemies are detected like illusions and they are red and illusions are red too
Here is a screenshot
Untitled

I tried to switch directx to vulkan and it's the same.
Tried to upgrade my Nvidia Drivers to latest version and tried to change Open GDI compatibility #5 (comment)
Also tried Verify integrity of game files and completely deleting Dota2 and then installing it again

I think I have all Visual C++ Redistributable
microsoft

Any ideas how to fix this ?

Offtop:
And what is the key for mana abuse?

Thanks

Orders are not working in casual game

Hey
I've noticed that when I'm trying to test the cheat in lobby, everything is fine
But in "new players mode" or "all pick" orders are not working at all
Could this be related to the injection, or is it something else?
Because blackbone manual map is crashing every time from extreme/xenos or your project injector
Thanks for your answer

lua api?

привет. извини, возможно вопрос глупый, а где api для луашек?

Crashing when using Mango, Stick and etc..

In my investigation whenever it crashed and reconnected the items are dropped.

It is probably crashing because of the trick where you drop the items and use Mango, Arcane, Stick and etc, to gain more mana/health.

lua draw api

Is it possible to draw on screen using lua? I would like to implement the missing functionality (smoke alert, jungle maphack, etc), but I didnt find methods for draw on screen.

As an option, this can be implemented with panorama or http/socket functions.

built successfully. but crash after inject.

so the release version was for 2 weeks ago and i had a problem that after every game i had to relaunch the game otherwise the game going to crash. so i thought to myself maybe if i build it myself maybe it will work fine so i successfully built it after few tries but
after running Dota2Loader the game will immediately crash.

Build started...
1>------ Build started: Project: Dota2Cheat, Configuration: Release x64 ------
1>Generating code
1>3 of 136983 functions (<0.1%) were compiled, the rest were copied from previous compilation.
1> 0 functions were new in current compilation
1> 78 functions had inline decision re-evaluated but remain unchanged
1>Finished generating code
1>Dota2Cheat.vcxproj -> C:\Users\Z\Dota2Cheat\Build\Release\Dota2Cheat.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Elapsed 00:16.355 ==========

(i built Dota2Loader too).

проблема с libprotobuf.lib

установил через .\vcpkg.exe install protobuf:x64-windows-static-md сам protobuff и перетащил либы в Dota2Cheat/lib. При компиляции в визуалке выдает кучу ошибок LNK2001
image
что ни пробовал, решения проблемы так и не нашел

I have some problems with injecting

Yo. I builded this project and tried injecting dll with a shtreeba injector and nothing happened. I cant open interface with home or any buttons. Can I contact you anywhere?

Crash on inject

I upgraded my OS to win 11 2h22 perfectly build the cheat with the help of one of the closed issue here however upon trying to inject my game closed after running the loader and this is the error below.

image

Feature conflicts

Medusa auto dodges items herself as snakes coming back
Illusions coloring's working not properly after updates

Crash while facing Tinker

Game crash after injection when clicking to Tinker or when he's casting spells. Using lastest debug loader and dll : d

linux?

hey. as it's said in readme, u took a lot from mcdota, and it's optimized for linux. can I build .so from this project and inject it into linux dota process?

Feature conflicts

  • Release 22.6 make client crashes more frequently before loading matches;
  • Perfect blinks make AM blink himself instead of mouse pos

discussion

Hello
I really appreciate what you did, all the functions are working properly.
But the problem I have is related to the visibility section, the page it creates is completely black and does not show the background, which is Dota2.
At first, I thought that it was related to VSync settings, which did not solve the problem by changing it.

Capture

Inside the source code is also an option
GLFW_TRANSPARENT_FRAMEBUFFER was active.
Is the problem related to the launch option of the game, which should be opened with OpenGL?

The cheat crashes after update

Dota 2 updated recently 2-3 times so the cheat is instantly crashing ive tried so many things to disable some features that might crash it and tried to rebuild it nothing works you should look into it and update everything and repost when you can ive had 2 people try it aswell they have the same issue. Xenos doesn't seem to be working at all with it tried other injectors nothing the game works fine for like 5 minutes then when stuff happens like alot of abilities fly around it freezes and closes. Ive disabled everything off the only thing i have is True sight and ( hit the real clone)

Can't compile Dota2Cheat

Try to build it and get errors:
Code C2039 - "format": is not a member of "std"
In Dota2Cheat\SDK\Globals\Interfaces.h
Lines - 44 and 47

I don't understand what i should to do? Is it a code issue or my mistake?
There are some other warnings. Full info in screen
image

(мне показалось что есть тут русские разрабы, возможно будет проще на русском в таком случае)

Overlay displaying error

зображення
Я не знаю чому воно так. Рендер: dx11. Тип вікна: тестив всі. повноекранний: дота поверх оверлею. віконний режим (та без рамок): оверлей поверх вікна

Dota2Cheat.vcxproj build error

"E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat.sln" (default target) (1) ->
"E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj" (default target) (2) -> (ClCompile target) ->
  E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\CheatSDK\MatchStateHandling.cpp(10,4): error C2039: 'PlayerSlotToHandle': is not a member of 'C_DOTA_PlayerResource' [E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj]
  E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\CheatSDK\MatchStateHandling.cpp(14,14): error C3536: 'player': cannot be used before it is initialized [E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj]
  E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\CheatSDK\MatchStateHandling.cpp(19): error C3536: 'hero': cannot be used before it is initialized [E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj]
  E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\CheatSDK\MatchStateHandling.cpp(22,14): error C2665: 'std::_Tree<std::_Tset_traits<_Kty,_Pr_Alloc,false>>::insert': no overloaded function could convert all the argument types [E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj]
  E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\CheatSDK\MatchStateHandling.cpp(38,99): error C2039: 'GetLocalPlayerSlot': is not a member of 'CEngineClient' [E:\VisualStudio\d2c\Dota2Cheat-main\Dota2Cheat\Dota2Cheat.vcxproj]

Issue with inejcting

Attaching to dota2.exe...
Attached! Injecting...
Mapping Dota2Cheat.dll into dota2.exe...
Mapping failed with error 0xc0000138.

Lua Script

Are there any Lua script available to learn the api?

Possible to make dota plus item buyable?

For example when i try to buy any sound wheel:

WARNING: Aborting ClaimEventAction for EventActionID: 43032, number of grants (0) exceeds maximum (0), user does not own event: EVENT_ID_PLUS_SUBSCRIPTION.

mapping failed while using windows 11, I was using windows 10 and it works

Updating assets...
Updated assets
Updating scripts
Updated scripts
Successfully updated resources inC:\Users\myDoc\Documents\Dota2Cheat
Attaching to dota2.exe...
Attached! Injecting...
Mapping Dota2Cheat.dll into dota2.exe...
Mapping failed with error 0xc0000138. {Ordinal Not Found}
The ordinal %ld could not be located in the dynamic link library %hs.

Press any key to continue . . .

7.34 Illusion ESP issue + hero icons

I have updated my signatures.json with the latest D2CUpdater but IllusionESP still triggers on any hero on the map.

After some commit, particle maphack and tptracker suddenly stopped displaying hero icons on the minimap. I think it might be because LoadTextureNamed is not called at least once for every hero (I have no C++ programming experience, so I might be wrong) so I just pasted the code below at line 98-102 in TPTracker.cpp and it shows up again. So maybe this is also needed for ParticleMaphack.cpp in the GetHeroIcon function?

if (!icon)
{
	auto iconPath = d2c.cheatFolderPath + "\\assets\\heroicons\\" + ent->GetUnitName() + "_png.png";
	texManager.LoadTextureNamed(iconPath.c_str(), &icon, iconName);
}

Any video tutorial?

WOuld really love it if someone would make a video tutorial for us non-coding peeps, im really bad at such things and would prefer if someone just drops a video (private) obviously not uploaded on public places, but maybe an unlisted youtube video, im asking too much iknow much sitll would love it ;-; <3 thanks

I can't compile loader

In visual studio it says no files in folder but i'm 0 in programming so i dont know how to compile( can you help? Or can i use different injector?

CLIENT CRASH

Client crash after clicking to tinker, zeus and rubick

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.