Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All players have same team indexes. #11

Closed
developer-ken opened this issue Jan 21, 2023 · 6 comments
Closed

All players have same team indexes. #11

developer-ken opened this issue Jan 21, 2023 · 6 comments

Comments

@developer-ken
Copy link

All 10 players have the same team index. They should be seperated into 2 teams.

One example:

{
    "header":{
        "gameVersion":"Y7S4",
        "codeVersion":7338571,
        "timestamp":"2023-01-20T21:14:32Z",
        "matchType":{
            "name":"UNRANKED",
            "id":12
        },
        "map":{
            "name":"KANAL",
            "id":1460220617
        },
        "recordingPlayerID":"16470266420671064662",
        "recordingProfileID":"5305afe0-0522-4c97-8d99-3f49911fac78",
        "additionalTags":"423855620",
        "gamemode":{
            "name":"BOMB",
            "id":327933806
        },
        "roundsPerMatch":6,
        "roundsPerMatchOvertime":3,
        "roundNumber":0,
        "overtimeRoundNumber":0,
        "teams":[
            {
                "name":"你方队伍",
                "score":0
            },
            {
                "name":"敌人",
                "score":1
            }
        ],
        "players":[
            {
                "id":"14364323565883972756",
                "profileID":"56aed88e-4377-47d1-a7e1-eb22ff11f803",
                "username":"h--hoo",
                "teamIndex":1,
                "heroName":38576460310,
                "alliance":4,
                "roleImage":39149215589,
                "roleName":"ELA",
                "rolePortrait":39149215613
            },
            {
                "id":"330586818339081656",
                "profileID":"e938e123-8f85-4037-8cbe-4c7a1b5356e6",
                "username":"WF030829",
                "teamIndex":1,
                "heroName":9147168387,
                "alliance":4,
                "roleImage":32822532301,
                "roleName":"FROST",
                "rolePortrait":27880782933
            },
            {
                "id":"14226176432092997577",
                "profileID":"5c6a0c73-af67-4aaa-bc65-262fbaef7bd4",
                "username":"EggZong",
                "teamIndex":1,
                "heroName":423855857,
                "alliance":4,
                "roleImage":1494825830,
                "roleName":"MUTE",
                "rolePortrait":27880706844
            },
            {
                "id":"10087852244609720090",
                "profileID":"2fccd99a-7e6d-4c85-b4bc-a4aef4aac10c",
                "username":"momnkke",
                "teamIndex":1,
                "heroName":350237839,
                "alliance":4,
                "roleImage":1494825836,
                "roleName":"ROOK",
                "rolePortrait":27880706877
            },
            {
                "id":"7319414423521281910",
                "profileID":"4017bf4e-8304-49f8-8eda-a9ec432dbe0a",
                "username":"tony_122203",
                "teamIndex":1,
                "heroName":350237879,
                "alliance":4,
                "roleImage":1326495671,
                "roleName":"BANDIT",
                "rolePortrait":27880706734
            },
            {
                "id":"",
                "profileID":"5305afe0-0522-4c97-8d99-3f49911fac78",
                "username":"dev_ken",
                "teamIndex":1,
                "heroName":0,
                "alliance":0,
                "roleImage":0,
                "roleName":"",
                "rolePortrait":0
            },
            {
                "id":"",
                "profileID":"30c2b6dd-bd40-47c3-9421-e2e26a2c08b5",
                "username":"twists.",
                "teamIndex":1,
                "heroName":0,
                "alliance":0,
                "roleImage":0,
                "roleName":"",
                "rolePortrait":0
            },
            {
                "id":"",
                "profileID":"6bc5e638-a3b1-4bfc-8378-52a6daddab21",
                "username":"Lry10Justin",
                "teamIndex":1,
                "heroName":0,
                "alliance":0,
                "roleImage":0,
                "roleName":"",
                "rolePortrait":0
            },
            {
                "id":"",
                "profileID":"488b3fdd-0e85-460a-b17a-031c73edc612",
                "username":"linijn",
                "teamIndex":1,
                "heroName":0,
                "alliance":0,
                "roleImage":0,
                "roleName":"",
                "rolePortrait":0
            },
            {
                "id":"",
                "profileID":"8397931b-139a-4f65-89e0-527955b8f126",
                "username":"xjy630",
                "teamIndex":1,
                "heroName":0,
                "alliance":0,
                "roleImage":0,
                "roleName":"",
                "rolePortrait":0
            }
        ],
        "gmSettings":[
            245225394808,
            245225394853,
            245225394902
        ],
        "playlistCategory":245225348548,
        "matchID":"28b72e2e-cb91-4565-a4c8-fdba2b6171a0"
    },
    "activityFeed":[
        {
            "type":"KILL",
            "username":"twists.",
            "target":"WF030829",
            "headshot":true
        },
        {
            "type":"KILL",
            "username":"dev_ken",
            "target":"h--hoo",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"dev_ken",
            "target":"EggZong",
            "headshot":true
        },
        {
            "type":"KILL",
            "username":"momnkke",
            "target":"Lry10Justin",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"momnkke",
            "target":"dev_ken",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"tony_122203",
            "target":"linijn",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"twists.",
            "target":"tony_122203",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"momnkke",
            "target":"twists.",
            "headshot":false
        },
        {
            "type":"KILL",
            "username":"WF030829",
            "target":"xjy630",
            "headshot":false
        }
    ]
}
@redraskal
Copy link
Owner

