You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+13-22Lines changed: 13 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,50 +1,41 @@
1
-
# CS:GO Server Control with a Nodejs-powered web-API (LINUX only)
2
-
3
-
## Request for your opinion
4
-
Please let me know, If I should work on the installation process:
5
-
[Poll on Installation](https://github.com/Taraman17/nodejs-csgo-api/discussions/31)
1
+
# CS2 Server Control with a Nodejs-powered web-API (LINUX only)
6
2
7
3
## Disclaimer
8
4
The use of this software is at your own risk.
9
5
It exposes control of your server and shell functions to the internet. Although I did everything to secure the API, any bugs may lead to security breaches on your server.
10
6
I strongly adivise to use secure connections to prevent possible man-in-the-middle attacks.
11
7
12
-
## NOTE:
13
-
Release 1.0 changed structure of the code to enable further development.
14
-
See below for changes.
15
-
16
-
### Breaking changes:
17
-
- Config logic has been separated from configClass - make sure to backup your config! You can copy the config part from the old file to the new "./config.js"
18
-
- steam account used for updating the server has been deleted from the config - it has to go in your update-Script.
19
-
- login code has been seperated from the api calls. New location is "http://{your-servers-address}:{your-port}/csgoapi/login" ISO "http://{your-servers-address}:{your-port}/csgoapi/v1.0/login"
8
+
## CS2 Beta Info
9
+
This is the intial beta release for CS2. It has the following changes to previous functionality
10
+
- Changed Log-reception to http logs, since UDP is not supported anymore in new server. Unnecessary library source-log-receiver removed.
11
+
- Maplist loading is still bugged in CS2 Server - therefore working with a static Maplist. Also this has to be loaded with the "relaodMaplist" endpoint.
12
+
- Still working with the old CS_GO map-pictures, since the new ones are not yet available in the workshop
13
+
- Went back to the original rcon-srcds library instead of my patched one, since the new server seems to behave more standard-like.
14
+
- API calls are unchanged.
20
15
21
16
## Prerequisites
22
17
- steam CLI
23
-
-CS:GO dedicated server
24
-
- NodeJS 13.X or higher
18
+
-CS2 dedicated server
19
+
- NodeJS 14.X or higher
25
20
26
21
## Install
27
22
Download the nodejs-csgo-api-vX.X.zip and unpack.
28
23
29
24
**OR**
30
25
download the script files to and install the dependencies for nodejs
The CS:GO Server must be configured to send logs to the local IP (not 127.0.0.1): on port 9871
31
+
The CS:GO Server must be configured to send logs to the local IP (not 127.0.0.1): on port 8092 (or the one you specified in config.js)
41
32
```
42
33
log on
43
34
sv_logecho 1
44
35
mp_logfile 1
45
36
mp_logdetail 3
46
37
mp_logmessages 1
47
-
logaddress_add xxx.xxx.xxx.xxx:9871
38
+
logaddress_add_http "http://xxx.xxx.xxx.xxx:8092"
48
39
```
49
40
- Edit the settings in config.js. Most of them are explained in the sourcecode.
50
41
- The API uses steam authentication which returns a Steam ID as URL (https://steamcommunity.com/openid/id/{steamid}). The last part is the SteamID64, which can be calculated from the other SteamID formats - various online tools are available. In the configuration, an array needs to be filled with the comma separated IDs of your intended admins as strings (e.g. ['{steamid-1}', '{steamid-2}'].
0 commit comments