Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d22ded3d27 | |||
| 15c403b0d1 | |||
| 1cc16ecbd9 | |||
| ffe75e9de7 | |||
| 243e39d04b | |||
| daa5585527 | |||
| 8bf5aac0ec | |||
| 4c7dd302d5 | |||
| 63eed9d796 | |||
| 671f9ba246 | |||
| 868b4e27be | |||
| 56eefd83d7 |
@ -1,8 +1,8 @@
|
||||
### Games and regions
|
||||
- **3rd**: glb/sea/cn/tw/kr/jp **v6.8.0+**
|
||||
- **SR**: os/cn **v1.2.0** (potentially unsafe, but no bans were reported since v1.1.0)
|
||||
- **3rd**: glb/sea/tw/kr/jp **v6.8.0**, cn **v6.9.0+**
|
||||
- **SR**: os/cn **v1.3.0** (potentially unsafe, but no bans were reported since v1.1.0)
|
||||
|
||||
**You can expect newer versions of 3rd to work immediately after release with the same jadeite binary.** However, that is not the case for SR: you will have to update your jadeite binary to run newer versions.
|
||||
You can expect newer versions to work immediately after release with the same jadeite binary if the version is specified with a + above.
|
||||
|
||||
### Information
|
||||
The anticheat the games use is fundamentally incompatible with Wine in multiple ways. This tool launches the game without it (`injector`) and imitates it's behaviour (`game_payload`).
|
||||
|
||||
Binary file not shown.
@ -3,16 +3,28 @@
|
||||
|
||||
#include <game.h>
|
||||
|
||||
const char *HI3_TXS_SECTION_NAME_OLD = ".bh3";
|
||||
const char *HI3_TXS_SECTION_NAME_NEW = ".ace";
|
||||
|
||||
const char *HI3_BASE_MODULE_NAME = "BH3Base.dll";
|
||||
const char *HI3_ASSEMBLY_PATH = "BH3_Data\\Native\\UserAssembly.dll";
|
||||
const char *HI3_TXS_SECTION_NAME = ".bh3";
|
||||
const char *HI3_TVM_SECTION_NAME = ".tvm0";
|
||||
|
||||
|
||||
void hi3_fill_data(struct game_data *buf) {
|
||||
// !!! TEMPORARY WORKAROUND FOR HI3 6.8.0 -> 6.9.0
|
||||
const uint32_t NEW_CHECKSUM = 0x885b4c63;
|
||||
|
||||
uint32_t crc = utils_file_crc32c(L"UnityPlayer.dll");
|
||||
|
||||
if (crc == NEW_CHECKSUM) {
|
||||
buf->txs_section_name = HI3_TXS_SECTION_NAME_NEW;
|
||||
} else {
|
||||
buf->txs_section_name = HI3_TXS_SECTION_NAME_OLD;
|
||||
}
|
||||
|
||||
buf->base_module_name = HI3_BASE_MODULE_NAME;
|
||||
buf->assembly_path = HI3_ASSEMBLY_PATH;
|
||||
buf->txs_section_name = HI3_TXS_SECTION_NAME;
|
||||
buf->tvm_section_name = HI3_TVM_SECTION_NAME;
|
||||
|
||||
buf->unityplayer_callback = NULL;
|
||||
|
||||
@ -9,6 +9,8 @@ const char *HSR_ASSEMBLY_PATH = "GameAssembly.dll";
|
||||
const char *HSR_TXS_SECTION_NAME = ".ace";
|
||||
const char *HSR_TVM_SECTION_NAME = ".tvm0";
|
||||
|
||||
#define HSR_VERSION "1.3.0"
|
||||
|
||||
enum hsr_region {
|
||||
HSR_INVALID,
|
||||
HSR_OS,
|
||||
@ -21,14 +23,14 @@ struct crc_region_pair {
|
||||
};
|
||||
|
||||
const struct crc_region_pair HSR_REGIONS[] = {
|
||||
{ 0x9eb3084e, HSR_OS }, // os v1.2.0
|
||||
{ 0x14be07e9, HSR_CN } // cn v1.2.0
|
||||
{ 0x748c8f9c, HSR_OS }, // os v1.3.0
|
||||
{ 0x76e85a40, HSR_CN } // cn v1.3.0
|
||||
};
|
||||
|
||||
#define JUMP_SIZE (6 + sizeof(void*))
|
||||
|
||||
// Temporarily hardcoded offset
|
||||
// v1.2.0, same for os and cn
|
||||
// v1.3.0, same for os and cn
|
||||
#define WTSUD_PATCH_OFFSET 0x16430
|
||||
|
||||
char wtsud_original_bytes[JUMP_SIZE];
|
||||
@ -86,7 +88,7 @@ void hsr_fill_data(struct game_data *buf) {
|
||||
}
|
||||
|
||||
if (id == HSR_INVALID) {
|
||||
msg_err_a("Invalid UnityPlayer.dll checksum: 0x%08x. This usually happens when the patch is outdated", crc);
|
||||
msg_err_a("Invalid UnityPlayer.dll checksum: 0x%08x. This patch is intended to be used with HSR v" HSR_VERSION, crc);
|
||||
}
|
||||
|
||||
buf->base_module_name = HSR_BASE_MODULE_NAME;
|
||||
|
||||
@ -28,6 +28,10 @@ void tx_table_file(struct game_data *game, wchar_t *buf) {
|
||||
|
||||
// Checksum the TXS section
|
||||
IMAGE_SECTION_HEADER *txsSection = pe_find_section(baseMap, game->txs_section_name);
|
||||
if (!txsSection) {
|
||||
msg_err_a("Could not find %s in %s. " ISSUE_SUFFIX, game->txs_section_name, game->base_module_name);
|
||||
}
|
||||
|
||||
uint32_t txsChecksum = crc32c(0, baseMap + txsSection->PointerToRawData, txsSection->SizeOfRawData);
|
||||
|
||||
// Format the path
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
project('jadeite', 'c', version: '3.0.5')
|
||||
project('jadeite', 'c', version: '3.0.7')
|
||||
|
||||
nasm = find_program('nasm')
|
||||
gen_res = find_program('gen_resources.sh')
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"jadeite": {
|
||||
"version": "3.0.5"
|
||||
"version": "3.0.7"
|
||||
},
|
||||
"games": {
|
||||
"hi3rd": {
|
||||
@ -14,7 +14,7 @@
|
||||
},
|
||||
"china": {
|
||||
"status": "verified",
|
||||
"version": "6.8.0"
|
||||
"version": "6.9.0"
|
||||
},
|
||||
"taiwan": {
|
||||
"status": "verified",
|
||||
@ -32,11 +32,11 @@
|
||||
"hsr": {
|
||||
"global": {
|
||||
"status": "verified",
|
||||
"version": "1.2.0"
|
||||
"version": "1.3.0"
|
||||
},
|
||||
"china": {
|
||||
"status": "verified",
|
||||
"version": "1.2.0"
|
||||
"version": "1.3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user