-
download MSYS2 and Visual Studio Code: install C/C++ extension for VSC (Required)
-
Locate your MSYS2 folder (e.g.,
C:\msys64), openucrt64.exe, and run the following command:pacman -S --needed mingw-w64-ucrt-x86_64-{gcc,openssl,sqlite} make
- Open the project folder in Visual Studio Code.
- Press
Ctrl + Shift + Bto start the build process.
- After compiling, press
F5to run the server with the debugger attached.
-
enter command associated with your distribution into the terminal to install nessesary tools.
- Navigate to the project's root directory in your terminal and run the
makecommand:make -j$(nproc)
- Execute the compiled binary located in the
maindirectory:./main.out
Note
To connect to your local server, you must modify your system's hosts file.
- Windows:
C:\Windows\System32\drivers\etc\hosts - Linux/macOS:
/etc/hosts
Add the following lines to the end of the file:
127.0.0.1 www.growtopia1.com
127.0.0.1 www.growtopia2.com