- 따라갈 사람: 봇이 서버를 지켜보기 전 멤버 요청을 사이트 서버가 forbidden 으로 거절하고 앱이 오류를 숨겨 빈 목록이 됐다 → 가입한 서버면 지켜보기 전에도 응답(source.members 가 멤버 확인), 앱은 오류 · 다시 불러오기 표시 → 내 계정 → 관리자(GET /app/admins) → 이름순, 녹음할 서버를 바꾸면 봇을 다시 붙여 새 서버를 지켜봄 - 롤 채팅 OCR 제거: 앱 설정 · 마법사 · 진단 · lol.ts · 워커 ocr.py/ocr_* op · pywinrt/mss/Pillow · win-ci ocr_lang 롤은 게임 중 전체/팀 채팅 API 가 없어 LCU(챔피언 선택 · 게임 후) + r3dlog(남아 있을 때, LCU 채팅을 지우지 않고 추가) - 표시 이름: 서버 store.displayNames (세션 · 앱 유저 · 접속 기록 이름까지 바꿈), GET /app/names, PUT /app/admin/names, cli name. 앱은 받아서 users · 지난 범인 분석 이름을 바꾸고 이후 디스코드 이름 대신 저장. 관리자 탭에 편집 UI - 저장소 시연 · 테스트 데이터 · 화면 캡처 · 계획서 PDF 의 실제 이름을 가짜 이름으로 교체 - 테스트: 앱 41 · 서버 16 · 워커 39 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
2.6 KiB
TypeScript
59 lines
2.6 KiB
TypeScript
// 발로란트 match-details 형태의 합성 데이터 (pd.<shard>.a.pvp.net/match-details/v1/matches/{id} 응답 구조)
|
|
export const SELF = 'self-puuid-0001';
|
|
export const ASCENT = '/Game/Maps/Ascent/Ascent';
|
|
const JETT = 'add6443a-41bd-e414-f6ad-e58d267f4e95';
|
|
const SAGE = '569fdd95-4d10-43ab-ca70-79becc718b46';
|
|
const REYNA = 'a3bfb853-43b2-7238-a4f1-ad90e9e46bcc';
|
|
const VANDAL = '9c82e19d-4575-0200-1a81-3eacf00cf872';
|
|
|
|
export function makeValDetails(gameStart: number) {
|
|
const players = [
|
|
{ subject: SELF, gameName: '하늘', tagLine: 'KR1', teamId: 'Blue', characterId: JETT, competitiveTier: 15, stats: { score: 4200, roundsPlayed: 3, kills: 3, deaths: 1, assists: 1 } },
|
|
{ subject: 'ally-2', gameName: '민수', tagLine: 'KR1', teamId: 'Blue', characterId: SAGE, competitiveTier: 14, stats: { score: 1800, roundsPlayed: 3, kills: 1, deaths: 2, assists: 3 } },
|
|
{ subject: 'enemy-1', gameName: '상대1', tagLine: '0000', teamId: 'Red', characterId: REYNA, competitiveTier: 15, stats: { score: 3000, roundsPlayed: 3, kills: 2, deaths: 3, assists: 0 } },
|
|
];
|
|
const kill = (gameTime: number, roundTime: number, killer: string, victim: string) => ({
|
|
gameTime,
|
|
roundTime,
|
|
killer,
|
|
victim,
|
|
victimLocation: { x: 6500, y: -7000 },
|
|
assistants: [],
|
|
playerLocations: [],
|
|
finishingDamage: { damageType: 'Weapon', damageItem: VANDAL.toUpperCase(), isSecondaryFireMode: false },
|
|
});
|
|
const roundResults = [
|
|
{
|
|
roundNum: 0,
|
|
roundResult: 'Eliminated',
|
|
winningTeam: 'Blue',
|
|
playerStats: [
|
|
{ subject: SELF, kills: [kill(60000, 25000, SELF, 'enemy-1')], economy: { spent: 800, remaining: 0, weapon: '', loadoutValue: 800 } },
|
|
{ subject: 'enemy-1', kills: [kill(70000, 35000, 'enemy-1', 'ally-2')] },
|
|
],
|
|
},
|
|
// 킬 없는 라운드 (시간 초과) → 보간
|
|
{ roundNum: 1, roundResult: 'Round timer expired', winningTeam: 'Red', playerStats: [] },
|
|
{
|
|
roundNum: 2,
|
|
roundResult: 'Bomb defused',
|
|
winningTeam: 'Blue',
|
|
plantRoundTime: 40000,
|
|
defuseRoundTime: 80000,
|
|
bombPlanter: 'enemy-1',
|
|
bombDefuser: SELF,
|
|
plantSite: 'B',
|
|
playerStats: [{ subject: SELF, kills: [kill(330000, 20000, SELF, 'enemy-1'), kill(331000, 21000, SELF, 'enemy-1')] }],
|
|
},
|
|
];
|
|
return {
|
|
matchInfo: { matchId: 'm-0001', mapId: ASCENT, gameStartMillis: gameStart, gameLengthMillis: 420000, queueID: 'competitive', gameMode: '/Game/GameModes/Bomb/BombGameMode.BombGameMode_C', isCompleted: true },
|
|
players,
|
|
teams: [
|
|
{ teamId: 'Blue', won: true, roundsWon: 2 },
|
|
{ teamId: 'Red', won: false, roundsWon: 1 },
|
|
],
|
|
roundResults,
|
|
};
|
|
}
|