Multiple Cash Registers Fixes

Changes the logic used to decide which till to send a Sim to.

Adds a factor to the distance calculated for tills on a different level to the Sim. (Should no longer see a Sim walk past a till on the same level just because the "nearest" one is directly above them but two floors up!)

Once the nearest till is found, looks at all the tills in the same room and picks the one with least Sims currently queueing. In the event of a tie, pick one at random.

For example, if four Sims try to complete a purchase at the same time in a room with two tills, you should see queueing along the following lines

  • Sim A picks Till 1 or Till 2 at random (as both have 0 Sims in their queues)
  • Sim B will pick the other till
  • Sim C will pick Till 1 or Till 2 at random (as both have 1 Sim in their queues)
  • Assuming neither Sim A nor Sim B have completed their purchase, Sim D will pick the till that Sim C didn't

Note that you may see both Sim A and Sim B at the same till, if Sim A didn't start their interaction with it before Sim B started looking for a till to go to.


Conflicts

This mod changes and adds BHAV and STR# resources in the ShoppingRackGlobals (0x7FE10572) and CashRegisterGlobals (0x7FDE81DC) groups, so will conflict with any mod that changes/adds the same ones.

No known conflicts.


Simblr Links


Credits

  • Jo-TheNinjaKitty, TeaAddict and Nathaniel at Sims Crafters for the idea and testing.
  • The developers of SimPE.

Files