Skip to content

Latest commit

 

History

History
104 lines (71 loc) · 2.77 KB

SETUP.md

File metadata and controls

104 lines (71 loc) · 2.77 KB

Setup Guide

This will be a guide on how to setup the project.

NOTE

Not all fortnite versions are currently supported.

Prerequisites

  1. Install Dotnet 7.0:

    • Download and install the latest version of the .NET 7.0 SDK.
    • Verify the installation:
    dotnet --version
  2. Visual Studio 2022:

    • Install the following packages:
      • .NET desktop development
      • ASP.NET and web development
  3. PostgreSQL:

    • Download and install the latest version of PostgreSQL.
    • During the installation, remember your username and password for the database.
  4. Git:

    • Download and install Git.
    • Verify the installation:
    git --version

Setup

Step 0: Cloning the Repository

  1. Open a terminal or command prompt.
  2. Navigate to the directory where you want to clone the repository.
  3. Clone the repository using the following command:
git clone --recursive https://github.com/chloefrfr/Larry.git

Step 1: Creating the Config.json File

  1. Navigate to the Larry folder and create a new file called Config.json.
  • Must be in the same directory as the Larry.csproj file.
  1. Open the Config.json file in a ide or text editor.
  2. Add the following data:
{
  "ConnectionUrl": "Host=localhost;Port=5432;Database=dbtest;Username=postgres;Password=password;Pooling=true;MinPoolSize=1;MaxPoolSize=20;Timeout=600;",
  "Token": "<Your_Discord_Bot_Token>",
  "GuildId": "<Your_Discord_Server_ID>",
  "ClientId": "<Your_Secure_Client_ID>",
  "ClientSecret": "<Your_Secure_Client_Secret>",
  "GameDirectory": "<Path_To_FortniteGame_Directory>",
  "CurrentVersion": "<Fortnite_Build_Version>"
}
  1. Replace the values with your own.
    • Token: Your Discord bot token.
    • GuildId: Your Discord server ID.
    • ClientId: Can be anything, but it must be unique and secure.
    • ClientSecret:Can be anything, but it must be unique and secure.
    • GameDirectory: Path to the Fortnite game directory (eg.. D:\\FortniteBuilds\\Fortnite 12.41\\FortniteGame\\Content\\Paks).
    • CurrentVersion: The Fortnite build version (e.g., 11.31).

Step 2: Creating the Database

  1. Search psql in the start menu.
  2. Login to your PostgreSQL server.
  3. Create a new database using the following command:
CREATE DATABASE dbtest;
  1. Exit
\q

Step 3: Running the Project

  1. Open the project in Visual Studio 2022.
  2. Press F5 to run the project.

End

If you have any issues or questions, just create a new issue here.