IP weiterleitung eingefügt
Leitet das Spiel bei anfrage an den Player mit der Serverlibary (leider statish)
This commit is contained in:
parent
156a57866d
commit
b4c15bf36a
@ -28,11 +28,49 @@ function groupStatus(url, info, sessionID) {
|
|||||||
return '{"err": 0, "errmsg": null, "data": null}';
|
return '{"err": 0, "errmsg": null, "data": null}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function joinMatch(url, info, sessionID) {
|
||||||
|
let account = account_f.accountServer.find(sessionID);
|
||||||
|
let profileID = "";
|
||||||
|
let matchID = "";
|
||||||
|
|
||||||
|
// check if the player is a scav
|
||||||
|
if (info.savage == true) {
|
||||||
|
matchID = "TEST";
|
||||||
|
profileID = "scav" + account.id;
|
||||||
|
} else {
|
||||||
|
matchID = "TEST";
|
||||||
|
profileID = "pmc" + account.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
return json.stringify({"err": 0, "errmsg": null, "data":[{"profileid": profileID, "status": "busy", "ip": "127.0.0.1", "port": 9909, "location": info.location, "sid": "", "gamemode": "deathmatch", "shortid": matchID}]});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getGroupStatus(url, info, sessionID) {
|
||||||
|
return json.stringify({"err": 0, "errmsg": null, "data": {"players": [], "invite": [], "group": []}});
|
||||||
|
}
|
||||||
|
|
||||||
|
function matchAvailable(url, info, sessionID) {
|
||||||
|
return json.stringify({"err": 0, "errmsg": null, "data": true});
|
||||||
|
}
|
||||||
|
function getMetricsConfig(url, info, sessionID) {
|
||||||
|
return json.read('user/configs/metricsConfig.json');
|
||||||
|
}
|
||||||
|
|
||||||
|
function putMetrics(url, info, sessionID) {
|
||||||
|
return json.stringify({"err":0, "errmsg":null, "data":null});
|
||||||
|
}
|
||||||
|
router.addStaticRoute("/client/putMetrics", putMetrics);
|
||||||
|
router.addStaticRoute("/client/getMetricsConfig", getMetricsConfig);
|
||||||
router.addStaticRoute("/client/game/profile/select", selectProfile);
|
router.addStaticRoute("/client/game/profile/select", selectProfile);
|
||||||
router.addStaticRoute("/client/profile/status", getProfileStatus);
|
router.addStaticRoute("/client/profile/status", getProfileStatus);
|
||||||
|
router.addStaticRoute("/client/match/group/status", getGroupStatus)
|
||||||
|
router.addStaticRoute("/client/match/join", joinMatch);
|
||||||
|
router.addStaticRoute("/client/match/exit", nullResponse);
|
||||||
router.addStaticRoute("/client/server/list", getServer);
|
router.addStaticRoute("/client/server/list", getServer);
|
||||||
router.addStaticRoute("/client/game/version/validate", validateGameVersion);
|
router.addStaticRoute("/client/game/version/validate", validateGameVersion);
|
||||||
router.addStaticRoute("/client/game/config", getGameConfig);
|
router.addStaticRoute("/client/game/config", getGameConfig);
|
||||||
router.addStaticRoute("/client/game/logout", nullResponse);
|
router.addStaticRoute("/client/game/logout", nullResponse);
|
||||||
router.addStaticRoute("/client/match/group/status", groupStatus);
|
router.addStaticRoute("/client/match/group/status", groupStatus);
|
||||||
router.addStaticRoute("/client/match/exit", nullResponse);
|
router.addStaticRoute("/client/match/exit", nullResponse);
|
||||||
|
router.addStaticRoute("/client/match/available", matchAvailable);
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,15 @@
|
|||||||
"nickname": "user",
|
"nickname": "user",
|
||||||
"email": "user@jet.com",
|
"email": "user@jet.com",
|
||||||
"password": "password",
|
"password": "password",
|
||||||
"wipe": true,
|
"wipe": false,
|
||||||
|
"edition": "eod"
|
||||||
|
},
|
||||||
|
"2": {
|
||||||
|
"id": 2,
|
||||||
|
"nickname": "Bear",
|
||||||
|
"email": "Bear@jet.com",
|
||||||
|
"password": "password",
|
||||||
|
"wipe": false,
|
||||||
"edition": "eod"
|
"edition": "eod"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
88
user/configs/metricsConfig.json
Normal file
88
user/configs/metricsConfig.json
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
{
|
||||||
|
"err": 0,
|
||||||
|
"errmsg": null,
|
||||||
|
"data": {
|
||||||
|
"Keys": [
|
||||||
|
0,
|
||||||
|
8,
|
||||||
|
10,
|
||||||
|
13,
|
||||||
|
16,
|
||||||
|
20,
|
||||||
|
26,
|
||||||
|
30,
|
||||||
|
33,
|
||||||
|
45,
|
||||||
|
53,
|
||||||
|
66,
|
||||||
|
100,
|
||||||
|
500,
|
||||||
|
750,
|
||||||
|
1000
|
||||||
|
],
|
||||||
|
"NetProcessingBins": [
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
2,
|
||||||
|
3,
|
||||||
|
4,
|
||||||
|
5,
|
||||||
|
6,
|
||||||
|
7,
|
||||||
|
8,
|
||||||
|
10,
|
||||||
|
13,
|
||||||
|
16,
|
||||||
|
20,
|
||||||
|
26,
|
||||||
|
30,
|
||||||
|
33,
|
||||||
|
45,
|
||||||
|
53,
|
||||||
|
66,
|
||||||
|
100,
|
||||||
|
500,
|
||||||
|
750,
|
||||||
|
1000
|
||||||
|
],
|
||||||
|
"RenderBins": [
|
||||||
|
0,
|
||||||
|
4,
|
||||||
|
8,
|
||||||
|
10,
|
||||||
|
13,
|
||||||
|
16,
|
||||||
|
20,
|
||||||
|
26,
|
||||||
|
30,
|
||||||
|
33,
|
||||||
|
45,
|
||||||
|
53,
|
||||||
|
66,
|
||||||
|
100,
|
||||||
|
500,
|
||||||
|
750,
|
||||||
|
1000
|
||||||
|
],
|
||||||
|
"GameUpdateBins": [
|
||||||
|
0,
|
||||||
|
4,
|
||||||
|
8,
|
||||||
|
10,
|
||||||
|
13,
|
||||||
|
16,
|
||||||
|
20,
|
||||||
|
26,
|
||||||
|
30,
|
||||||
|
33,
|
||||||
|
45,
|
||||||
|
53,
|
||||||
|
66,
|
||||||
|
100,
|
||||||
|
500,
|
||||||
|
750,
|
||||||
|
1000
|
||||||
|
],
|
||||||
|
"MemoryMeasureInterval": 180
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,8 +1,8 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "AllMissingKeys",
|
"name": "AllMissingKeys",
|
||||||
"author": "EmuTarkov",
|
"author": "EmuTarkov",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user