Search

Untrustedlife

Your window into the mind of a questionably sane queer non-binary indie horror game dev

Category

Gaming

Probabilistic SImulations Are The Future

Probability-first simulation might be the future of simulation games

I recently saw a video where someone simulated an entire Minecraft world primarily through probability. Instead of literally running every creature’s movement and every tiny action in the background, the simulation determines what is likely to have happened based on the state of the world at any given timestep.

I realized that I already do the same thing in Pilgrimage.

(Which you can download here btw https://untrustedlife.com/pilgrimage/)

I’ve started thinking of this as a “probability-first simulation” or a “probabalistic simulation”: rather than coding every possible action as something that must physically occur step by step, you define the conditions and probability of an event, then allow individual stories to emerge from those rules. Each timestep runs the relevant probability checks to determine what happens within the world’s constraints. To simulate a golem moving, for example, I only need to know its current location, where it can move, and the probability of it leaving the rectangle representing its current location, just like in the video i linked above, that is essentially the basis of this concept, you know the constraints, the probabilities, and the chance of something happening each year. From that, you can determine whether it happened today, within the last hour, or at any point over any timestamp.

For example, imagine starvation has a 3% chance of affecting a historical figure each year. The game can convert that annual probability into the appropriate chance for however much time the current simulation step represents. It can then evaluate that chance for every important figure, regardless of whether the simulation is currently advancing by a day, a month, or several years.

The probability can be modified by the figure’s attributes, skills, environment, species, age, and current circumstances. If the starvation actually occurs, the figure can make defensive skill rolls to survive it. One creature might forage successfully, another might endure through sheer tenacity, and another might die.

Now apply that approach to combat, disease, reproduction, migration, political upheaval, territorial disputes, the construction of monuments, or somebody becoming a legendary historical figure. (Or MINECRAFT)

You can create incredibly atomized simulations where thousands of individuals have their own lives and histories without continuously simulating every footstep they take. You’re simulating the meaningful outcomes rather than every action leading to those outcomes. This is incredibly powerful.

Probabilisitic simulation itself obviously isn’t new. Simulations have used random rolls forever. What feels newer, or at least strangely underexplored, is treating probability as the actual foundation of a detailed world simulation rather than merely using it to add randomness to existing systems.

It also works beautifully with deferred generation in my experience. The game can leave something unresolved until it becomes relevant, then choose from the remaining possibilities based on everything the simulation has already established (As constraints). Once observed, that answer can become a permanent part of the world’s history.

The result is a world that can feel as though it has been running in absurd detail the entire time, even though much of that detail only needed to become concrete when it actually mattered and most of it was similified to nealry pure probability. Which is why its so fucking brilliant.

I really do think this is one of the keys to making more advanced simulation games. The answer to deep simulation is atcually to build systems that understand what could happen, how likely each possibility is, and deal with it when the simulation actually needs to choose an answer.

You don’t need to simulate everything. You need to simulate the possibility of everything, which is much, much less hard on a persons CPU. :3

Since that video now exists, im seriously considering making my own vidoe going through my own systems for a world simulation! Stay tuned! I just need to learn how to be good at editing videos.

Also they may have used AI to help make that sim btw….

I wasn’t going to mention that but the end screneshot of their screen made me sus as hell.

New Version of RLDR released! AFTER TWO YEARS!

There are far too many changes to list (Two years worth) , but i described many of the new features on this page! I also updated the road map on that page!

https://untrustedlife.com/project-random-world-development/

MainMenu

Immediate Download here via dropbox:

Download RLDR 0.1.7

Though there is also a download link in my downloads page, and on the linked page.

 

If you like the game consider donating, there are links for this all over my website

 

EDIT:

Apparently when i released it was missing two dlls, I fixed that so if it doesn’t run, just re-download my bad.

 

Cool Stories of playing the game from this release from various individuals:

feedback

 

 

The Carriage Of Lost Things

The Carriage Of Lost Things

 

From the Diary of an unknown adventurer…

I haven’t told anybody about this, as remembering it hurts my head…

Oh diary, oh why couldn’t  we have just walked away from this horrible thing, the memory of it leaves a hollow hole in the pit of my stomach and I cant get my companions face out of my head… his pale…empty… face.

My late companion and I were searching for the fabled “Golden Epel” for our dear lord Nelrissa The White. The lord ordered us to find this magic fruit by any means necessary. Apparently it was important but…I don’t know much about it. I just find things,  I don’t read about them or,  look into them. Anything besides their location anyway…. 

    As we were traveling through the Forest Of Puppeted Plants, there was a clearing…I think it was a clearing anyway… and as we entered it suddenly music started playing all around us….oh the music…such calming music…. coming from everywhere around us…there was a carriage….yes…a  carriage I think. This carriage was in the middle of the clearing with a window on it, at first the window looked empty but as we approached it a strange old lady appeared in the window and I think she said “Hello Young Adventurer” to me..or was it to my companion…not that it really matters anymore. But that music, that music got louder,  though it didn’t feel like it was coming from the carriage. It was just coming from everywhere…such strange music…such a strange thing to describe to anyone who hasn’t heard it…

She faced towards me and asked “Are you looking for something lost young man?” as she leaned closer to me in a strange manner, I of course answered yes and explained to her what the Golden Epel looked like  and that we needed it for our lord…I also backed away a little…  She simply nodded her head and said “So you find things…I find things too, lost things, are you looking for something lost?” I of course answered yes, for it was lost in this very forest. She then…I think, though my memory is getting fuzzy as we speak…proceeded to say again that she “Finds lost things.”, and was “The Keeper Of Lost Things”, this struck me as strange, for though I had seen magic before and strange witches in the woods… I had never seen or heard of any magic like this. So I did what any foolish adventurer would and I asked her “Can you find me the Golden Epel” …she smiled for a moment…such a strange smile…as though her teeth were amber…so yellow…so strange…ugh ….my head. And she pulled out a Golden Epel, “Is this what you seek young man?”….I knew what it looked like from sketches and this was it. I was sure of it! I answered “Yes!” excitedly and I asked her if I could have it.,.I think…and she just smiled again..and said “I will need something as payment…something that is valuable, powerful…something that can not be truly lost..only taken or bled out”…I think I was confused at this point…and my companion chimed in…”We have gold..so do you want gold?” The lady simply chuckled…such a horrible chuckle…”No young rogue…i have no need for money.  People lose money all the time, I want blood, I want your blood!” and as I watched I heard a horrible noise…and the music…the music started fading…as my companion fell to the ground…pale…pale and dead…. and the item we sought… laying where the carriage used to be, the carriage gone. The lady gone…my companion…gone. 

There is a blood stain on the diary here…

 

RLDR News

Hey guys its Michael, I wrote this story as a way to supplement my games lore, if you liked it, it would be awesome if you shared it I am by no means the greatest writer ever, but hopefully this story was at least entertaining and a bit dark, as it should be, magic is going well, I just finished most of the runes I needed for the first pass on the magic system, now I just need to come up with a way to and write the UI for players to apply these runes to items.

I think i’m going to do more of these supplemental lore stories if you folks like it. Let me know in the comments, follow me on twitter @Untrustedlife and keep playing roguelikes! (Hopefully eventually mine 😛 ).

Up ↑