BeepIsla / CSGO-Overwatch-Bot

Automatically solve CSGO Overwatch cases
GNU Affero General Public License v3.0
186 stars 45 forks source link

Unable to use STEAMWORKS #219

Closed 45O closed 2 years ago

45O commented 2 years ago

image This is when I try to run "npm i ./extension/steam\", Because of this error when I try to run STEAMWORKS image I apologise if it's an easy fix

BeepIsla commented 2 years ago

You are typing

npm i ./extension/steam\"

Try typing

npm i ./extension/steam

45O commented 2 years ago

image This is the out come, then I tried to run steamworks and

image

BeepIsla commented 2 years ago

Open up the package.json file in the CSGO-Overwatch-Bot-master directory with a text editor and send the contents of it here

45O commented 2 years ago

{ "name": "steam", "description": "Steamworks native addon for the CSGO Overwatch bot", "version": "1.0.0", "main": "index.js", "scripts": { "install": "node-gyp configure rebuild", "postinstall": "node postinstall.js" }, "keywords": [], "author": "BeepIsla", "license": "MIT", "gypfile": true, "dependencies": {}, "repository": {} }

BeepIsla commented 2 years ago

Not this one, there is another one in the parent folder

45O commented 2 years ago

{ "name": "csgo-overwatch-bot", "version": "2.6.5", "description": "Automatically solves Overwatch cases. Its not good but its trying.", "repository": { "type": "git", "url": "git+https://github.com/BeepIsla/CSGO-Overwatch-Bot.git" }, "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "BeepIsla", "license": "AGPL-3.0", "dependencies": { "almost-equal": "^1.1.0", "bytebuffer": "^5.0.1", "cheerio": "^1.0.0-rc.3", "cli-table3": "^0.6.0", "colors": "^1.4.0", "demofile": "^1.8.0", "inquirer": "^7.3.3", "node-fetch": "^2.6.1", "protobufjs": "^6.10.1", "serialize-error": "^7.0.1", "steam-totp": "^2.1.1", "steam-user": "^4.18.0", "steamid": "^1.1.3", "unbzip2-stream": "^1.4.3", "unzipper": "^0.10.11", "vdf-parser": "^1.1.0" }, "devDependencies": { "babel-eslint": "^10.1.0", "eslint": "^7.13.0" }, "optionalDependencies": { "steam": "file:extension/steam" }, "bugs": { "url": "https://github.com/BeepIsla/CSGO-Overwatch-Bot/issues" }, "homepage": "https://github.com/BeepIsla/CSGO-Overwatch-Bot#readme", "directories": { "test": "tests" } }

BeepIsla commented 2 years ago

Weird. It looks like it installs successfully when executing npm i ./extension/steam but it doesn't add it to the modules list?

Download this file https://pastebin.com/raw/5VMM15hW and save it as Steamworks.js inside the helpers folder, you should already see a Steamworks.js file, just replace it with the new one. Once done try running again using node index.js STEAMWORKS, it should now log more details that might help

45O commented 2 years ago

image Here you go

BeepIsla commented 2 years ago

I don't know why this is happening.

45O commented 2 years ago

Think it's worth a try at reinstalling it all?

BeepIsla commented 2 years ago

You can try

45O commented 2 years ago

Re installed all of it, and was greeted by the same error, saved that txt as the steamworks.js again and exact same issue

BeepIsla commented 2 years ago

My last try would be maybe: Open a command prompt inside the extension/steam folder and run npm run install, if there are no errors it should now work?

45O commented 2 years ago

image oof was worth a shot

BeepIsla commented 2 years ago

Well this now tells us why it fails. It can't build the module because the compiler is missing. Make sure you installed the necessary build tools when installing NodeJS

45O commented 2 years ago

I reinstalled and included the tools yesterday, I'll try again though

45O commented 2 years ago

Tried reinstalling the Tools and now it is having issues with Python image

BeepIsla commented 2 years ago

Do you have python installed? If not download and install it

45O commented 2 years ago

I do, I have 3.8.0 installed for months

BeepIsla commented 2 years ago

Try specifically installing Python2 and make sure to tick the checkbox to also add Python to PATH

45O commented 2 years ago

Installed 2.7, ran NPM CI image

45O commented 2 years ago

Installed python 2.7 at PATH, and it isn't finding python when I ran node-gyp configure rebuild

BeepIsla commented 2 years ago

It tries to build the module using a file that doesn't exist for some reason. I assume there might be left overs from a previous installation of the Visual Studio Build Tools causing issues. I don't know how you could fix this