Git Product home page Git Product logo

cwk-server's Introduction

Card Wars Kingdom Reversed-Engineered Server

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.

Setup

  1. Server Configuration: Navigate to CardWarsKindom/Card Wars Kingdom_data/StreamingAssets/server_settings.json and replace the server_url with the web address of the server you want to connect to. You should also replace photon_chat_app_id and photon_pun_app_id if you intend to use PVP and Chat.

  2. VPN Usage: It is recommended to use a VPN when connecting to someone else's server.

Running the Server

To run the server, use one of the following methods:

  • Using Python: python app.py
  • Using Gunicorn: gunicorn app:app app.py

Additional Setup

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.

AcidPi Notes

v1.0.17 - v1.19.0

  • Works, however missing some routes like /time/ etc.

v1.19.1

  • Works, however requires fixes.

v1.19.1 Fixes

PersistGame(username)

  • Get username/playerid from request.headers Player-Id.

UserAction2()

  • 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.

Other

  • 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.

cwk-server's People

Contributors

acidpi avatar shishkabob27 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.