본문 바로가기

전체 글79

[게임 데이터 분석 #4-1] TELEMETRY API를 활용해 판별 MAP 이미지 위에 이동 경로 그리기 Python을 기반으로 개발을 진행하였습니다. 1. TELEMETRY 정보 불러오기 get_img 함수를 실행하면 이름을 입력하라고 합니다. 그때 user_name(닉네임)을 입력하면 해당 유저의 이동경로를 판별로 확인할 수 있습니다. def get_img(username, api_key, header): url = f'https://api.pubg.com/shards/kakao/players?filter[playerNames]={username}' response = requests.get(url, headers=header) json_data = response.json() player_match_ids_df = pd.DataFrame(json_data['data'][0]['relationships'.. 2023. 6. 25.
[게임 데이터 분석 #4] TELEMETRY API를 활용해 MAP 이미지 위에 이동 경로 그리기 Python을 기반으로 개발을 진행하였습니다. 1. TELEMETRY API 불러오기 TELEMETRY API에 대한 정보는 아래의 링크에서 확인할 수 있습니다. https://documentation.pubg.com/en/telemetry.html Telemetry — pubg 1.0 documentation Telemetry Telemetry provides further insight into a match. This is where you will find the Telemetry Events that occur throughout the match. In order to get the telemetry data, you will first need to get the link for it fro.. 2023. 6. 19.
Python matplotlib animation Runtime error : ffmpeg 해결하기 1. ffmpeg Runtime error 해결하기 [게임 데이터 분석 #3] chicken-dinner를 리플레이 애니메이션 출력하기에서 코드를 실행하게 되면 Runtime error가 발생합니다. animation을 출력하기 위해서는 ffmpeg를 반드시 설치해야 코드를 정상적으로 실행 할 수 있습니다. 위의 오류는 matplotlib와 관련된 오류라는 것을 찾아 볼 수 있습니다.(오류 코드 캡쳐하지 못함) 처음에는 matplotlib을 import하지 않았는데 왜 이런 에러가 발생하는건가 해서 matplotlib을 다운로드 하고 다시 실행시켰습니다. 하지만 똑같은 오류가 계속적으로 발생해 검색해보니 ffmpeg를 다운 받아야지만 실행 할 수 있다는 것을 알 수있었습니다. 2. ffmpeg 설치하기:.. 2023. 6. 15.
[게임 데이터 분석 #3] chicken-dinner를 활용한 리플레이 애니메이션 출력하기 Python을 기반으로 개발을 진행하였습니다. 1. chicken-dinner 모듈을 사용해서 리플레이 애니메이션 출력하기 chicken-dinner 모듈에 대한 공식 문서는 아래의 링크를 참고하기길 바랍니다. https://chicken-dinner.readthedocs.io/en/latest/index.html Chicken Dinner — Chicken Dinner documentation © Copyright 2018-2019, Christopher Flynn Revision 705f1dae. chicken-dinner.readthedocs.io 우선 chicken-dinner 모듈을 사용하기 위해선 설치를 해야합니다. pip install chicken-dinner 설치가 완료 되었다면 impo.. 2023. 6. 14.