Skip to content

raidboss: r12n Combatant Memory netregex matches does not match #1012

@Legends0

Description

@Legends0

Description

Netreges use matches.pairPosX and matches.pairPosY, but raidboss trigger code is using matches.x and matches.y

Additional Details / Steps to Reproduce

Using code:

    {
      id: 'R12S CombatantMemory Add Tracker',
      // Used for Slaughtershed Stack/Spreads spots
      // 1EBF29 are the blobs
      type: 'CombatantMemory',
      netRegex: {
        id: '4[0-9A-Fa-f]{7}',
        change: 'Add',
        pair: [{ key: 'BNpcID', value: '1EBF29' }],
        capture: true,
      },
      infoText: (_data, matches, output) => {
        const x = parseFloat(matches.x ?? '0')
        const y = parseFloat(matches.y ?? '0')
        return output.text!({ x: x, y: y });
      },
      run: (data, matches) =>
        data.actorPositions[matches.id] = {
          x: parseFloat(matches.x ?? '0'),
          y: parseFloat(matches.y ?? '0'),
          heading: parseFloat(matches.heading ?? '0'),
        },
      outputStrings: {
        text: {
          en: 'Blob Found at (${x}, ${y})',
        },
      },
    },

R12N has basically the same code for creating the actorPosition, but based off this, the raid Emulator always results in the 0 values since those matches do not exist.

Cactbot Module

Raid Emulator

Configuration Info

N/A

Log & Screenshots

Image

Confirmation

  • I reviewed Common Issues and Workarounds and verified that my settings are correct.
  • I used the search function to confirm this issue doesn't already exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-reviewAwaiting review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions