civilnetworks / bug-reports

File issues for bugs here
4 stars 3 forks source link

CC l Detaching and reattaching a Trailer during a Truck mission resets the Deliver objective #737

Open MayPeX0 opened 4 years ago

MayPeX0 commented 4 years ago

Description

When a Trucker starts a Truck mission that involves a Trailer, if the user reaches the objective AFTER attaching their trailer and then detaches the trailer at any point during the "Return truck" objective, the mission objectives will reset.

We are currently not tracking correctly if a Trucker has completed the Objective where they drive out with their trailer. The issue is relatively edge case as not many folks make full use of the cruise/detach trailer keybind.

Bug Reduction

Steps to Reproduce

  1. Ensure you are the Trucker job
  2. Start a Trucker mission
  3. Ensure the Trucker mission involves you connecting to a trailer, if not repeat step 2 till this is the case
  4. Enter your cab
  5. Connect your trailer
  6. Complete the next objective
  7. When your objective is to return the truck, disconnect the trailer ("B" key by default)
  8. Reconnect the trailer
  9. Observe issue, you have to reach the first delivery point again

Expected Behavior The Trucker mission updates correctly that the player has already completed the first stage of the delivery and should be instructed to return the truck to the depot.

Actual Behavior The Trucker mission essentially resets and requires the user to complete all objectives of the mission again.

Evidence

https://www.youtube.com/watch?v=dAnBwqXD38Y