mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-12 13:04:33 +01:00
fix: Fixed account error when login
This commit is contained in:
12
README.md
12
README.md
@@ -44,12 +44,6 @@ Download resources & proto from [MikuBH3-Res](https://github.com/MikuLeaks/MikuB
|
|||||||
- Extract the `Proxy.zip` file anywhere you want.
|
- Extract the `Proxy.zip` file anywhere you want.
|
||||||
- Run `Sparkle-Proxy.exe` as administrator and open the game.
|
- Run `Sparkle-Proxy.exe` as administrator and open the game.
|
||||||
|
|
||||||
## Connecting with the client (DLL method)
|
|
||||||
|
|
||||||
- Download prebuild patch from [BH3-Patch](https://github.com/MikuLeaks/MikuBH3-PATCH/releases)
|
|
||||||
- Extract the `BH3-Patch-Win64.zip` file into your game folder, where the game’s main executable (`BH3.exe`) is located.
|
|
||||||
- Run `bh3-launcher.exe` as administrator.
|
|
||||||
|
|
||||||
## Usage/Examples
|
## Usage/Examples
|
||||||
|
|
||||||
To run the project use cmd or vscode and run
|
To run the project use cmd or vscode and run
|
||||||
@@ -57,17 +51,19 @@ To run the project use cmd or vscode and run
|
|||||||
```python
|
```python
|
||||||
py hi3
|
py hi3
|
||||||
```
|
```
|
||||||
|
|
||||||
## Changing Stage in Abyss/Memorial Using JSON
|
## Changing Stage in Abyss/Memorial Using JSON
|
||||||
|
|
||||||
- **Superstring Dimension (Abyss)**
|
- **Superstring Dimension (Abyss)**
|
||||||
|
|
||||||
Open the `Battle.json` file and update `area1` to the preferred `SiteID` from `UltraEndlessSite.json`.
|
Open the `Battle.json` file and update `area1` to the preferred `SiteID` from `UltraEndlessSite.json`.
|
||||||
|
|
||||||
- **Memorial Arena**
|
- **Memorial Arena**
|
||||||
|
|
||||||
Open the `Battle.json` file and update the `boss_ids` as needed. You can find `boss_id` values in the `BossIdList` within `ExBossMonsterSchedule.json`.
|
Open the `Battle.json` file and update the `boss_ids` as needed. You can find `boss_id` values in the `BossIdList` within `ExBossMonsterSchedule.json`.
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
```
|
```
|
||||||
/help. Displays a list of available commands.
|
/help. Displays a list of available commands.
|
||||||
/maxskill {avatar_id | all}. Maximize the skills of a specific avatar. Use 'all' to maximize the skills of all avatars.
|
/maxskill {avatar_id | all}. Maximize the skills of a specific avatar. Use 'all' to maximize the skills of all avatars.
|
||||||
|
|||||||
@@ -16,10 +16,9 @@ def query_dispatch():
|
|||||||
"region_list": [
|
"region_list": [
|
||||||
{
|
{
|
||||||
"retcode": 0,
|
"retcode": 0,
|
||||||
"dispatch_url": f"http://{Config.GameServer.IP}/query_gateway",
|
"dispatch_url": f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/query_gateway",
|
||||||
"name": Config.RegionName,
|
"name": Config.RegionName,
|
||||||
"title": "",
|
"title": ""
|
||||||
"ext": get_ext(version),
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@@ -39,25 +38,24 @@ def query_gateway():
|
|||||||
server = {"ip": Config.GameServer.IP, "port": Config.GameServer.Port}
|
server = {"ip": Config.GameServer.IP, "port": Config.GameServer.Port}
|
||||||
|
|
||||||
response_data = {
|
response_data = {
|
||||||
"account_url": f"http://{Config.GameServer.IP}/account",
|
"account_url": f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/account",
|
||||||
"account_url_backup": f"http://{Config.GameServer.IP}/account",
|
"account_url_backup": f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/account",
|
||||||
"asset_bundle_url_list": get_asset_bundle_url_list(version),
|
"asset_bundle_url_list": get_asset_bundle_url_list(version),
|
||||||
# "ex_audio_and_video_url_list": get_ex_audio_and_video_url_list(version),
|
# "ex_audio_and_video_url_list": get_ex_audio_and_video_url_list(version),
|
||||||
"ex_resource_url_list": get_ex_resource_url_list(version),
|
"ex_resource_url_list": get_ex_resource_url_list(version),
|
||||||
# TODO: Revisit this
|
|
||||||
"ext": Config.get_hotpatch_ext(version),
|
"ext": Config.get_hotpatch_ext(version),
|
||||||
"gameserver": server,
|
"gameserver": server,
|
||||||
"gateway": server,
|
"gateway": server,
|
||||||
"is_data_ready": True,
|
"is_data_ready": True,
|
||||||
"manifest": Config.get_hotpatch_manifest(version),
|
"manifest": Config.get_hotpatch_manifest(version),
|
||||||
"msg": "",
|
"msg": "",
|
||||||
"oaserver_url": f"http://{Config.GameServer.IP}/oaserver",
|
"oaserver_url": f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/oaserver",
|
||||||
"region_name": Config.RegionName,
|
"region_name": Config.RegionName,
|
||||||
"retcode": 0,
|
"retcode": 0,
|
||||||
"server_cur_time": int(time.time()),
|
"server_cur_time": int(time.time()),
|
||||||
"server_cur_timezone": 8,
|
"server_cur_timezone": 8,
|
||||||
"server_ext": {
|
"server_ext": {
|
||||||
"cdkey_url": "http://127.0.0.1/common/",
|
"cdkey_url": f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/common/",
|
||||||
"is_official": "1",
|
"is_official": "1",
|
||||||
"mihoyo_sdk_env": "0",
|
"mihoyo_sdk_env": "0",
|
||||||
"use_account_web_url": "1",
|
"use_account_web_url": "1",
|
||||||
@@ -217,6 +215,6 @@ def get_ex_resource_url_list(version):
|
|||||||
|
|
||||||
def get_local_url_list(type, version):
|
def get_local_url_list(type, version):
|
||||||
return [
|
return [
|
||||||
f"http://{Config.GameServer.IP}/statics/{type}/{version.replace('.', '_')}",
|
f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/statics/{type}/{version.replace('.', '_')}",
|
||||||
f"http://{Config.GameServer.IP}/statics/{type}/{version.replace('.', '_')}",
|
f"http://{Config.SDKServer.IP}:{Config.SDKServer.Port}/statics/{type}/{version.replace('.', '_')}",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user