# Multiplayer races from free roam, an open race's card: the lobby (roam_game.c mp_*), host side,
# with mprace_lobby_b.txt.  Both from the same career save: A jumps onto a
# multiplayer-only spot (S2_SPON_DRIFT_2 in frikand's stage 2: a sponsor race
# the contract has no place for), opens a lobby there with Enter, waits for B
# to join, starts it (Enter: the countdown, then the trip, mprace.c).
#   node web/tools/roam-pair.mjs --base <server> --seed <save tree> --a Ann:mprace_lobby_a.txt --b Bob:mprace_lobby_b.txt
#        --env NFSU2_ROAM_ROOM=<r>
0     bot on
+0    waitroam 6000
+0    bot off
+0    roam smsauto on
+0    roam mp waitpeers 1 12000
+600  roam mp spots 3
+0    careergo ${MP_RACE}
+300  roam mp spots 2
+0    dump spot_line
+0    log SHOT spot_line
+0    log LOBBY open
+0    tap RETURN                      # Engage: the race's card
+0    waitfng UI_EngageRaceDialog.fng 900
+120  dump card
+0    log SHOT card
+0    tap LEFT
+30   tap RETURN                      # Accept: Solo or Multiplayer?
+0    waitfng IG_GenericDialog_MED.fng 600
+60   dump question
+0    log SHOT question
+0    roam mp ui
+0    tap LEFT
+30   tap RETURN                      # the left button: Multiplayer (Join) (Solo, the right one, has the focus)
+120  dump lobby_line
+0    log SHOT lobby_line
+60   roam mp lobby
+0    roam mp waitlobby 2 6000
+60   roam mp lobby
+0    log LOBBY start
+0    tap RETURN
+0    log LOBBY trip
+0    waitexpr i:0x850078 == 512 6000
+0    waitmem 0x008654a4 6 20000
+0    log LOBBY race
+0    autopilot on 6000
+0    roam mp waittrip 40000
+30   log SHOT note
+0    careerlist
+0    roam mp lobby
+0    memdump 0x85ad40 0x8880 /save/c9.bin
+0    log LOBBY DONE
+60   quit