redraskal commented Jan 22, 2023

That is weird- can you perhaps send me the rec file on Discord redraskal#0001 or somewhere else?

@developer-ken
Copy link
Author

Actually this exists even in your example file oregon_quick_match_R01.json.
I guess "teamIndex" value should indicates the team this player is in. But now I am not so sure about this. Am I understanding this the wrong way?

@redraskal
Copy link
Owner

Actually this exists even in your example file oregon_quick_match_R01.json. I guess "teamIndex" value should indicates the team this player is in. But now I am not so sure about this. Am I understanding this the wrong way?

Sorry, I likely uploaded a slightly out of date example. I made a slight change to the teamIndex logic before pushing code and may have uploaded an example before this change. I cannot replicate your issue with any of my personal matches. "teamIndex" should refer to an index of teams from the header.

@developer-ken
Copy link
Author

I comfirmed my code is the latest version and go build it again.
Problem still exists.

{
    "header": {
        "gameVersion": "Y7S4",
        "codeVersion": 7338571,
        "timestamp": "2023-01-20T23:37:10Z",
        "matchType": {
            "name": "UNRANKED",
            "id": 12
        },
        "map": {
            "name": "SKYSCRAPER",
            "id": 276279025182
        },
        "recordingPlayerID": "16470266420671064662",
        "recordingProfileID": "5305afe0-0522-4c97-8d99-3f49911fac78",
        "additionalTags": "423855620",
        "gamemode": {
            "name": "BOMB",
            "id": 327933806
        },
        "roundsPerMatch": 6,
        "roundsPerMatchOvertime": 3,
        "roundNumber": 0,
        "overtimeRoundNumber": 0,
        "teams": [
            {
                "name": "你方队伍",
                "score": 0
            },
            {
                "name": "敌人",
                "score": 1
            }
        ],
        "players": [
            {
                "id": "13682706463927189713",
                "profileID": "6e29056f-fa58-4d76-a6f2-674d26ed90db",
                "username": "MCLIN76",
                "teamIndex": 1,
                "heroName": 38576461081,
                "alliance": 4,
                "roleImage": 39149215661,
                "roleName": "VIGIL",
                "rolePortrait": 39149215685
            },
            {
                "id": "6879975991084319650",
                "profileID": "a4e857b8-7156-4a3c-8eef-3ddaa92e11c2",
                "username": "MKAA99",
                "teamIndex": 1,
                "heroName": 9147168387,
                "alliance": 4,
                "roleImage": 32822532301,
                "roleName": "FROST",
                "rolePortrait": 27880782933
            },
            {
                "id": "4042975952041760787",
                "profileID": "8cb427e5-a9a1-4704-84a1-b7119cb5d3c2",
                "username": "LinHuHuaSao",
                "teamIndex": 1,
                "heroName": 423855917,
                "alliance": 4,
                "roleImage": 1494825824,
                "roleName": "CASTLE",
                "rolePortrait": 27880706756
            },
            {
                "id": "14169269887910087325",
                "profileID": "7a2a8609-3c07-4d51-8bee-7aaf012bbb62",
                "username": "TechMaxed",
                "teamIndex": 1,
                "heroName": 123464834988,
                "alliance": 4,
                "roleImage": 104189662215,
                "roleName": "CLASH",
                "rolePortrait": 104189662241
            },
            {
                "id": "8768849083717216249",
                "profileID": "90b6937f-c4f8-49bf-aa62-6484bb43e1bb",
                "username": "Chulucs",
                "teamIndex": 1,
                "heroName": 99407349245,
                "alliance": 4,
                "roleImage": 121604587892,
                "roleName": "ALIBI",
                "rolePortrait": 104189662084
            },
            {
                "id": "",
                "profileID": "5305afe0-0522-4c97-8d99-3f49911fac78",
                "username": "dev_ken",
                "teamIndex": 1,
                "heroName": 0,
                "alliance": 0,
                "roleImage": 0,
                "roleName": "",
                "rolePortrait": 0
            },
            {
                "id": "",
                "profileID": "30c2b6dd-bd40-47c3-9421-e2e26a2c08b5",
                "username": "twists.",
                "teamIndex": 1,
                "heroName": 0,
                "alliance": 0,
                "roleImage": 0,
                "roleName": "",
                "rolePortrait": 0
            },
            {
                "id": "",
                "profileID": "6bc5e638-a3b1-4bfc-8378-52a6daddab21",
                "username": "Lry10Justin",
                "teamIndex": 1,
                "heroName": 0,
                "alliance": 0,
                "roleImage": 0,
                "roleName": "",
                "rolePortrait": 0
            },
            {
                "id": "",
                "profileID": "158d8901-6ce9-42ef-941b-995c8cf0e348",
                "username": "caoimseng88888",
                "teamIndex": 1,
                "heroName": 0,
                "alliance": 0,
                "roleImage": 0,
                "roleName": "",
                "rolePortrait": 0
            },
            {
                "id": "",
                "profileID": "8397931b-139a-4f65-89e0-527955b8f126",
                "username": "xjy630",
                "teamIndex": 1,
                "heroName": 0,
                "alliance": 0,
                "roleImage": 0,
                "roleName": "",
                "rolePortrait": 0
            }
        ],
        "gmSettings": [
            245225394808,
            245225394853,
            245225394902
        ],
        "playlistCategory": 245225348548,
        "matchID": "5b2f52d4-4dc7-4e4e-8b49-66238e43c424"
    },
    "activityFeed": [
        {
            "type": "KILL",
            "username": "Chulucs",
            "target": "dev_ken",
            "headshot": true
        },
        {
            "type": "KILL",
            "username": "caoimseng88888",
            "target": "MKAA99",
            "headshot": true
        },
        {
            "type": "KILL",
            "username": "caoimseng88888",
            "target": "MCLIN76",
            "headshot": false
        },
        {
            "type": "KILL",
            "username": "Lry10Justin",
            "target": "twists.",
            "headshot": true
        },
        {
            "type": "KILL",
            "username": "Lry10Justin",
            "target": "Chulucs",
            "headshot": false
        },
        {
            "type": "KILL",
            "username": "LinHuHuaSao",
            "target": "Lry10Justin",
            "headshot": true
        }
    ]
}

Record file:
Match-2023-01-20_23-35-25-242-R01.zip

@redraskal
Copy link
Owner

Try the latest commit on main, sorry about the confusion

@developer-ken
Copy link
Author

Problem fixed. I appreciate your nice job and I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants