Shared data and utilities for Borderlands 2 Archipelago implementation.
This repository contains:
- Game data (regions, bosses, locations, collectibles)
- Data loading utilities
- Common constants and enums
This repository is designed to be used as a git submodule in both:
bl2-apworld
- Archipelago APWorld implementationbl2-ap-mod
- Borderlands 2 SDK mod
bl2_data/
__init__.py # Package initialization
data_loader.py # Data loading functions
constants.py # Game constants
data/
bl2_data.json # Game data (regions, bosses, locations)
# In your project directory
git submodule add <repository-url> shared
git submodule update --init --recursive
from shared.bl2_data.data_loader import get_all_locations, get_region_connections
# Load all game locations
locations = get_all_locations()
# Get region connection data
connections = get_region_connections()
- Edit
data/bl2_data.json
- Test changes with both APWorld and mod
- Commit and tag new version
- Update submodule in dependent projects