abstreet/data/regen.sh
Dustin Carlino 6a5366292f Make editing maps with transit stops a little more resilient. #372
Transit stop IDs previously were tied to LaneIDs, but those can easily
change with edits to the number of lanes on a road. We still may need to
re-snap transit stops (if the driving position or sidewalk changes), but
this prevents one more common type of problem.

This requires regenerating everything, since it's a binary schema
change...
2022-02-17 20:18:24 +00:00

18 lines
626 B
Bash
Executable File

#!/bin/bash
# TODO It's probably more useful to now manually run commands from this file.
set -e
rm -fv data/input/us/seattle/raw_maps/huge_seattle.bin data/system/us/seattle/maps/huge_seattle.bin data/input/us/seattle/popdat.bin
RUST_BACKTRACE=1 cargo run --release --bin cli --features importer/scenarios -- regenerate-everything
# Or more efficiently:
# ./target/release/cli regenerate-everything-externally
# If a map changes that has external JSON scenarios, enable this!
# importer/external_scenarios.sh
RUST_BACKTRACE=1 cargo run --release --bin game -- --prebake
RUST_BACKTRACE=1 cargo run --release --bin tests