Before you start make sure you downloaded/extracted FortServer
Download and install Visual Studio if you have not already installed it.
Once Visual Studio is installed, open the Visual Studio installer, then under the Workload tab, select:
- ASP.NET and web development
- .NET Desktop Development
Switch to tab Individual components and make sure you have:
- .NET 7.0 Runtime
Choose above and install!
Download and install Mongodb Server if you have not already installed it.
Once you have installed all the necessary components:
- Double-click or run the
build.batfile.
This will build the project for you. And you're all set!
- you need download Bun
- then run
run.batfrom "FortDashboard" - i recommend using
127.0.0.1:portinstead oflocalhost:port
- First go to the built location
- Then go to FortBackend/Resources/Config.json
- Change HTTPS from false to true
- After, go to FortBackend/resources/certificates
- Remove .temp from the file then replace it with your .pfx (If you have cert and the key just look up how to make it a pfx)
- In the
config.jsonfile, setMatchmakerIPto your Matchmaker IP, with"127.0.0.1"as the default value. - Set
MatchmakerPortto your matchmaker port. - Set
CustomMatchmakertotrueto enable the custom matchmaker. - Add
GameServerIPto the config and set it to your game server's IP, with"127.0.0.1"as the default. - Optional! add
GameServerPortto the config and set it to your game server's port. The default is"7777", which is commonly used unless a custom port is set.
-
Open the Discord Developer Portal and navigate to the OAuth2 tab.
-
In the Redirects section, add a new redirect URL:
- Use
http://127.0.0.1:1111/launcher/api/v1/callbackas the redirect (port1111is the default for the backend).
- Use
-
Scroll down to the OAuth2 URL Generator:
- Check these scopes:
Identity,email, andguilds. - Select the redirect URL you just added.
- Check these scopes:
-
Copy the generated OAuth2 link and paste it into your launcher's source code (this is located at LauncherConfig.cs).
-
For your backend configuration, use these values:
- ApplicationURI:
http://127.0.0.1:1111/launcher/api/v1/callback - ApplicationClientID: The "Client ID" from your application (this should be at the top of the discord dev page!!).
- ApplicationSecret: The "Client Secret" from your application (Same place).
- ApplicationURI:
That's it!!!!