From 75b677581a9f0e8c003058fc6383b47c11516e8b Mon Sep 17 00:00:00 2001 From: SylveonBottle Date: Tue, 4 Jul 2017 12:37:48 -0500 Subject: [PATCH 1/4] Removed redundancies & user interaction. The current installation script requires 3 user interactions: 1. Password for sudo 2. base-devel "select packages" 3. gcc in conflict with gcc-mutilibs. Fix for 1 could be to use yaourt instead. Fix for 2 would be to manually install the packages inside the group - but which ones are quired for cathook compilation? Fix for 3 is to use --noconfirm. On second thought, would base-devel even be required? It's basically the first thing ever installed on arch machines. And the conflic with gcc and gcc-multilibs is because base-devel installs gcc. Removing base-devel would fix 2. After testing the script, using --noconfirm to fix 3 auto-no's. But, using "yes | " before the script auto-yes's. tl;dr Removed base-devel from installation, since it's more than likely already installed. Auto-confirm for gcc-multilib in case in conflict with gcc. TODO: Install base-devel anyway, maybe we can use the same method for gcc-mutlilib auto-confirm to select all in base-devel? Will require more testing. "echo 1-25 ^10 | sudo pacman -S base-devel gdb gdb-common glew1.10 lib32-glew1.10 --noconfirm" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05b04ea2..bcf34ad9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ sudo apt update && sudo apt install build-essential software-properties-common - Arch dependencies installation:: ```bash -sudo pacman -Syu && sudo pacman -S base-devel gdb gdb-common glew1.10 lib32-glew1.10 && sudo pacman -U https://archive.archlinux.org/packages/g/gcc-multilib/gcc-multilib-6.3.1-2-x86_64.pkg.tar.xz https://archive.archlinux.org/packages/g/gcc-libs-multilib/gcc-libs-multilib-6.3.1-2-x86_64.pkg.tar.xz https://archive.archlinux.org/packages/l/lib32-gcc-libs/lib32-gcc-libs-6.3.1-2-x86_64.pkg.tar.xz +sudo pacman -Syu && sudo pacman -S gdb gdb-common glew1.10 lib32-glew1.10 --noconfirm && yes | sudo pacman -U https://archive.archlinux.org/packages/g/gcc-multilib/gcc-multilib-6.3.1-2-x86_64.pkg.tar.xz https://archive.archlinux.org/packages/g/gcc-libs-multilib/gcc-libs-multilib-6.3.1-2-x86_64.pkg.tar.xz https://archive.archlinux.org/packages/l/lib32-gcc-libs/lib32-gcc-libs-6.3.1-2-x86_64.pkg.tar.xz ``` From e169fa02b08241fd1c58569f81736f183855fc5b Mon Sep 17 00:00:00 2001 From: SylveonBottle Date: Tue, 4 Jul 2017 13:14:16 -0500 Subject: [PATCH 2/4] bash: update-menu: No such file or directory ```Building cathook make[1]: Leaving directory '/home/depre/cathook' bash: update-menu: No such file or directory``` update-menu was renamed to update-data recently. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcf34ad9..6448379e 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ sudo pacman -Syu && sudo pacman -S gdb gdb-common glew1.10 lib32-glew1.10 --noco Cathook installation script: ```bash -git clone --recursive https://github.com/nullifiedcat/cathook && cd cathook && make -j4 && bash update-menu +git clone --recursive https://github.com/nullifiedcat/cathook && cd cathook && make -j4 && bash update-data ``` **Errors while installing?** From 328d2d6c15160b27267479fce417c01cea811d5b Mon Sep 17 00:00:00 2001 From: SylveonBottle Date: Tue, 4 Jul 2017 13:39:56 -0500 Subject: [PATCH 3/4] Spellcheck & better explanations. Added multiple periods, spellchecks, removed redundancies, made some topics more clear, spellcheck, etc etc. --- README.md | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 6448379e..1804075c 100644 --- a/README.md +++ b/README.md @@ -25,37 +25,34 @@ git clone --recursive https://github.com/nullifiedcat/cathook && cd cathook && m **Errors while installing?** -`/usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory` - You don't have g++6 or g++6 multilib installed correctly +`/usr/include/c++/5/string:38:28: fatal error: bits/c++config.h: No such file or directory` +You don't have gcc-multilib-6 installed correctly. -`src/: fatal error: mathlib/vector.h: No such file or directory` - You didn't download Source SDK. **DO NOT DOWNLOAD CATHOOK USING "DOWNLOAD .ZIP" FROM GITHUB. USE git clone --recursive**! +`src/: fatal error: mathlib/vector.h: No such file or directory` +You didn't download Source SDK. **DO NOT DOWNLOAD CATHOOK USING "DOWNLOAD .ZIP" FROM GITHUB. USE git clone --recursive!** -If you are using other distro, make sure to have g++-6, gdb, libc6 and build essentials installed. +If you are using another distro, make sure to have g++-6, gdb, libc6 and build essentials installed. ## Updating cathook Run the `update` script in cathook folder. -The shader folder needs to be placed into the Team fortress 2 folder otherwise cathook will crash. To install them just copy the tf-settings folder into your Team fortress 2 folder and rename it to "cathook" -The `update-data` script does this automaticly and you will want to update those files if you wish to have an updated menu. +Cathook requires the shader folder provided in order to launch properly. To install this, run the `update-data` script. This will create a sym-link for the required folders. +If you wish to do this manually, copy the tf-settings folder inside Cathook into your Team Fortress 2 folder and rename it to "cathook". +You will want to update these files if you wish to have an updated menu. ## Injection -`sudo ./attach` to attach to tf2 process (can take argument number 0-N - # of tf2 instance to attach to (for bots)) +`sudo ./attach` to attach cathook into TF2. Optionally, you can provide an argument number (0-n - #) to provide the TF2 process ID (for bots). -`sudo ./attach-backtrace` to attach and print backtrace if tf2 crashes. Some users reported that this method makes you get less FPS ingame. +`sudo ./attach-backtrace` to attach and print backtrace incase TF2 crashes. Some users report that this causes FPS drop in-game. This is recommended to grab a log of what went wrong if Cathook is crashing on you. ## Followbots +`cathook-ipc-server` allows you to run and control Followbots to do your evil bidding in-game. The installation for Followbots is quite complex, and will not be covered on this page. +Obviously, you must have several user accounts ready to run TF2. +A guide for Followbots can be found here: [How to setup and use followbots.](https://www.youtube.com/watch?v=kns5-nw7xUg&gl) +You may also ask someone in our discord server to help you out. -Followbot installation is quite complex and I won't cover it fully here. -You have to have several user accounts ready to run tf2 - use google for that. -You can ask someone in my discord server for help with installation. -To control followbots, you need to download and install `cathook-ipc-server`. - -### Followbot server installation script +The installation script is as followed: +```bash +git clone --recursive https://github.com/nullifiedcat/cathook-ipc-server && cd cathook-ipc-server && make -j4 ``` -git clone --recursive https://github.com/nullifiedcat/cathook-ipc-server && \ -cd cathook-ipc-server && \ -make -j4 -``` -### Updating script is the same as updating cathook - -### Running followbot server -`./bin/cathook-ipc-server` or `./bin/cathook-ipc-server &>/dev/null &` to run it in background +To run the Followbot server, run `./bin/cathook-ipc-server`. You can also use `./bin/cathook-ipc-server &>/dev/null &` to run it in background. From 9e081aeeb49a3c3cf527148bc0011ddc8df95949 Mon Sep 17 00:00:00 2001 From: SylveonBottle Date: Tue, 4 Jul 2017 13:48:13 -0500 Subject: [PATCH 4/4] Update README.md I thought github did this automatically, but it doesn't. Hopefully adding two spaces to the end of lines will force github to make a newline like reddit. Also fixed youtube link. To be honest, I'm not entirely sure if I like this change. It adds redundant spaces, and kinda looks weird. Up to you to merge this or not - I recommend thinking about it and comparing the two before you decide. --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1804075c..758e0f62 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,8 @@ If you are using another distro, make sure to have g++-6, gdb, libc6 and build e ## Updating cathook Run the `update` script in cathook folder. -Cathook requires the shader folder provided in order to launch properly. To install this, run the `update-data` script. This will create a sym-link for the required folders. -If you wish to do this manually, copy the tf-settings folder inside Cathook into your Team Fortress 2 folder and rename it to "cathook". +Cathook requires the shader folder provided in order to launch properly. To install this, run the `update-data` script. This will create a sym-link for the required folders. +If you wish to do this manually, copy the tf-settings folder inside Cathook into your Team Fortress 2 folder and rename it to "cathook". You will want to update these files if you wish to have an updated menu. ## Injection @@ -46,9 +46,8 @@ You will want to update these files if you wish to have an updated menu. `sudo ./attach-backtrace` to attach and print backtrace incase TF2 crashes. Some users report that this causes FPS drop in-game. This is recommended to grab a log of what went wrong if Cathook is crashing on you. ## Followbots -`cathook-ipc-server` allows you to run and control Followbots to do your evil bidding in-game. The installation for Followbots is quite complex, and will not be covered on this page. -Obviously, you must have several user accounts ready to run TF2. -A guide for Followbots can be found here: [How to setup and use followbots.](https://www.youtube.com/watch?v=kns5-nw7xUg&gl) +`cathook-ipc-server` allows you to run and control Followbots to do your evil bidding in-game. The installation for Followbots is quite complex, and will not be covered on this page. Obviously, you must have several user accounts ready to run TF2. +A guide for Followbots can be found here: [How to setup and use followbots.](https://www.youtube.com/watch?v=kns5-nw7xUg) You may also ask someone in our discord server to help you out. The installation script is as followed: