Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of food items bought (and assuming other items) resets after hitting max #21859

Open
astraylife1 opened this issue Apr 21, 2024 · 2 comments
Labels
bug Something went wrong.

Comments

@astraylife1
Copy link

Operating System

MacOS

OpenRCT2 build

OpenRCT2, v0.4.10 (447805c on develop)

Base game

RollerCoaster Tycoon 2

Area(s) with this issue?

The bug also exists in the original game (RCT2/RCTC)

Describe the issue

Not sure what the upper limit is for food, my guess is 999. But I have a guest who claims to have spent $2400 on 38 items of food. All food is priced at less than $3 so that is not possible. I am guessing the guest has probably purchased 1,037 items. Not sure what the limit is but it appears this issue also applies to drinks and souvenirs. Rides at least stop counting after 255 but it seems the other items roll over at some point.

Steps to reproduce

Guest enters park
Purchases food items over many years
At some point the number rolls over and starts counting again

Attachments

Guest
@astraylife1 astraylife1 added the bug Something went wrong. label Apr 21, 2024
@Gymnasiast
Copy link
Member

Gymnasiast commented Apr 21, 2024

The value is written to an unsigned 8-bit integer, meaning the largest value it can hold is 255. At 256, it rolls over to 0. So your guest will have bought 294 items of food.

This is essentially the same issue as #21333 , except it doesn’t seem to protect against rollover here (as you already mentioned).

@Basssiiie
Copy link
Member

Basssiiie commented Apr 21, 2024

It's still possible the guest bought over a 1000 food items, but that the counter already rolled over 4 times by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something went wrong.
Projects
None yet
Development

No branches or pull requests

3 participants