/ZrdRoyale

Fixed Version of ClashRoyale server by RetroRoyale

Primary LanguageC#GNU General Public License v3.0GPL-3.0

ClashRoyale (2017)

clash royale License: GPL v3 Build Status


✔What was added/changed in this fork✔

  1. Fixed DB(before fixing saving players progress always failed due to non existing column)
  2. Only admins can use chat commands(add gems, trophies etc)
  3. Fixed chests not removing gems after buying
  4. Discord webhook logging(players connections,disconnections, battle logs etc)
  5. fixed bug where player after arena 7 were playing on wrong arena for example player on arena 9 was playing on frozen peak which is map from arena 8
  6. Gems and gold rewards after win.
  7. Now server is more customizable without recompiling it, now you can edit:
Minimum Trophies and Maximum Trophies after Win
Default amount of gems and gold
Gems and gold rewards after win
Admins

TODO ✅

Fix trophies after winning
fix free chests bug on arena 10
Remake README.md

Clash royale server for version 1.9.2/1.9.3 written in .NET

Battles

The server supports battles, for those a patched client is neccessary.

See the wiki for a tutorial

How to start

Requirements:

  • .NET SDK 8.0
  • MySql Database (on Debian i suggest LAMP with PMA or on windows i suggest XAMPP with PMA)

for Ubuntu use these commands to set it up:

mkdir ClashRoyale
git clone https://github.com/Zordon1337/ZrdRoyale.git && cd ClashRoyale/src/ClashRoyale

dotnet publish

Run the server once to create the config.json file. (dotnet bin/Release/net8.0/ClashRoyale.dll)

To configurate your server, such as the database you have to edit the config.json file.

Run it again to actually start it: dotnet bin/Release/net8.0/ClashRoyale.dll

It should look like this:

running server

Run the server:

Main Server:

dotnet bin/Release/net8.0/ClashRoyale.dll

Battle Server:

dotnet ClashRoyale.Battles/bin/Release/netcoreapp3.1/ClashRoyale.Battles.dll (from /ZrdRoyale/src/)

Update the server:

Main Server:

git pull && dotnet publish "ClashRoyale.csproj" -c Release -o app && dotnet bin/Release/net8.0/ClashRoyale.dll

Battle Server:

git pull && dotnet publish "ClashRoyale.Battles.csproj" -c Release -o app && dotnet ClashRoyale.Battles/bin/Release/netcoreapp3.1/ClashRoyale.Battles.dll

Need help?

Contact me on Telegram (https://t.me/TZordon) or open an issue.