This is a reversed-engineered server for Card Wars Kingdom, designed for version 1.0.17 works with v1.0.17 - v1.19.0 ( v1.19.1 requires fixes ).
Disclaimer: This server is intended for use only by individuals you trust, as it lacks essential security measures in this version.
Blueprints are sourced from the original CWK and may require changes.
-
Server Configuration: Navigate to
CardWarsKindom/Card Wars Kingdom_data/StreamingAssets/server_settings.json
and replace theserver_url
with the web address of the server you want to connect to. You should also replacephoton_chat_app_id
andphoton_pun_app_id
if you intend to use PVP and Chat. -
VPN Usage: It is recommended to use a VPN when connecting to someone else's server.
To run the server, use one of the following methods:
- Using Python:
python app.py
- Using Gunicorn:
gunicorn app:app app.py
It is recommended to set up Chat and PUN servers with Photon if you want to play PVP and use chat exclusively with users of your server.
- Works, however missing some routes like /time/ etc.
- Works, however requires fixes.
- Get username/playerid from
request.headers
Player-Id
.
- Add handle to the data dictionary or game will freeze in treasure cave.
- Add sha256 Hash to handle or gems wont deduct from your total.
- Key to generate hash has been changed and no longer matches the original game source.
OldKey = "5424493204pemhi3148ifmanseu4iksdf4_4" + clientData["player_id"] + clientData["misc"]
NewKey = "5424498w34tiowhtgoae0tu4iksdf4_4" + clientData["player_id"] + "650"
- All versions: Add level1 to the data dictionary if you have PaidHardCurrency in your save game.
- Rename discord_game_sdk.dll :
<your_install_location>\CardWarsKingdom\Card Wars Kingdom_Data\Plugins\x86_64\
- Stop discord webhooks.
- Add folder recordings :
%USERPROFILE%\LocalLow\shishkabob\Card Wars Kingdom\
- Stop error "folder not found" in logs.
- Edit config :
%USERPROFILE%\LocalLow\shishkabob\Card Wars Kingdom\Unity\local.*\Analytics\
- Stop generating files in folder ArchivedEvents and possibly sending out...
- New config values :
{
"analytics": {
"enabled": false
},
"connect": {
"limit_user_tracking": true,
"player_opted_out": true,
"enabled": false
},
"performance": {
"enabled": false
},
"dynamic": {
"coreBusinessMetrics": {
"enabled": false,
"timeToWaitForUserInfoS": 86400
},
"analytics": {
"shouldCollectAutomation": false,
"timeToWaitForUserInfoS": 86400
}
}
}
- Moving Devices : If you know how this is possible "android to pc", "pc to pc", "pc to android < requires root and "android to android" < requires root however in the latest build of cwk-server X-Nick-Description is being stored and checked, if you plan on changing devices and using shishkabob's server new device will need to have same name as the old device.