User friendly GameServer config

This commit is contained in:
Lawin0129
2022-02-07 20:34:35 +00:00
parent 3ff980af3f
commit 5af8fae61a
2 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
[Config] [Config]
bUseConfigDisplayName=false # If this is set to false, it will use the email to display name method. bUseConfigDisplayName=false # If this is set to false, it will use the email to display name method.
displayName=LawinServer # Your fortnite display name. 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.

View File

@@ -625,7 +625,7 @@ express.get("/fortnite/api/game/v2/matchmakingservice/ticket/player/*", async (r
fs.writeFileSync("./memory.json", JSON.stringify(memory, null, 2)); fs.writeFileSync("./memory.json", JSON.stringify(memory, null, 2));
res.json({ res.json({
"serviceUrl": "ws://127.0.0.1:80", "serviceUrl": "ws://lawinservermatchmaker.herokuapp.com",
"ticketType": "mms-player", "ticketType": "mms-player",
"payload": "69=", "payload": "69=",
"signature": "420=" "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(), "ownerId": crypto.createHash('md5').update(`1${Math.random().toString()}`).digest('hex').toUpperCase(),
"ownerName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968", "ownerName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968",
"serverName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968", "serverName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968",
"serverAddress": "127.0.0.1", "serverAddress": config.GameServer.ip,
"serverPort": 9015, "serverPort": Number(config.GameServer.port),
"maxPublicPlayers": 220, "maxPublicPlayers": 220,
"openPublicPlayers": 175, "openPublicPlayers": 175,
"maxPrivatePlayers": 0, "maxPrivatePlayers": 0,