2 ms·
It's always interesting to me how people find bad math bugs in the RNG in old games that have been deconstructed. You think back to when the game was new, and
by hinkley 3y ago
It's always interesting to me how people find bad math bugs in the RNG in old games that have been deconstructed.
You think back to when the game was new, and you remember talking to people who seemed to be superstitious about the game behavior. And it turns out they were right. The random numbers were NOT fair, and sometimes punitively so.
I think I heard there was a bug in UO where users with certain ranges of low user ID numbers always lost certain rolls because of a bug that unfairly sorted them in the case of a tie.
- poizan42 3y agoMaybe you are recalling the "Wi Flag" bug in Asheron's Call? https://asheron.fandom.com/wiki/Wi_Flag https://asheron.fandom.com/wiki/Wi_Flag That was caused by using a too small range for the rng call so the players with the lowest IDs present always would be targeted by mobs
- topherclay 3y agoInteresting write up but maybe Iissed where the name comes from. Is "Wi" the name of a monster or a location in the game or something?
- poizan42 3y agoIt's named after one the the affected players, "Wi", who was very vocal about the issue. See these comments from a discussion here last year: * https://news.ycombinator.com/item?id=34742915 https://news.ycombinator.com/item?id=34742915 * https://news.ycombinator.com/item?id=34744394 https://news.ycombinator.com/item?id=34744394
- FirmwareBurner 3y ago>It's always interesting to me how people find bad math bugs in the RNG in old games that have been deconstructed. Yes, but so what? The point of videogames is to be fun, not have a true random RNG. Often such small bugs in the code were part of the gameplay and finding and exploiting them was part of the fun/competition. And since games are usually rushed out the door to meet the November pre-Chrismas sale bonanza, everything that's good enough gets shipped. Making your RNG even better won't increase sales.
- mysterydip 3y agoTo your point, DOOM just used an array of "random" numbers, going to the next one each time a number was needed: https://www.reddit.com/r/ProgrammerHumor/comments/3bhvuj/how_random_numbers_are_generated_in_classic_doom/ https://www.reddit.com/r/ProgrammerHumor/comments/3bhvuj/how... It wasn't even a complete distribution of the numbers 0-255, as some numbers occur more than once (and some never occur).