Skip to content

autosplitter seems to not accept conditions with values #12

Description

@Rasea-M

Failed to load autosplitter config: Invalid autosplitter config in /path/to/autosplitter.json: i128 is not supported at line 10 column 59

I don't have the wildest idea about rust or why it is that this error occurs but playing around with what seems to be the culprit piece of code, and locally by changing it to i64 and casting it to i128 it seems to work (or maybe it will once I fix the os error 5 I'm getting, which just seems to be that GameThread is not the correct process name...)

pub enum Condition {
Equals { value: i128 },
NotEquals { value: i128 },
GreaterThan { value: i128 },
LessThan { value: i128 },
Increased,
Decreased,
Changed,
}

{
  "target": { "kind": "process_memory", "process_name": "GameThread" },
  "poll_interval_ms": 33,
  "watches": [
    {
      "name": "is_paused",
      "address": "0x8A3CD80C",
      "value_type": "u8",
      "condition": { "kind": "equals", "value": "0x1" },
      "action": "start"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions