steamutils 1.2.53 → 1.2.55

Sign up to get free protection for your applications and to get access to all the features.
package/SteamClient.js CHANGED
@@ -74,7 +74,7 @@ export const LOCS = {
74
74
 
75
75
 
76
76
  const appid = 730
77
- let CSGO_VER = null
77
+ let CSGO_VER = 13952
78
78
 
79
79
  SteamUtils.GetCurrentVersion(appid).then(function (ver) {
80
80
  CSGO_VER = ver
@@ -366,8 +366,6 @@ function SteamClient({
366
366
  rank = 'Silver Elite',
367
367
  timeout = 10000,
368
368
  } = {}) {
369
- return []
370
-
371
369
  return new Promise(resolve => {
372
370
  steamClient.sendToGC(appid, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Search, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Search, {
373
371
  ver: CSGO_VER,
@@ -1377,7 +1375,6 @@ function SteamClient({
1377
1375
 
1378
1376
 
1379
1377
  function partyRegister() {
1380
- return;
1381
1378
  if (prime === null) {
1382
1379
  _partyRegister(true)
1383
1380
  _partyRegister(false)
@@ -1390,7 +1387,8 @@ function SteamClient({
1390
1387
  log("partyRegister", prime);
1391
1388
  steamClient.sendToGC(730, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Register, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Register, {
1392
1389
  // id : 0,
1393
- ver: CSGO_VER, apr: prime ? 1 : 0,//prime
1390
+ ver: CSGO_VER,
1391
+ apr: prime ? 1 : 0,//prime
1394
1392
  ark: prime ? 180 : 0, grps: [], launcher: 0, game_type: 8
1395
1393
  }))
1396
1394
  }
@@ -1734,3 +1732,7 @@ function SteamClient({
1734
1732
  }
1735
1733
 
1736
1734
  export default SteamClient
1735
+
1736
+ export function increaseCSGO_VER() {
1737
+ return ++CSGO_VER
1738
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "axios": "^1.5.1",
@@ -11,7 +11,7 @@
11
11
  "lodash": "^4.17.21",
12
12
  "moment": "^2.29.4",
13
13
  "node-bignumber": "^1.2.2",
14
- "steam-session": "^1.3.4",
14
+ "steam-session": "^1.4.0",
15
15
  "steam-user": "^5.0.1",
16
16
  "steamcommunity": "^3.46.1",
17
17
  "steamid": "^2.0.0",
@@ -1,228 +1,228 @@
1
- import "steammessages_base.proto";
2
-
3
- option optimize_for = SPEED;
4
- option cc_generic_services = false;
5
-
6
- enum EMMSLobbyStatus {
7
- k_EMMSLobbyStatusInvalid = 0;
8
- k_EMMSLobbyStatusExists = 1;
9
- k_EMMSLobbyStatusDoesNotExist = 2;
10
- k_EMMSLobbyStatusNotAMember = 3;
11
- }
12
-
13
- message CMsgClientMMSSetRatelimitPolicyOnClient {
14
- optional uint32 app_id = 1;
15
- optional bool enable_rate_limits = 2;
16
- optional int32 seconds_per_message = 3;
17
- optional int32 milliseconds_per_data_update = 4;
18
- }
19
-
20
- message CMsgClientMMSCreateLobby {
21
- optional uint32 app_id = 1;
22
- optional int32 max_members = 2;
23
- optional int32 lobby_type = 3;
24
- optional int32 lobby_flags = 4;
25
- optional uint32 cell_id = 5;
26
- optional uint32 deprecated_public_ip = 6;
27
- optional bytes metadata = 7;
28
- optional string persona_name_owner = 8;
29
- optional .CMsgIPAddress public_ip = 9;
30
- }
31
-
32
- message CMsgClientMMSCreateLobbyResponse {
33
- optional uint32 app_id = 1;
34
- optional fixed64 steam_id_lobby = 2;
35
- optional int32 eresult = 3 [default = 2];
36
- }
37
-
38
- message CMsgClientMMSJoinLobby {
39
- optional uint32 app_id = 1;
40
- optional fixed64 steam_id_lobby = 2;
41
- optional string persona_name = 3;
42
- }
43
-
44
- message CMsgClientMMSJoinLobbyResponse {
45
- message Member {
46
- optional fixed64 steam_id = 1;
47
- optional string persona_name = 2;
48
- optional bytes metadata = 3;
49
- }
50
-
51
- optional uint32 app_id = 1;
52
- optional fixed64 steam_id_lobby = 2;
53
- optional int32 chat_room_enter_response = 3;
54
- optional int32 max_members = 4;
55
- optional int32 lobby_type = 5;
56
- optional int32 lobby_flags = 6;
57
- optional fixed64 steam_id_owner = 7;
58
- optional bytes metadata = 8;
59
- repeated .CMsgClientMMSJoinLobbyResponse.Member members = 9;
60
- }
61
-
62
- message CMsgClientMMSLeaveLobby {
63
- optional uint32 app_id = 1;
64
- optional fixed64 steam_id_lobby = 2;
65
- }
66
-
67
- message CMsgClientMMSLeaveLobbyResponse {
68
- optional uint32 app_id = 1;
69
- optional fixed64 steam_id_lobby = 2;
70
- optional int32 eresult = 3 [default = 2];
71
- }
72
-
73
- message CMsgClientMMSGetLobbyList {
74
- message Filter {
75
- optional string key = 1;
76
- optional string value = 2;
77
- optional int32 comparision = 3;
78
- optional int32 filter_type = 4;
79
- }
80
-
81
- optional uint32 app_id = 1;
82
- optional int32 num_lobbies_requested = 3;
83
- optional uint32 cell_id = 4;
84
- optional uint32 deprecated_public_ip = 5;
85
- repeated .CMsgClientMMSGetLobbyList.Filter filters = 6;
86
- optional .CMsgIPAddress public_ip = 7;
87
- }
88
-
89
- message CMsgClientMMSGetLobbyListResponse {
90
- message Lobby {
91
- optional fixed64 steam_id = 1;
92
- optional int32 max_members = 2;
93
- optional int32 lobby_type = 3;
94
- optional int32 lobby_flags = 4;
95
- optional bytes metadata = 5;
96
- optional int32 num_members = 6;
97
- optional float distance = 7;
98
- optional int64 weight = 8;
99
- }
100
-
101
- optional uint32 app_id = 1;
102
- optional int32 eresult = 3 [default = 2];
103
- repeated .CMsgClientMMSGetLobbyListResponse.Lobby lobbies = 4;
104
- }
105
-
106
- message CMsgClientMMSSetLobbyData {
107
- optional uint32 app_id = 1;
108
- optional fixed64 steam_id_lobby = 2;
109
- optional fixed64 steam_id_member = 3;
110
- optional int32 max_members = 4;
111
- optional int32 lobby_type = 5;
112
- optional int32 lobby_flags = 6;
113
- optional bytes metadata = 7;
114
- }
115
-
116
- message CMsgClientMMSSetLobbyDataResponse {
117
- optional uint32 app_id = 1;
118
- optional fixed64 steam_id_lobby = 2;
119
- optional int32 eresult = 3 [default = 2];
120
- }
121
-
122
- message CMsgClientMMSGetLobbyData {
123
- optional uint32 app_id = 1;
124
- optional fixed64 steam_id_lobby = 2;
125
- }
126
-
127
- message CMsgClientMMSLobbyData {
128
- message Member {
129
- optional fixed64 steam_id = 1;
130
- optional string persona_name = 2;
131
- optional bytes metadata = 3;
132
- }
133
-
134
- optional uint32 app_id = 1;
135
- optional fixed64 steam_id_lobby = 2;
136
- optional int32 num_members = 3;
137
- optional int32 max_members = 4;
138
- optional int32 lobby_type = 5;
139
- optional int32 lobby_flags = 6;
140
- optional fixed64 steam_id_owner = 7;
141
- optional bytes metadata = 8;
142
- repeated .CMsgClientMMSLobbyData.Member members = 9;
143
- optional uint32 lobby_cellid = 10;
144
- optional bool owner_should_accept_changes = 11;
145
- }
146
-
147
- message CMsgClientMMSSendLobbyChatMsg {
148
- optional uint32 app_id = 1;
149
- optional fixed64 steam_id_lobby = 2;
150
- optional fixed64 steam_id_target = 3;
151
- optional bytes lobby_message = 4;
152
- }
153
-
154
- message CMsgClientMMSLobbyChatMsg {
155
- optional uint32 app_id = 1;
156
- optional fixed64 steam_id_lobby = 2;
157
- optional fixed64 steam_id_sender = 3;
158
- optional bytes lobby_message = 4;
159
- }
160
-
161
- message CMsgClientMMSSetLobbyOwner {
162
- optional uint32 app_id = 1;
163
- optional fixed64 steam_id_lobby = 2;
164
- optional fixed64 steam_id_new_owner = 3;
165
- }
166
-
167
- message CMsgClientMMSSetLobbyOwnerResponse {
168
- optional uint32 app_id = 1;
169
- optional fixed64 steam_id_lobby = 2;
170
- optional int32 eresult = 3 [default = 2];
171
- }
172
-
173
- message CMsgClientMMSSetLobbyLinked {
174
- optional uint32 app_id = 1;
175
- optional fixed64 steam_id_lobby = 2;
176
- optional fixed64 steam_id_lobby2 = 3;
177
- }
178
-
179
- message CMsgClientMMSSetLobbyGameServer {
180
- optional uint32 app_id = 1;
181
- optional fixed64 steam_id_lobby = 2;
182
- optional uint32 deprecated_game_server_ip = 3;
183
- optional uint32 game_server_port = 4;
184
- optional fixed64 game_server_steam_id = 5;
185
- optional .CMsgIPAddress game_server_ip = 6;
186
- }
187
-
188
- message CMsgClientMMSLobbyGameServerSet {
189
- optional uint32 app_id = 1;
190
- optional fixed64 steam_id_lobby = 2;
191
- optional uint32 deprecated_game_server_ip = 3;
192
- optional uint32 game_server_port = 4;
193
- optional fixed64 game_server_steam_id = 5;
194
- optional .CMsgIPAddress game_server_ip = 6;
195
- }
196
-
197
- message CMsgClientMMSUserJoinedLobby {
198
- optional uint32 app_id = 1;
199
- optional fixed64 steam_id_lobby = 2;
200
- optional fixed64 steam_id_user = 3;
201
- optional string persona_name = 4;
202
- }
203
-
204
- message CMsgClientMMSUserLeftLobby {
205
- optional uint32 app_id = 1;
206
- optional fixed64 steam_id_lobby = 2;
207
- optional fixed64 steam_id_user = 3;
208
- optional string persona_name = 4;
209
- }
210
-
211
- message CMsgClientMMSInviteToLobby {
212
- optional uint32 app_id = 1;
213
- optional fixed64 steam_id_lobby = 2;
214
- optional fixed64 steam_id_user_invited = 3;
215
- }
216
-
217
- message CMsgClientMMSGetLobbyStatus {
218
- optional uint32 app_id = 1;
219
- optional fixed64 steam_id_lobby = 2;
220
- optional bool claim_membership = 3;
221
- optional bool claim_ownership = 4;
222
- }
223
-
224
- message CMsgClientMMSGetLobbyStatusResponse {
225
- optional uint32 app_id = 1;
226
- optional fixed64 steam_id_lobby = 2;
227
- optional .EMMSLobbyStatus lobby_status = 3 [default = k_EMMSLobbyStatusInvalid];
228
- }
1
+ import "steammessages_base.proto";
2
+
3
+ option optimize_for = SPEED;
4
+ option cc_generic_services = false;
5
+
6
+ enum EMMSLobbyStatus {
7
+ k_EMMSLobbyStatusInvalid = 0;
8
+ k_EMMSLobbyStatusExists = 1;
9
+ k_EMMSLobbyStatusDoesNotExist = 2;
10
+ k_EMMSLobbyStatusNotAMember = 3;
11
+ }
12
+
13
+ message CMsgClientMMSSetRatelimitPolicyOnClient {
14
+ optional uint32 app_id = 1;
15
+ optional bool enable_rate_limits = 2;
16
+ optional int32 seconds_per_message = 3;
17
+ optional int32 milliseconds_per_data_update = 4;
18
+ }
19
+
20
+ message CMsgClientMMSCreateLobby {
21
+ optional uint32 app_id = 1;
22
+ optional int32 max_members = 2;
23
+ optional int32 lobby_type = 3;
24
+ optional int32 lobby_flags = 4;
25
+ optional uint32 cell_id = 5;
26
+ optional uint32 deprecated_public_ip = 6;
27
+ optional bytes metadata = 7;
28
+ optional string persona_name_owner = 8;
29
+ optional .CMsgIPAddress public_ip = 9;
30
+ }
31
+
32
+ message CMsgClientMMSCreateLobbyResponse {
33
+ optional uint32 app_id = 1;
34
+ optional fixed64 steam_id_lobby = 2;
35
+ optional int32 eresult = 3 [default = 2];
36
+ }
37
+
38
+ message CMsgClientMMSJoinLobby {
39
+ optional uint32 app_id = 1;
40
+ optional fixed64 steam_id_lobby = 2;
41
+ optional string persona_name = 3;
42
+ }
43
+
44
+ message CMsgClientMMSJoinLobbyResponse {
45
+ message Member {
46
+ optional fixed64 steam_id = 1;
47
+ optional string persona_name = 2;
48
+ optional bytes metadata = 3;
49
+ }
50
+
51
+ optional uint32 app_id = 1;
52
+ optional fixed64 steam_id_lobby = 2;
53
+ optional int32 chat_room_enter_response = 3;
54
+ optional int32 max_members = 4;
55
+ optional int32 lobby_type = 5;
56
+ optional int32 lobby_flags = 6;
57
+ optional fixed64 steam_id_owner = 7;
58
+ optional bytes metadata = 8;
59
+ repeated .CMsgClientMMSJoinLobbyResponse.Member members = 9;
60
+ }
61
+
62
+ message CMsgClientMMSLeaveLobby {
63
+ optional uint32 app_id = 1;
64
+ optional fixed64 steam_id_lobby = 2;
65
+ }
66
+
67
+ message CMsgClientMMSLeaveLobbyResponse {
68
+ optional uint32 app_id = 1;
69
+ optional fixed64 steam_id_lobby = 2;
70
+ optional int32 eresult = 3 [default = 2];
71
+ }
72
+
73
+ message CMsgClientMMSGetLobbyList {
74
+ message Filter {
75
+ optional string key = 1;
76
+ optional string value = 2;
77
+ optional int32 comparision = 3;
78
+ optional int32 filter_type = 4;
79
+ }
80
+
81
+ optional uint32 app_id = 1;
82
+ optional int32 num_lobbies_requested = 3;
83
+ optional uint32 cell_id = 4;
84
+ optional uint32 deprecated_public_ip = 5;
85
+ repeated .CMsgClientMMSGetLobbyList.Filter filters = 6;
86
+ optional .CMsgIPAddress public_ip = 7;
87
+ }
88
+
89
+ message CMsgClientMMSGetLobbyListResponse {
90
+ message Lobby {
91
+ optional fixed64 steam_id = 1;
92
+ optional int32 max_members = 2;
93
+ optional int32 lobby_type = 3;
94
+ optional int32 lobby_flags = 4;
95
+ optional bytes metadata = 5;
96
+ optional int32 num_members = 6;
97
+ optional float distance = 7;
98
+ optional int64 weight = 8;
99
+ }
100
+
101
+ optional uint32 app_id = 1;
102
+ optional int32 eresult = 3 [default = 2];
103
+ repeated .CMsgClientMMSGetLobbyListResponse.Lobby lobbies = 4;
104
+ }
105
+
106
+ message CMsgClientMMSSetLobbyData {
107
+ optional uint32 app_id = 1;
108
+ optional fixed64 steam_id_lobby = 2;
109
+ optional fixed64 steam_id_member = 3;
110
+ optional int32 max_members = 4;
111
+ optional int32 lobby_type = 5;
112
+ optional int32 lobby_flags = 6;
113
+ optional bytes metadata = 7;
114
+ }
115
+
116
+ message CMsgClientMMSSetLobbyDataResponse {
117
+ optional uint32 app_id = 1;
118
+ optional fixed64 steam_id_lobby = 2;
119
+ optional int32 eresult = 3 [default = 2];
120
+ }
121
+
122
+ message CMsgClientMMSGetLobbyData {
123
+ optional uint32 app_id = 1;
124
+ optional fixed64 steam_id_lobby = 2;
125
+ }
126
+
127
+ message CMsgClientMMSLobbyData {
128
+ message Member {
129
+ optional fixed64 steam_id = 1;
130
+ optional string persona_name = 2;
131
+ optional bytes metadata = 3;
132
+ }
133
+
134
+ optional uint32 app_id = 1;
135
+ optional fixed64 steam_id_lobby = 2;
136
+ optional int32 num_members = 3;
137
+ optional int32 max_members = 4;
138
+ optional int32 lobby_type = 5;
139
+ optional int32 lobby_flags = 6;
140
+ optional fixed64 steam_id_owner = 7;
141
+ optional bytes metadata = 8;
142
+ repeated .CMsgClientMMSLobbyData.Member members = 9;
143
+ optional uint32 lobby_cellid = 10;
144
+ optional bool owner_should_accept_changes = 11;
145
+ }
146
+
147
+ message CMsgClientMMSSendLobbyChatMsg {
148
+ optional uint32 app_id = 1;
149
+ optional fixed64 steam_id_lobby = 2;
150
+ optional fixed64 steam_id_target = 3;
151
+ optional bytes lobby_message = 4;
152
+ }
153
+
154
+ message CMsgClientMMSLobbyChatMsg {
155
+ optional uint32 app_id = 1;
156
+ optional fixed64 steam_id_lobby = 2;
157
+ optional fixed64 steam_id_sender = 3;
158
+ optional bytes lobby_message = 4;
159
+ }
160
+
161
+ message CMsgClientMMSSetLobbyOwner {
162
+ optional uint32 app_id = 1;
163
+ optional fixed64 steam_id_lobby = 2;
164
+ optional fixed64 steam_id_new_owner = 3;
165
+ }
166
+
167
+ message CMsgClientMMSSetLobbyOwnerResponse {
168
+ optional uint32 app_id = 1;
169
+ optional fixed64 steam_id_lobby = 2;
170
+ optional int32 eresult = 3 [default = 2];
171
+ }
172
+
173
+ message CMsgClientMMSSetLobbyLinked {
174
+ optional uint32 app_id = 1;
175
+ optional fixed64 steam_id_lobby = 2;
176
+ optional fixed64 steam_id_lobby2 = 3;
177
+ }
178
+
179
+ message CMsgClientMMSSetLobbyGameServer {
180
+ optional uint32 app_id = 1;
181
+ optional fixed64 steam_id_lobby = 2;
182
+ optional uint32 deprecated_game_server_ip = 3;
183
+ optional uint32 game_server_port = 4;
184
+ optional fixed64 game_server_steam_id = 5;
185
+ optional .CMsgIPAddress game_server_ip = 6;
186
+ }
187
+
188
+ message CMsgClientMMSLobbyGameServerSet {
189
+ optional uint32 app_id = 1;
190
+ optional fixed64 steam_id_lobby = 2;
191
+ optional uint32 deprecated_game_server_ip = 3;
192
+ optional uint32 game_server_port = 4;
193
+ optional fixed64 game_server_steam_id = 5;
194
+ optional .CMsgIPAddress game_server_ip = 6;
195
+ }
196
+
197
+ message CMsgClientMMSUserJoinedLobby {
198
+ optional uint32 app_id = 1;
199
+ optional fixed64 steam_id_lobby = 2;
200
+ optional fixed64 steam_id_user = 3;
201
+ optional string persona_name = 4;
202
+ }
203
+
204
+ message CMsgClientMMSUserLeftLobby {
205
+ optional uint32 app_id = 1;
206
+ optional fixed64 steam_id_lobby = 2;
207
+ optional fixed64 steam_id_user = 3;
208
+ optional string persona_name = 4;
209
+ }
210
+
211
+ message CMsgClientMMSInviteToLobby {
212
+ optional uint32 app_id = 1;
213
+ optional fixed64 steam_id_lobby = 2;
214
+ optional fixed64 steam_id_user_invited = 3;
215
+ }
216
+
217
+ message CMsgClientMMSGetLobbyStatus {
218
+ optional uint32 app_id = 1;
219
+ optional fixed64 steam_id_lobby = 2;
220
+ optional bool claim_membership = 3;
221
+ optional bool claim_ownership = 4;
222
+ }
223
+
224
+ message CMsgClientMMSGetLobbyStatusResponse {
225
+ optional uint32 app_id = 1;
226
+ optional fixed64 steam_id_lobby = 2;
227
+ optional .EMMSLobbyStatus lobby_status = 3 [default = k_EMMSLobbyStatusInvalid];
228
+ }