Skip to content

Bug: ModuleInformation.UsingExpression and ModuleInformation.UsingEye are allways false #323

Description

@Jeka8833

Reproduction:

using Microsoft.Extensions.Logging;
using VRCFaceTracking;
using VRCFaceTracking.Core.Library;
using VRCFaceTracking.Core.Params.Expressions;

namespace TestModule;

public class TestModule : ExtTrackingModule
{
    public override (bool SupportsEye, bool SupportsExpression) Supported => (true, true);

    public override (bool eyeSuccess, bool expressionSuccess) Initialize(bool eyeAvailable, bool expressionAvailable)
    {
        var state = (eyeAvailable, expressionAvailable);

        ModuleInformation.Name = "Example Module";

        return state;
    }

    public override void Update()
    {
        Logger.LogInformation("UsingExpression: " + ModuleInformation.UsingExpression + " UsingEye: " + ModuleInformation.UsingEye);

        Thread.Sleep(1000);
    }

    public override void Teardown()
    {
    }
}

Expected Behavior
When the module is the only one enabled and supports both eye and expression parameters, the log output in the Update() loop should be:

UsingExpression: True UsingEye: True

Actual Behavior
The log output consistently shows both properties as false:

UsingExpression: false UsingEye: false

Environment

  • VRCFT Version: 5.4.0.1 (Steam Release)
  • Operating System: Windows 11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions