Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Cowtastic Cafe

A small game about a Barista which wants to grow big! · By Noa3, Preggopixels

Seed bug

A topic by midiconch created Jul 30, 2023 Views: 699
Viewing posts 1 to 1

As posted before, I can't get the rng seed feature to work.

I've posted a video of me replicating the bug to redgifs (wasn't sure where else to upload it).

As you can see, I start the game twice with the seed "1000", and the first drink orders, events, dialogue lines and customers are totally different. [You can't see it in the video because of my wide monitor, but the first time the game starts I got a money event, and not the second time.]

https://www.redgifs.com/watch/roughrosybrownpronghorn

It looks like the seed the user enters is stored in a variable, but that variable is never used to seed the rng. Or maybe that it does, but then gets overwritten by the rng being seeded with something else (current epoch time?) as the game starts so it doesnt matter.