Bug: error finishing disruption lab conquest #2768

Closed
opened 2025-09-10 02:07:57 -07:00 by AlexisinGit · 3 comments
Contributor

Disruption lab conquest this week requires clearing at 8 concuits. Finishing it by 4+4 will cause a bug.
Where the manifest SwarmAssassinationRewards[1] is undefined, the rotataion mismatches droptable.

2025-09-10T16:31:00:168 [0.1.0] debug:  generating random mission rewards {
  rewardManifests: [
    '/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards'
  ],
  rotations: [ 1 ]
}
2025-09-10T16:31:00:169 [0.1.0] error:  TypeError: Cannot read properties of undefined (reading 'length') while processing /api/missionInventoryUpdate.php request
    at getRewardAtPercentage (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\rngService.ts:36:14)
    at SRng.randomReward (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\rngService.ts:137:16)
    at getRandomRewardByChance (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:149:25)
    at <anonymous> (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:2179:30)
    at Array.forEach (<anonymous>)
    at getRandomMissionDrops (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:2170:25)
    at addMissionRewards (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:1172:46)
    at missionInventoryUpdateController (D:\GithubRepos\SpaceNinjaServerAlexFork\src\controllers\api\missionInventoryUpdateController.ts:96:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-09-10T16:31:00:170 [0.1.0] http:   POST /api/missionInventoryUpdate.php?accountId=689b8aebb1efe66d1ba4a63e&nonce=5508721298416621&ct=MSI&xpBasedLevelCapDisabled=1 500 78.191 ms - -
    "/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards": [
        [
            {
                "type": "/Lotus/StoreItems/Types/PickUps/Credits/10000Credits",
                "itemCount": 1,
                "probability": 0.3939
            },
            {
                "type": "/Lotus/StoreItems/Upgrades/Mods/FusionBundles/UncommonFusionBundle",
                "itemCount": 18,
                "probability": 0.2121
            },
            {
                "type": "/Lotus/StoreItems/Types/Gameplay/EntratiLab/Resources/EntratiLabMiscItemA",
                "itemCount": 150,
                "probability": 0.0909
            },
            {
                "type": "/Lotus/StoreItems/Types/Gameplay/EntratiLab/Resources/EntratiLabMiscItemB",
                "itemCount": 15,
                "probability": 0.0606
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionLavosPrimeABronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeCBronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionYareliPrimeCBronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeBBronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeDBronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionSevagothPrimeCBronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionYareliPrimeABronze",
                "itemCount": 1,
                "probability": 0.0303
            },
            {
                "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeABronze",
                "itemCount": 1,
                "probability": 0.0303
            }
        ]
    ],
    

However if finished by 3+3+2 (3 waves) there would be no bug.

2025-09-10T16:52:31:346 [0.1.0] debug:  generating random mission rewards {
  rewardManifests: [
    '/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards'
  ],
  rotations: [ 0 ]
}
Disruption lab conquest this week requires clearing at 8 concuits. Finishing it by 4+4 will cause a bug. Where the manifest SwarmAssassinationRewards[1] is undefined, the rotataion mismatches droptable. ``` 2025-09-10T16:31:00:168 [0.1.0] debug: generating random mission rewards { rewardManifests: [ '/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards' ], rotations: [ 1 ] } 2025-09-10T16:31:00:169 [0.1.0] error: TypeError: Cannot read properties of undefined (reading 'length') while processing /api/missionInventoryUpdate.php request at getRewardAtPercentage (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\rngService.ts:36:14) at SRng.randomReward (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\rngService.ts:137:16) at getRandomRewardByChance (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:149:25) at <anonymous> (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:2179:30) at Array.forEach (<anonymous>) at getRandomMissionDrops (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:2170:25) at addMissionRewards (D:\GithubRepos\SpaceNinjaServerAlexFork\src\services\missionInventoryUpdateService.ts:1172:46) at missionInventoryUpdateController (D:\GithubRepos\SpaceNinjaServerAlexFork\src\controllers\api\missionInventoryUpdateController.ts:96:15) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) 2025-09-10T16:31:00:170 [0.1.0] http: POST /api/missionInventoryUpdate.php?accountId=689b8aebb1efe66d1ba4a63e&nonce=5508721298416621&ct=MSI&xpBasedLevelCapDisabled=1 500 78.191 ms - - ``` ``` "/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards": [ [ { "type": "/Lotus/StoreItems/Types/PickUps/Credits/10000Credits", "itemCount": 1, "probability": 0.3939 }, { "type": "/Lotus/StoreItems/Upgrades/Mods/FusionBundles/UncommonFusionBundle", "itemCount": 18, "probability": 0.2121 }, { "type": "/Lotus/StoreItems/Types/Gameplay/EntratiLab/Resources/EntratiLabMiscItemA", "itemCount": 150, "probability": 0.0909 }, { "type": "/Lotus/StoreItems/Types/Gameplay/EntratiLab/Resources/EntratiLabMiscItemB", "itemCount": 15, "probability": 0.0606 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionLavosPrimeABronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeCBronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionYareliPrimeCBronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeBBronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeDBronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionSevagothPrimeCBronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionYareliPrimeABronze", "itemCount": 1, "probability": 0.0303 }, { "type": "/Lotus/StoreItems/Types/Game/Projections/T2VoidProjectionCalibanPrimeABronze", "itemCount": 1, "probability": 0.0303 } ] ], ``` However if finished by 3+3+2 (3 waves) there would be no bug. ``` 2025-09-10T16:52:31:346 [0.1.0] debug: generating random mission rewards { rewardManifests: [ '/Lotus/Types/Game/MissionDecks/EntratiMissionRewards/SwarmAssassinationRewards' ], rotations: [ 0 ] } ```
Sainan added the
bug
label 2025-09-10 10:37:52 -07:00
Owner

Quite curious, but the droptable definitely only has Rotation A, so unless I'm missing something, I guess we really do need to just clip it here.

Quite curious, but the droptable definitely only has Rotation A, so unless I'm missing something, I guess we really do need to just clip it here.
Owner

I'm confused why it would've done this, tho. Could you please provide the full mission log?

I'm confused why it would've done this, tho. Could you please provide the full mission log?
Sainan added the
question
label 2025-09-10 10:44:14 -07:00
Author
Contributor

here comes the full log.

(yes this is super weird don't know why it does that

here comes the full log. (yes this is super weird don't know why it does that
Sainan added
pr'd for
and removed
question
labels 2025-09-11 01:32:28 -07:00
Sign in to join this conversation.
No description provided.