[0.16.11.0] Confirmation message to leave slot machine sometimes is missing machine name

Summary

At times, the message to confirm leaving the current machine you are at simply says “Are you sure you want to leave ?” with the space before the question mark being a spot where the machine’s name should be. Other times it will show up.

Steps to reproduce

  1. Go to the casino and hit your “Interact/Use” key to play at a machine.
  2. Hit your Leave Machine/Item key.

What I expected to happen

I expect the dialog to say, for example “ARE YOU SURE YOU WANT TO LEAVE TRIPLE DIAMONDS?”

What happened

The dialog says “ARE YOU SURE YOU WANT TO LEAVE ?”

Extra notes

It appears that this only happens when you attempt to leave the machine for the first time. If you request to leave the machine, click Cancel and then hit the Leave Machine button again, this time and all subsequent times, it will show the name.

This also happens if you interact with the machine, leave, and then return to the very same machine (not same type, but same specific machine) during the session.

My guess is that the dialog builder is being called with a string that is meant to besprintf()'d with the machine name, but the dialog builder is already using that string and the sprintf() happens after, and at that point it’s too late to set that string with the machine name, but subsequent calls use the correctly formatted string.

That or the cached data was not yet loaded.

Either way, something isn’t being set in time for the text in the dialog to reflect the name of the machine.

1 Like

Bumping because this still happens in 0.13.5.0 and it feels like it should be a simple fix even if it’s so low of priority.

1 Like

Still broke. It’s the lowest of low priorities though.