<commit_before># linux-dota-camchanger
Changes camera distance in Dota 2.

## Download
```bash
git clone https://github.com/AshFTW/linux-dota-camchanger.git
cd ./linux-dota-camchanger
```

## Installing
Required Python 3.x
```bash
sudo apt-get install python3
```

Move `camchanger.py` to `libclient.so` location:
```bash
cp ./camchanger.py ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/camchanger.py
```

Make bash script at your home folder:
```bash
echo "cd ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/ && python3 camchanger.py" >> camchanger.sh
chmod +x camchanger.sh
```

Or make symbolic link of `linuxsteamrt64` folder to your home folder:
```bash
ln -s ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/ ~/linuxsteamrt64
```

## Launching
If you made bash script, you can easily just launch terminal after each dota 2 update, type `./cam`, press <kbd>TAB</kbd> (you will see `./camchanger `) and hit <kbd>ENTER</kbd>.
<br>If you made symbolic link:
```bash
cd linuxsteamrt64
python3 camchanger.py
```

## Output example
I am prefer `1666` distance with `16:9` monitor.
```
Would you like to backup "libclient.so"? [Y/n]: 
Enter pitch max [current="1666", default="1134"]: 1234<commit_msg>Arch permissions issue<commit_after># linux-dota-camchanger
Changes camera distance in Dota 2.

## Download
### Do not download with root privilegies!
```bash
git clone https://github.com/AshFTW/linux-dota-camchanger.git
cd ./linux-dota-camchanger
```

## Installing
Required Python 3.x
```bash
sudo apt-get install python3
```

Move `camchanger.py` to `libclient.so` location:
```bash
cp ./camchanger.py ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/camchanger.py
```

### NOTE: archlinux users needs Execute permission to libclient.so after each patching:

```bash
chmod +x libclient.so
```
If you want to fix this, goto arch_fix_ajfkls;

Make bash script at your home folder:
```bash
echo "cd ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/ && python3 camchanger.py" >> dotacamchanger.sh
chmod +x dotacamchanger.sh
```
# arch_fix_ajfkls:
Make bash script at your home folder:
```bash
echo "cd ~/.steam/steam/steamapps/common/dota\ 2\ beta/game/dota/bin/linuxsteamrt64/ && python3 camchanger.py && chmod +x libclient.so" >> dotacamchanger.sh
chmod +x dotacamchanger.sh
```

## Launching
If you made bash script, you can easily just launch terminal after each dota 2 update, type `./dota`, press <kbd>TAB</kbd> (you will see `./dotacamchanger `) and hit <kbd>ENTER</kbd>.


## Output example
I am prefer `1666` distance with `16:9` monitor.
```
Would you like to backup "libclient.so"? [Y/n]: 
Enter pitch max [current="1666", default="1134"]: 1234
{'fraction_non_alphanumeric': 0.14459992823824902, 'fraction_numerical': 0.026551847865087908, 'mean_word_length': 4.553784860557769, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 18, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381365', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1004, 'n_words': 291}