Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
This repository was archived by the owner on May 3, 2026. It is now read-only.

ModifierGroup's getPath function returns null when called in HScript #67

@SilliesOfAutumn

Description

@SilliesOfAutumn

(Codename Engine issue, not sure if users from other engines experienced the same issue)

When trying to get the path vector for the modifiergroup for any currently active manager, no matter the input for the function, it throws a null object reference error

my current goal is to get the strum receptor positions after the effects of the modchart are applied to them, since codename keeps their position static with the default strumline locations

current code snippet (0's in both lane and player as an example):

//m is the manager

var vector = new Vector3D();

var fields:ArrowData = {
     hitTime: Conductor.songPosition,
     distance: 0,
     lane: 0,
     player: 0,
     isTapArrow: true
};

trace(m.playfields[0].modifiers.getPath(vector, fields, 0, false, true));

i have also tried calling from the current manager instance like this

trace(Manager.instance.playfields[0].modifiers.getPath(vector, fields, 0, false, true));

both trace statements throw with a null object reference error instead of just tracing "null" or nothing

(side note, i rarely use markdown for github comments, so im hoping these code blocks show up correctly, sorry if they don't and it makes this look confusing.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodenameuses codename engine adapter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions