From 5af8fae61ab114938c342bf4e95f58c48998c349 Mon Sep 17 00:00:00 2001 From: Lawin0129 Date: Mon, 7 Feb 2022 20:34:35 +0000 Subject: [PATCH] User friendly GameServer config --- Config/config.ini | 7 ++++++- index.js | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Config/config.ini b/Config/config.ini index 4cdfda6..46978cb 100644 --- a/Config/config.ini +++ b/Config/config.ini @@ -1,3 +1,8 @@ [Config] bUseConfigDisplayName=false # If this is set to false, it will use the email to display name method. -displayName=LawinServer # Your fortnite display name. \ No newline at end of file +displayName=LawinServer # Your fortnite display name. + +[GameServer] +# Matchmaker gameserver config, you can use this to connect to gameservers like rift (titanium), fortmp, etc... (they have to be hosting though). +ip=127.0.0.1 # IP the matchmaker will use upon join. +port=7777 # PORT the matchmaker will use upon join. \ No newline at end of file diff --git a/index.js b/index.js index e43d544..44b04a9 100644 --- a/index.js +++ b/index.js @@ -625,7 +625,7 @@ express.get("/fortnite/api/game/v2/matchmakingservice/ticket/player/*", async (r fs.writeFileSync("./memory.json", JSON.stringify(memory, null, 2)); res.json({ - "serviceUrl": "ws://127.0.0.1:80", + "serviceUrl": "ws://lawinservermatchmaker.herokuapp.com", "ticketType": "mms-player", "payload": "69=", "signature": "420=" @@ -647,8 +647,8 @@ express.get("/fortnite/api/matchmaking/session/:session_id", async (req, res) => "ownerId": crypto.createHash('md5').update(`1${Math.random().toString()}`).digest('hex').toUpperCase(), "ownerName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968", "serverName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968", - "serverAddress": "127.0.0.1", - "serverPort": 9015, + "serverAddress": config.GameServer.ip, + "serverPort": Number(config.GameServer.port), "maxPublicPlayers": 220, "openPublicPlayers": 175, "maxPrivatePlayers": 0,