# Multiplayer races from free roam, the route's proof (joining side, with
# mprace_trip_host.txt): a saved career's free roam -> pause, Quit -> the main
# menu -> LAN, the host's server -> Select Car, the Career category -> Lobby,
# Refresh, Join Game -> Ready -> race -> the results -> back.  Dumps as the
# host's.
0     bot on
+0    waitroam 6000
+0    bot off
+0    roam smsauto on
+600  careerlist
+0    mark car x:0x863480
+0    peek 0x863480 1
+0    peek 0x83aab8 3
+0    memdump 0x85ad40 0x8880 /save/c0.bin
+0    memdump 0x83a9e0 0xab4c /save/p0.bin
+0    log TRIP quit to the main menu
+0    tap ESCAPE
+0    waitfe UI_pause.fng 600
+120  tap RIGHT                       # Save (the car stands: not greyed out)
+40   tap RIGHT
+40   tap RIGHT
+40   tap RIGHT
+40   tap RIGHT
+60   tap RETURN                      # Quit
+0    waitfe UI_InGameDialog.fng 600
+60   tap LEFT
+30   tap RETURN                      # Yes
+0    waitfe UI_Main.fng 3000
+300  memdump 0x85ad40 0x8880 /save/c1.bin
+0    memdump 0x83a9e0 0xab4c /save/p1.bin
+0    log TRIP LAN
+0    tap LEFT
+60   tap LEFT
+60   tap LEFT
+60   tap LEFT
+60   tap RIGHT
+60   tap RIGHT
+60   tap RIGHT
+60   tap RETURN
+15000ms log list
+0    tap DOWN
+60   tap RETURN                      # the first server
+0    waitfng UI_PC_LAN.fng 900
+30   tap BACK
+10   tap BACK
+10   tap BACK
+10   tap BACK
+30   type JOINMR
+60   tap RETURN
+0    waitfng UI_OLMAIN.fng 1500
+300  tap RIGHT
+60   tap RETURN                      # Select Car
+0    waitfng UI_OLCarSelect.fng 900
+180  peek 0x83aac0 1
+0    click 0.570 0.069               # the category's left arrow: Career
+120  peek 0x83aac0 1
+0    tap RETURN
+120  tap LEFT
+30   tap RETURN                      # Yes, race with this vehicle
+120  tap RETURN
+0    waitfng UI_OLMAIN.fng 900
+0    peek 0x83aab8 3
+0    expect x:0x83aab8 == @car
+120  tap LEFT
+60   tap RETURN                      # Lobby
+5000ms log lobby
+0    tap RIGHT
+40   tap RIGHT
+60   tap RETURN                      # Refresh
+3000ms log join-game
+0    tap LEFT
+60   tap RETURN                      # Join Game
+0    waitfng PC_OL_GameRoom.fng 900
+300  log ready
+0    click 0.311 0.172               # Ready
+0    waitmem 0x008654a4 6 30000
+0    log race-loaded
+0    memdump 0x85ad40 0x8880 /save/c2.bin
+0    memdump 0x83a9e0 0xab4c /save/p2.bin
+0    autopilot on 6000
+0    log race-start
+0    waitfng UI_PostRaceResults.fng 30000
+0    log results
+0    memdump 0x85ad40 0x8880 /save/c3.bin
+0    memdump 0x83a9e0 0xab4c /save/p3.bin
+3000ms tap RETURN                   # Continue: the LAN Lobby
+0    waitfng PC_OL_Lobby.fng 1500
+600  dump lobby_back
+0    tap ESCAPE                      # LAN Main
+0    waitfng UI_OLMAIN.fng 900
+300  dump lanmain_back
+0    tap ESCAPE                      # "exit LAN mode?" (the host: "You are hosting a LAN server ...")
+240  dump leave
+0    tap LEFT
+40   tap RETURN                      # Yes
+0    waitfe UI_Main.fng 3000
+300  dump main_back
+0    memdump 0x85ad40 0x8880 /save/c4.bin
+0    memdump 0x83a9e0 0xab4c /save/p4.bin
+0    log TRIP back to the career
+0    tap LEFT
+60   tap LEFT
+60   tap LEFT
+60   tap LEFT
+60   dump main_career
+0    tap RETURN                      # Career
+0    bot on                          # Resume Career, the crib, Return to Explore Mode
+0    waitroam 6000
+0    bot off
+600  careerlist
+0    peek 0x863480 1
+0    dump roam_back
+0    memdump 0x85ad40 0x8880 /save/c5.bin
+0    memdump 0x83a9e0 0xab4c /save/p5.bin
+0    log TRIP END
+60   quit
