ksusonic / dota-camera-distance

[7.34] App that automatically changes Dota 2 camera distance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DCD

Replace your Dota 2 icon by this app to completely forget about manually changing camera distance.

About

DCD is a small app that automatically changes camera distance (camera-zoom) in Dota 2. Using hex-editors (like HxD) to increase camera distance manually can be frustrating as the camera distance resets every time the game receives an update. So, I created this app to provide an automated solution. You should run it every time you want to play Dota.

Quickstart

DCD is available for Windows and supports latest Dota version - 7.34

Windows

Download and run latest version

Linux

Not supported yet, but almost done.

MacOS

Not supported yet, PRs are welcome!

Python (Windows)

  • Install Python 3.8+ and requirements:

    pip install -r requirements.txt
  • Run main.py:

    python main.py

Screenshots

Default distance: 1200 Modified distance: 1600
1200 1600

How does it work

The app automatically does the steps shown in this short video:

  1. Locates your Dota 2 folder and client.dll file.
  2. Finds the specific code in the file and changes camera distance to desired value.
  3. Launches Dota 2 and closes itself.

Features

  • The settings are saved at the location of the script in config.ini file. You can change distance value and other stuff using this file.
  • I will be updating the app and the codes, if there are any changes (usually when big updates happen).

Is it bannable? Is it a cheat?

First of all, the app does not interfere in the Dota 2 process. It simply automates the work you manually do. The game starts as if you launched it from a shortcut. So it all comes down to the question of whether the manual editing of client.dll file is bannable.

Players have been editing the client.dll file for years to change camera distance and so far there have been no bans. One Russian popular streamer, NS, demonstrated this method in a 2017 video that got over a million views, and Valve never really bothered to fix it. Moreover, in this video, he explains that the discussion of this method began a long time ago, in 2015, on the Dota 2 developers forum and, again, Valve does not care.

Secondly, I would not consider changing distance to be cheating. I do not know why the Dota 2 developers have not added this feature to the game settings yet. I do not think it is fair that players with ultra-wide screens get a huge advantage over regular players. Another example of ultra-wide screens advantage - link.

image

What if I do not want to use it? How do I change distance manually?

You just need to download HxD and perform the steps from the video I mentioned earlier. I will be updating the codes for you. Remember that you will have to do this steps manually every time Dota receives an update, even a small one.

Current codes for Windows:

  • For manual search in HxD: 00 00 96 44 00 00 C8 44
  • The code used in app for more precision: 00 00 AE 42 00 00 96 44 00 00 C8 44 00 40 9C 45

What systems are currently supported? When will you add support for MacOS and Linux?

Only Windows is supported. I do not have a Mac, so if anyone wants to help me make the app cross-platform, PRs are welcome. I cannot develop the application without a macOS computer because the codes and the client.dll file are different from Windows. I am currently slowly researching how to get it to work on Linux.

How to build executable?

  1. Install Python 3.8+ and requirements.txt:

    pip install -r requirements.txt
  2. Build an executable for your system:

    pyinstaller --noconfirm --onefile --console --clean --icon game-icon.ico --name dota-camera-distance main.py

The executable will be usable on systems without Python installed.

About

[7.34] App that automatically changes Dota 2 camera distance

License:MIT License


Languages

Language:Python 100.0%