How currentlypending/beatsaberap works
BeatSaberAP is a Beat Saber client mod that gates available songs through an Archipelago session. Players open its menu, enter connection details, connect, and then play unlocked maps; cleared eligible maps report locations, while failures can send DeathLink. The mod also processes .apbs playlist archives and builds an index of available levels. The graph reflects sampled source and README capabilities; some session and progression internals are only partially excerpted, and LockHooks’ apparent gameplay hooks are commented out.
Main entry points: APConnection.cs Session and item progression · ArchipelagoLevelIndex.cs Level index · BeatSaberAP.cs Plugin lifecycle · PlaylistFilterHooks.cs Unlocked map filtering
Components 17
Mod startup
- Plugin lifecycle
Source/BeatSaberAP.cs - Dependency bindings
Source/InjectInstaller.cs - Main-thread dispatcher
Source/MainThreadDispatcher.cs
Archipelago session
- Session and item progression
Source/Archipelago/APConnection.cs - DeathLink handling
Source/Archipelago/Deathlink.cs
Songs and progression
- Level index
Source/Archipelago/ArchipelagoLevelIndex.cs - Playlist archive handler
Source/ApbsHandler.cs - Unlocked map filtering
Source/Hooks/PlaylistFilterHooks.cs - Gameplay event hooks
Source/Hooks/EventHooks.cs - Campaign lock hooks
Source/Hooks/LockHooks.cs
Player interface
- Connection settings
Source/UI/ArchipelagoViewController.cs - Menu button
Source/UI/MenuButtonManager.cs - Connection screen flow
Source/UI/ArchipelagoFlowCoordinator.cs
Other components
- Player
- Archipelago session service
- Beat Saber levels
- Playlist files
Connections 17
- Player → Menu button: opens
README.md - Menu button → Connection screen flow: presents
Source/UI/MenuButtonManager.cs - Connection screen flow → Connection settings: displays
Source/UI/ArchipelagoFlowCoordinator.cs - Connection settings → Session and item progression: connects
Source/UI/ArchipelagoViewController.cs - Session and item progression → Archipelago session service: exchanges session data
Source/Archipelago/APConnection.cs - Plugin lifecycle → Dependency bindings: installs bindings
Source/BeatSaberAP.cs - Plugin lifecycle → Level index: initializes
Source/BeatSaberAP.cs - Plugin lifecycle → Main-thread dispatcher: creates
Source/BeatSaberAP.cs - Level index → Beat Saber levels: indexes levels
Source/Archipelago/ArchipelagoLevelIndex.cs - Level index → Playlist archive handler: starts processing
Source/Archipelago/ArchipelagoLevelIndex.cs - Playlist archive handler → Playlist files: extracts playlists
Source/ApbsHandler.cs - Unlocked map filtering → Level index: reads level index
Source/Hooks/PlaylistFilterHooks.cs - Unlocked map filtering → Session and item progression: filters by unlocks
Source/Hooks/PlaylistFilterHooks.cs - Gameplay event hooks → Session and item progression: reports completions
Source/Hooks/EventHooks.cs - Gameplay event hooks → Level index: checks tracked levels
Source/Hooks/EventHooks.cs - Session and item progression → DeathLink handling: supports
- Campaign lock hooks → Session and item progression: checks unlocks