Compare commits

...

4 commits
1.0.0 ... main

5 changed files with 112475 additions and 102151 deletions

View file

@ -17,7 +17,7 @@ Copy and paste launcher.exe and hkprg.dll from launcher folder inside hysilens-s
Windows:
```
git clone https://git.xeondev.com/HonkaiSlopRail/hysilens-sr
cd jingliu-sr
cd hysilens-sr
zig build run-dispatch
zig build run-gameserver
```

View file

@ -225,6 +225,14 @@ const DummyCmdList = [_]struct { CmdID, CmdID }{
.{ CmdID.CmdGetPlanetFesDataCsReq, CmdID.CmdGetPlanetFesDataScRsp },
.{ CmdID.CmdParkourGetDataCsReq, CmdID.CmdParkourGetDataScRsp },
.{ CmdID.CmdMatchThreeV2GetDataCsReq, CmdID.CmdMatchThreeV2GetDataScRsp },
.{ CmdID.CmdGetMonopolyInfoCsReq, CmdID.CmdGetMonopolyInfoScRsp },
.{ CmdID.CmdMonopolyGetRegionProgressCsReq, CmdID.CmdMonopolyGetRegionProgressScRsp },
.{ CmdID.CmdGetMbtiReportCsReq, CmdID.CmdGetMbtiReportScRsp },
.{ CmdID.CmdDrinkMakerCheersGetDataCsReq, CmdID.CmdDrinkMakerCheersGetDataScRsp },
.{ CmdID.CmdGetDrinkMakerDataCsReq, CmdID.CmdGetDrinkMakerDataScRsp },
.{ CmdID.CmdChimeraGetDataCsReq, CmdID.CmdChimeraGetDataScRsp },
.{ CmdID.CmdMarbleGetDataCsReq, CmdID.CmdMarbleGetDataScRsp },
.{ CmdID.CmdGetPreAvatarActivityListCsReq, CmdID.CmdGetPreAvatarActivityListScRsp },
};
const SuppressLogList = [_]CmdID{CmdID.CmdSceneEntityMoveCsReq};

View file

@ -252,7 +252,7 @@ fn addBattleTargets(allocator: Allocator, battle: *protocol.SceneBattleInfo) !vo
try battle.battle_target_info.append(.{ .key = 5, .value = pfTargetTail });
},
// AS
420100...420300 => {
420100...420900 => {
try battle.battle_target_info.append(.{ .key = 1, .value = asTargetHead });
},
else => {},

View file

@ -26,8 +26,8 @@ pub fn onSceneEntityMove(session: *Session, packet: *const Packet, allocator: Al
const req = try packet.getProto(protocol.SceneEntityMoveCsReq, allocator);
for (req.entity_motion_list.items) |entity_motion| {
if (entity_motion.motion) |motion| {
//if (entity_motion.entity_id > 99999 and entity_motion.entity_id < 1000000 or entity_motion.entity_id == 0)
log.debug("[POSITION] entity_id: {}, motion: {}", .{ entity_motion.entity_id, motion });
if (entity_motion.entity_id > 99999 and entity_motion.entity_id < 1000000 or entity_motion.entity_id == 0)
log.debug("[POSITION] entity_id: {}, motion: {}", .{ entity_motion.entity_id, motion });
}
}
try session.send(CmdID.CmdSceneEntityMoveScRsp, protocol.SceneEntityMoveScRsp{

File diff suppressed because it is too large Load diff