feat: Add support for version 3.1.5x

This commit is contained in:
amizing25 2025-02-25 15:20:54 +07:00
parent 71ad8e9691
commit c6eaffdb29
10 changed files with 73982 additions and 63107 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,11 +2,11 @@ use crate::net::tools::FreesrData;
use super::*;
static UNLOCKED_AVATARS: [u32; 61] = [
static UNLOCKED_AVATARS: [u32; 63] = [
1002, 1003, 1004, 1005, 1006, 1008, 1009, 1013, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108,
1109, 1110, 1111, 1112, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1211, 1212,
1213, 1214, 1215, 1217, 1301, 1302, 1303, 1304, 1305, 1306, 1307, 1308, 1309, 1312, 1315, 1310,
1314, 1218, 1221, 1220, 1222, 1223, 1317, 1313, 1225, 1402, 1401, 1404, 1403,
1314, 1218, 1221, 1220, 1222, 1223, 1317, 1313, 1225, 1402, 1401, 1404, 1403, 1405, 1407
];
pub async fn on_get_avatar_data_cs_req(

View File

@ -65,10 +65,10 @@ pub async fn on_take_off_equipment_cs_req(
) {
}
pub async fn on_relic_recommend_cs_req(
_: &mut PlayerSession,
req: &RelicRecommendCsReq,
res: &mut RelicRecommendScRsp,
) {
res.avatar_id = req.avatar_id
}
// pub async fn on_relic_recommend_cs_req(
// _: &mut PlayerSession,
// req: &RelicRecommendCsReq,
// res: &mut RelicRecommendScRsp,
// ) {
// res.avatar_id = req.avatar_id
// }

View File

@ -44,13 +44,13 @@ use proto::{
CmdMuseumType::*, CmdOfferingType::*, CmdPamMissionType::*, CmdPhoneType::*,
CmdPlayerBoardType::*, CmdPlayerReturnType::*, CmdPlayerSync::*, CmdPlayerType::*,
CmdPlotType::*, CmdPunkLordType::*, CmdQuestType::*, CmdRaidCollectionType::*, CmdRaidType::*,
CmdRecommendType::*, CmdRedDotType::*, CmdReplayType::*, CmdRndOptionType::*,
CmdRogueCommonType::*, CmdRogueEndless::*, CmdRogueModifierType::*, CmdRogueTournType::*,
CmdRogueType::*, CmdRollShopType::*, CmdSceneType::*, CmdServerPrefsType::*, CmdShopType::*,
CmdSpaceZooType::*, CmdStarFightType::*, CmdStoryLineType::*,
CmdStrongChallengeActivityType::*, CmdTalkRewardType::*, CmdTelevisionActivityType::*,
CmdTextJoinType::*, CmdTrainVisitorType::*, CmdTreasureDungeonType::*, CmdTutorialType::*,
CmdWaypointType::*, CmdWolfBroType::*,
CmdRechargeGiftType::*, CmdRecommendType::*, CmdRedDotType::*, CmdReplayType::*,
CmdRndOptionType::*, CmdRogueCommonType::*, CmdRogueEndless::*, CmdRogueModifierType::*,
CmdRogueTournType::*, CmdRogueType::*, CmdRollShopType::*, CmdSceneType::*,
CmdServerPrefsType::*, CmdShopType::*, CmdSpaceZooType::*, CmdStarFightType::*,
CmdStoryLineType::*, CmdStrongChallengeActivityType::*, CmdTalkRewardType::*,
CmdTelevisionActivityType::*, CmdTextJoinType::*, CmdTrainVisitorType::*,
CmdTreasureDungeonType::*, CmdTutorialType::*, CmdWaypointType::*, CmdWolfBroType::*,
};
macro_rules! dummy {
@ -134,5 +134,6 @@ dummy! {
// PlayerLoginFinish,
InteractProp,
FinishTalkMission,
GetRechargeGiftInfo
// RelicRecommend
}

View File

@ -219,6 +219,6 @@ trait_handler! {
GetGachaInfo;
DoGacha;
PlayerLoginFinish;
RelicRecommend;
// RelicRecommend;
// SetClientPaused;
}

View File

@ -1,21 +1,21 @@
{
"lineups": {
"0": 1402,
"1": 1303,
"2": 1317,
"3": 8001
"0": 1403,
"1": 1407,
"2": 8001,
"3": 1405
},
"position": {
"x": 193720,
"y": 2171,
"z": 156800,
"rot_y": 259188
"x": -26968,
"y": 78953,
"z": 14457,
"rot_y": 11858
},
"scene": {
"plane_id": 20413,
"floor_id": 20413001,
"entry_id": 2041301
"plane_id": 20411,
"floor_id": 20411001,
"entry_id": 2041101
},
"main_character": "MaleHarmony",
"march_type": "FemaleHarmony"
"main_character": "FemaleRememberance",
"march_type": "MarchHunt"
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -39,20 +39,20 @@ pub async fn query_gateway(parameters: Query<QueryGatewayParameters>) -> String
retcode: 0,
ip: String::from("127.0.0.1"),
port: 23301,
video_bundle_version_update_url: config.asset_bundle_url.clone(),
design_data_bundle_version_update_url: config.ex_resource_url.clone(),
lua_bundle_version_update_url: config.lua_url.clone(),
i_fix_patch_revision: String::from("0"),
enable_video_bundle_version_update: true,
enable_design_data_bundle_version_update: true,
asset_bundle_url: config.asset_bundle_url.clone(),
ex_resource_url: config.ex_resource_url.clone(),
lua_url: config.lua_url.clone(),
ifix_version: String::from("0"),
enable_design_data_version_update: true,
enable_version_update: true,
enable_upload_battle_log: true,
network_diagnostic: true,
close_redeem_code: true,
android_middle_package_enable: true,
ejcmkocjnkg: true,
enable_android_middle_package: true,
enable_watermark: true,
event_tracking_open: true,
nehifogigfc: true,
cdn_ipv_6_enable: 1,
enable_cdn_ipv6: 1,
enable_save_replay_file: true,
..Default::default()
}
} else {

View File

@ -1,20 +1,8 @@
{
"CNBETAWin3.0.51": {
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_9191572_33717c67eee7",
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_9201681_3b7fa40d696e",
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_9188077_6eddb96c0602",
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253"
},
"OSBETAWin3.0.51": {
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_9191572_33717c67eee7",
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_9194543_a2c963cc027a",
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_9188077_6eddb96c0602",
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253"
},
"CNBETAWin3.0.53": {
"asset_bundle_url": "https://autopatchcn.bhsr.com/asb/BetaLive/output_9327839_3a7f8c61dd4e",
"ex_resource_url": "https://autopatchcn.bhsr.com/design_data/BetaLive/output_9330527_430d02ffd64d",
"lua_url": "https://autopatchcn.bhsr.com/lua/BetaLive/output_9327980_89d683a0d346",
"ifix_url": "https://autopatchcn.bhsr.com/ifix/BetaLive/output_0_40d2ce0253"
"OSBETAWin3.1.51": {
"asset_bundle_url": "https://autopatchos.starrails.com/asb/BetaLive/output_9573347_b03981f01966",
"ex_resource_url": "https://autopatchos.starrails.com/design_data/BetaLive/output_9574749_cf833d944ab2",
"lua_url": "https://autopatchos.starrails.com/lua/BetaLive/output_9567078_0e2b6acf6a2f",
"ifix_url": "https://autopatchos.starrails.com/ifix/BetaLive/output_0_40d2ce0253"
}
}