Skip to content

verstatx/ror2-autosplitter-rustasr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Risk of Rain 2 WASM autosplitter

A cross-platform Risk of Rain 2 Autosplitter/Load Remover. Uses the livesplit-core auto-splitting-v2 API. Adapted from the RiskOfRain2.asl. Rewritten in rust to use the ASR crate with mono runtime support.

Works with LSO and regular LiveSplit via the autosplitting runtime component.

Building

Make sure you have the wasm32 target installed:

rustup target add wasm32-unknown-unknown

Then build using:

cargo build --release

Usage

Place or link the autosplitter from target/wasm32-unknown-unknown/ror2_autosplitter_rustasr.wasm to any convenient location, then configure livesplit to use the wasm file. Alternatively, download the pre-built wasm files from the release section.

Current limitations:

  • Configuration support is still spotty in LSO, so recompilation may be necesarry for settings to persist.
    • To change settings, open src/lib.rs and find the struct AutoSplitterSettings / struct GameSettings sections.
    • Change the default macro to the desired value eg.
    /// Split when leaving Bazaar Between Time
    #[default = true]
    bazaar: bool,

becomes

    /// Split when leaving Bazaar Between Time
    #[default = false]
    bazaar: bool,

to disable autosplitting when leaving Bazaar.

  • Uses workarounds for certain features that may already work upstream.
  • Due to a limitation in the runtime, Game Time is not recorded for the first split, and the split time is not shown.

About

Risk of Rain 2 autosplitter using the rust-exclusive LiveSplitOne auto splitting runtime

Resources

Stars

Watchers

Forks

Contributors

Languages