Skip to content

Greedycell/AstralRoyale

 
 

Repository files navigation

AstralRoyale

Clash Royale server for 1.9.0 - 1.9.3

clash royale License: GPL v3

A .NET Core 2017 Clash Royale Server (v1.9.0 - v1.9.3)

Need help? Join our Discord or Subreddit

Want to help us? Fork this project and you could try add stuff!

Features

1. More commands
2. Searchable clans
3. Maintenance system.
4. Clan Commands (including non admin/admin commands + added /admin & /ban command)
5. Update check if the app's version is incorrect
6. Extended the 2v2 button timestamp to 2038 (I did this so you can see the 2v2 button)
7. Username, clan name/description/chat filtering system
8. Battle System
9. Friendly Battle
10. Shop
11. Upgrading
12. Arena map fixes
13. Gem Packs (complete but all of them only give 1000 gems for now)
14. 2v2 round results working
15. Donations (donations send but you can't donate to the donation requester)
16. Sending Clan Mail
17. Friends system (for now you can't accept the requests from a link will come soon)

Partial Features

1. Achievements

Incomplete Features

1. Reporting Users
2. Buying cards from the shop with gems
3. Battle Logs
4. Battle End Results
5. Chest Slots

Battles

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

See the wiki for a tutorials

How to start

Requirements:

If you're on Windows, the ClashRoyale folder has bat files to run the server or you can use the commands below.
If you're on Linux run the commands below.
Main Server:
cd /where/your/directory/you/put/ClashRoyale
dotnet publish \"ClashRoyale.csproj\" -c Release -o app && copy /Y filter.json app\

Run the server:

Run the port forward app and then set both local and external port to 9339.
Run UwAmp and start the server, open https://localhost/mysql then enter username and password as "root".
Make a new Database named "ardb" and create it then after click "ardb" and go to ClashRoyale folder then open GameAssets then drag "database.sql" into the Database page and it should import the sql file.
Main Server:

dotnet app/ClashRoyale.dll

When your server says that the configuration file has been added.
Find the config.json file (located in ClashRoyale folder) and open it.
Change the password to "root".
Change MinTrophies to 15 and change MaxTrophies to 50. You can change it to whatever you want.
Change DefaultGold, DefaultGems to any value but I recommend setting it to "100000000" if you want to progress faster.
Change DefaultLevel, PLEASE CHANGE THIS VALUE TO 1 - 13. DO NOT HAVE "DefaultLevel" SET TO 0 OR ELSE IT CRASHES THE CR APP.
Optional Step: You can change update_url to the download page of your website.
Important Note: If the default values randomly reset, you should edit the Default values in ClashRoyale\Core\Configuration.cs and set those values to what you want and run publish.bat to publish all changes.

NOTE: THE APK & IPA STEPS ARE IN THE WIKI PAGE!

Need help?

Ask for help in my Discord server or open an issue.