This guide will help you install and setup the required tools to run Rasa.NET. There are a few steps:
- Download, install, and setup the required tooling
- Download and install the game
- Download or clone the code
- Build and run the code from Visual Studio
- Launch the game
The following tools are required to setup, build, and run Rasa.NET:
- Microsoft Visual Studio 2017 or higher
- .NET Core SDK and Runtime
- MySQL Server
- MySQL Workbench
- Git
There is a single Visual Studio solution that contains the projects needed for Rasa.NET. Use Visual Studio 2017 or higher to compile and build these projects.
- Download Visual Studio. Choose the license that works for you
- Run the installer after it's downloaded
- In the Workloads selection, make sure that
.NET desktop developmentand.NET Core cross-platform developmentboxes are checked - Continue the installation and let it finish
Rasa.NET is set to build and run with .NET Core.
- Download the .NET Core SDK and Runtime and install it
Rasa.NET uses MySQL to store game data. Download and install MySQL Community Server following these steps:
- Download the MySQL Installer for Windows
- Run the installer after it's downloaded
- The default options are fine, but you can customize the install and choose only MySQL Sever and MySQL Workbench.
- For help, follow the documentation
- Set the
rootuser password to something unique when prompted after installation
Git is a version control system and will allow you to download the code. Alternatively, if you're not planning on developing for Rasa.NET you can download a .zip of the code directly from GitHub.
- Download Git
- Run the installer. If you're not sure of what options to select, choose the defaults
You'll need the game client. Below is the demo version which was made freely available.
- Refer to the forums to download and install the game client.
- Create a shortcut to the game client on the desktop. You'll need to find the executable in the path where you installed the game
- Right-click on the
.exeand chooseSend to > Desktop (create shortcut) - Go to the desktop and right-click on the newly created shortcut and choose
Properties - Select the
Shortcuttab - Edit the
Targetbox to append/NoPatch /AuthServer=localhost:2106to the end of the file path.
- Right-click on the
The game client needs to be version 1.16.5.0. If you have questions, join the Discord.
Download Rasa.NET from GitHub or use Git to clone the project (recommended).
- Launch a command prompt or Git bash terminal
- Change directories to where you want the source to download to, i.e.
cd C:\Projects - Run the command
git clone https://github.com/InfiniteRasa/Rasa.NET.git
Before you can build and run the code, there are some configuration steps for the database.
- Launch MySQL Workbench and select your
Local instance MySQL80underMySQL Connectionsthat was created during install - Enter your root password that you created to connect to it
- In the Navigator panel on the left, right-click in the blank space and choose
Create Schema- In the new tab, name the first schema
rasaauthand clickApply - Repeat this two more times for
rasacharandrasaworld
- In the new tab, name the first schema
- Double-click
rasaauthin theSCHEMASlist which makes it active - Go to
File > Open SQL Script - Select
Rasa.NET\database\full\auth_database.sqlfile in the code directory that you clone in the above steps - Execute the script to create the required tables by clicking the icon that looks like a lightning bolt
- Repeat this process for the
Rasa.NET\database\full\char_database.sqlandRasa.NET\database\full\world_database.sqlfiles - but first double-click the matching schema on the left to make it the active selection
- Repeat this process for the
- Next, you'll have to execute each of the sql files in the
Rasa.NET\database\patchesfolder- Follow similar steps as above, making sure to make the correct schema active and execute each patch script against the matching schema in sequential order.
The auth and game servers are pre-configured to use the user rasa to connect. You'll need to add this user to your database instance.
- In MySQL Workbench, go to
Server > Users and Privileges - Click
Add Account - Set the
Login Nametorasa - Set the
Limit Hosts to Matchingtolocalhost - Set the password to
rasa - Select the
Administrative Rolestab and checkDBA - Click
Apply
You should be ready to compile Rasa.NET and run the servers.
- Launch Visual Studio and open the
Rasa.NET.slnfile in the code repository - Build the solution
- Run the
Rasa.Authproject viaDebug > Start without Debugging - Run the
Rasa.Gameproject viaDebug > Start Debugging
The authentication server can be used to create a user by running a command in the terminal. The usage is: create <email> <username> <password>. Running this command will create a new user in the database that you can use to login with the game client.
- Run the command in the authentication termain. i.e.
create test@test.com test test- You can use any username / password that you want to create an account.
If the server consoles launched correctly, you should be ready to start the game client.
- Start the game client using the shortcut you created earlier
- Login with the user you created for the game above
Note* The game server will crash the first time you try to login due to a bug that is not fixed at the time of writing. Go back to Visual Studio and run the
Rasa.Gameproject again. Once it's running, switch back to the game client and log back in.