236 points · by Impossible · 10y ago · 160 comments
The reason why we don't feel that way about the real world, is because the real world doesn't just have "remix procedural." You have to have some player-significant emergent effects coming out of the procedural generation. You see this in Minecraft. You even see it in the 1st generation of the original Elite game. The player's interest in your procedural world is directly dependent on how deep these emergent effects are. (So the emergent effects can be shallow or deep, with the corresponding amount of interest from the user.) (Which is why my procedural generated world primarily exists to support a procedural generated technology tree.)
p(tree_goes_here) > random()
And then randomly placing various tree models according to the RNG output, your random events produce a story. You should be able to look at a series of mountains and trace it back to tectonic events, then if one mountain has a patch of trees missing, you should be able to see that there were various events that either removed the trees (eg: some local civilization) or a Tunguska-like meteor strike cleared a path and made the soil infertile for growing more trees.If one did this, such a game would have value not only from the game itself but it might open up a whole subculture of archaeologists who go from planet to planet studying the evidence to piece together the events that led to the planet's present state.
Otherwise, you're right. Each world would end up being different much in the same way that listening to static noise is different each time you hear it.
That is, it's more challenging and rewarding to me to simulate tectonic movement than it is to generate terrain from random noise and tweak it until it feels okay. But the important question is, is the game noticeably more interesting either way? Do mountains affect gameplay in a way that gets more compelling if they're placed according to tectonic movement?
There are certainly games where the answer is yes, but there are a hell of a lot more where it isn't. And if your game is one of the latter, then complicated simulations are a dangerous trap - not only do you waste time, you also hinder yourself by making your game's content harder to tune (in that you can't just, say, make the mountains 30% higher if mountain height is determined by a complicated process).
IOW, they tried so hard to make the game realistic that the intended gameplay was no longer enforceable. Setting up all these intricate puzzles and writing the procedural generators was fun, but actually playing the game was immensely dull unless you went out of your way not to take the path of least resistance.
They ended up using some of the lessons learned in Prison Architect by making the "level design" the actual gameplay. There's actually a very interesting presentation of how Subversion was intended to be played versus how it would have actually been played somewhere on YouTube.
As a counterpoint, RimWorld is a game that's largely based on procedurally generated worlds with heavy inspiration from Dwarf Fortress. But the entire premise of the game is that you build a colony which the game tries to actively challenge to create an interesting story for you.
Similar to fiction: it's more dramatic and makes more sense than ordinary life.
A simulation is akin to a tech demo, which can be impressive, but usually isn't a game.
Switching gears, I'm interested in how you've done tectonics. I was thinking of doing it as a magma fluid simulation (very slow, only one timestep every few hundred frames) and using convection to move and rotate plates.... though it turns out, the cause of tectonic movement isn't nearly that well understood. My concern is that using a fixed direction/speed will eventually mess up the world. If tectonics really are governed by convection, movement must change at the end of that magma cycle. Maybe a bit over the top! How are you doing tectonics?
One (expensive) solution to the 30% mountain height problem is monte carlo: rerun the simulation til it fits the parameters. What's nice is that you don't distort the generation probabilities, apart from the explicit constraint. Of course, not plausible for very unlikely constraints, esp. combinations thereof!
If you just want the end-produce (not an ongoing, evolving world like mine), some people have used a more declarative approach. e.g. Instead of generating rivers by waterflow and erosion over a terrain, you can generate a hierarchy of rivers and tributaries first, work out the watersheds implied, then generate the terrain based on that constraint.
One of the supposed problems with No Man's Sky is planetary isotropy (uniformity at a global scale, variation only on a local level). They're all single biomes and once you've seen the local area, you might as well find another planet. But you're right: I don't know that people would be any more impressed with planets if they were more 'realistic' in regards to geomorphology.
For me the canonical example of this is Nethack, which is full of such things - monsters that are slightly more dangerous during a (real-life) full moon, and so on. One can argue that NH is a special case, with its rich tradition of players reading the source code as they play, but in general I think it's an anti-pattern for game developers to beware.
I think the key comes down to basics: Games are media. One of the key attributes of great media is a focus on the audience experience. So if you're going to spend a lot of effort on procedural generation, then this procedural generation had better be "paying rent" commensurate to the resources taken up by it.
If your game is about tactical improvisation and combat, then the procedural generation should be directly contributing to enhancing those experiences; therefore tweak the statistical properties of procedurally generated tactically useful things to enhance the user experience. Likewise if your game is about survival, or managing resources, or what have you.
If your game is about viewing scenery, then good luck to you. People will get "remix boredom." Furthermore, if you've sunk all this energy into producing "interesting" to view scenery, then people are let down by your tactics and combat -- well go figure!
Several types of plants would grow, and randomly catch on fire and burn half the planet to the ground, and so on. I had a primitive water cycle, too; water flows to low points or gets absorbed by plants or evaporates. When plants burn, they release their moisture into the air, which rains back down on the ground. It's interesting how small changes to the cellular automata logic can cause major changes in emergent behavior.
That was a very fun experience and I could imagine it being the basis of a game. And being a finite world (unlike Minecraft's practically infinite expanse) it's computationally tractable to simulate a complete ecosystem that's constantly changing; even the parts you haven't explored yet.
I'm going to do something like this, but for one specific class of enemies: The dire "it's time to do your best to survive" encounter. Specifically, I'm going to see if I can't use genetic algorithms to evolve "kill the crap out of the player" combat groups. You can't write a fitness function for fun or player involvement. But you can write a fitness function for "kill the crap out of a player" -- even equalized for level. So the trick is to hand-balance the timing/opportunities for a player to encounter the dire situation.
I'm going to let players post-mortem the genetic algorithm tuned AIs and ship/item configurations. So instead of archaeologists, there would be hackers and xenobiologists.
Getting destroyed encourages you to try new tactics to counter the superior designs and build more efficiently.
A sentiment captured perfectly by: https://www.penny-arcade.com/comic/2016/08/17/infinite-and-i...
EDIT: That sounds snide but I'm actually being sincere. I'm planning on including items in my game from a procedurally generated tech tree with location-dependent item availability.
No, I still don't. Games to me are about interesting choices. I don't care about rare "loot", or about finding yet another key to open this lock, or about improving some score by 0.35 angstroms. I care about "do I castle kingside or queenside? Because if I castle queenside then my rook will be opposite his queen and blah blah blah but if I castle kingside then I won't have to worry about a quick a5 strike with the potential to undermine my b pawn." These choices (with chess only as an example) are interesting because they have serious consequences that can be reasonably foreseen but are not totally obvious.
It's sometimes the case that the space between reasonably foreseeable and totally obvious is a very fine narrow one, but then your game might be lacking in depth. Adding procedural puke special snowflake enemies doesn't add any more depth than "rare Blatovian power generators" does, unless the tradeoff over using a "Snargglemoofian power generator" is that your ship can no longer turn left or something.
A lot of games basically have useless 2%-5% modifiers. Nobody cares about the difference between 0.025 and 0.027 inertial penalty. It just wastes the time of the player checking their loot. In the real world a weapon or armor is either effective or useless. Nobody takes down tanks with a glock.
I would recommend you to have several types of items even if that means the items have fixed statistics instead of having one item type with flexible statistics.
If you ware a primitive man from long ago when those different kinds of trees were unique resources to craft the specific things that your existence depends on then you'd notice the difference between them and you'd care.
All those components you mentioned could appear right near the users spawn point, or they could all be impossibly hard to gather, due to procedural randomness.
I can see how you could experience remix boredom in Cloudberry Kingdom. However, every so often it produces novel gameplay that actually feels new. And it's so good at tuning the difficulty to gradually escalate that it manages to achieve flow quite effectively.
One review damned NMS for lack of player-significant effects, but appreciated the prettiness of some of the results.
There's a property I enjoy, of a kind of global dependence (though mediated locally), instead of isolated randomness. e.g. instead of trees appearing randomly, they are dependent on rain, sunlight, latitude, altitude, soil coarseness and nutrients. And they are dependent on other trees.
This is surely includes under "emergent", but that term seems unnecessarily broad to me.
Rainfall in turn depends on local and wider topography (mountains, evaporation water sources), and wind patterns... which in turn depend on local topography and latitude etc.
Even a river's path is affected by its watershed (and rainfull etc), and all the preceding terrain, especially steepness (higher velocity carries more sediment, which abrasively erodes even faster) and soil finer-grained erodes more than coarser). River change course from time to time due to erosion.
It seems iteration is the only way to capture these dependent effects, but its computationally very expensive. NMS already has very long planet-generation times ("travelling"), so it's probably not feasible for that style of game.
Earth is a computer after all.
Elite is really primitive compared to today's games, but it had a huge galaxy to explore (even if all the systems were essentially the same 1-star-and-planet), then eventually you find out there are 8 such galaxies. It was fun to find good trade routes between the worlds, risk going to a slightly more lawless planet to beef up your credits or ranking. The emergence here would be the fact that the economic type of a planet was dependent on its seed value, and together with other nearby generated planets created "trade routes". These routes were not coded into the game, they emerge as a property of the way the procedural generation works out.
I think the problem with making so much procedural is that it misses the point that the game should be fun to play. What's the game-play difference in having random trees or dependent on sunlight and rain? In the end, they are just a bunch of trees :-P
Because when things "make sense," players pick up on it and use it to their advantage (and feel very clever). Given a procgen survival game where you are in a desert, trees might only grow near water, so if you are thirsty, you might look for vegetation.
Coming from a non-game developer this may be completely out of reason, but it occurs to me, what if you could determine the fit of creatures and evolve them in accordance with their environment? Perhaps not a lot of generations would be required to get a plausible, not completely random-looking scenario. Granted, we might still be talking about thousands of iterations, and so this would be too computationally demanding for a game design such as No Man’s Sky. But perhaps for a pre-computed (vast) world it would be viable.
NMS, otoh forces you to go from planet to nearly identical planet.
Players are already constructing crazy structures in the game. Why not implement that in the game for everyone?
Minecraft has a very young demographic, and griefing is a common pastime among bored kids hungry for attention and relevance.
Everything offensive can be flagged, and if it's a legit flag, then that item or location will become "infected" by one of the most hated, but most profitable to kill, enemies in the game. But my plan is to rig the spawning of player installations, such that players will only be able to do this by their own creations. So young people making penises in my game? Inevitable and co-opted to be a mechanic!
aka no man's sky.
Surely AI could solve that problem...oh wait, there is no such thing yet.
But the mention of the diplodocus is just one example of how much of a clusterfuck NMS is: The diplodocus and other beautiful dinosaurs were part of the E3 demo that was presented to fans as NMS's procedural code in action. And, as the author notes, it doesn't appear to be something that actually was procedurally generated, but was hand-designed to make the E3 demo footage look good (and, to Hello Games's shame, they used this footage as the official advertising for NMS, even after release).
Here's one of the canonical parodies of the shady shit Hello Games pulled: https://www.youtube.com/watch?v=RvAwB7ogkik
edit: grammar fixes
I'm a fan of the space sim / massive universe concept and pretty much ignored most of the NMS hype, so I had no expectations going in. What I found when I did go in was an immediately recognizable game that I'd describe as Elite + Noctis with modern graphics. Which is fine, really. Particularly, anyone that loved playing Noctis would love playing NMS.
The problem is that price tag and the hype though. The game just doesn't have the staying power. I'd feel a bit better about the price tag if the studio communicated what they're doing more. I don't mind paying that price for a game in and of itself - games are expensive to make and I kinda hate the race-to-the-bottom that gives us things like freemium. However at this point, NMS feels abandoned by the studio and that's disappointing.
Jim Sterling did two excellent videos exploring the gaming hype culture and what everyone's roles were in this mess (the studio, Sony, the games press at large and the gaming public). They're worth watching in order for anyone that hasn't seen them:
Sky Hype (The Jimquisition): https://www.youtube.com/watch?v=l_HEI8ZfDbM&t=847s
A Video Discussing Whether Or Not Hello Games Lied About No Man's Sky (The Jimquisition): https://www.youtube.com/watch?v=w2qKAX_QaoI&t=72s
I just recently got a gift card and bought myself the PS4. Got No Man's Sky for an OK price, and had absolutely no expectations since I haven't followed game news whatsoever.
The result is I really love NMS. Its pace is perfect for me (I usually hate FPS, or first person games in general). It's about exploration and seeing new things and getting that sense of freedom to travel wherever you want in a massive space. I think they do that very well.
Yet, it's apparently a "clusterfuck". So weird.
To be critical, there is mostly two things that is somewhat of an annoyance, and that is too limited inventory space, making inventory management a too large part of the game, and the apparent lack of variety in buildings and structures. I say apparent, as I haven't explored that much of it yet, but until now all spacestations have had the same entrance interior, which is a bit boring. So yes, some things are repetitive.
But, still a good game. If anyone has skipped it due to negative reviews based on hype, please take another look and make up your own mind. Maybe your expectations will be more appropriate now.
If anyone has skipped this game because of negative reviews, be grateful that you didn't waste your time or money. Its a terrible game after a few hours. The dev team absolutely lied about it.
Oh and as a side note, before the first patch, you could use your "afterburners" to fly quickly over a planet from place to place. But then Hello Games shut that down so you have to either take your time or fly out into space and then fly back down. Its a time sink.
"Never once the same. Never twice very much different."
The Diablo 2 / 3 franchises do procedural dungeon generation, as does Spelunky. They have written rather thoughtful articles on some of their techniques.
http://tinysubversions.com/spelunkyGen/
(Hmmm, can't find anything concrete about Diablo. I'll keep looking).
So I suppose NMS would work better if most planets have either no life, only sea life, or only really tiny life. That makes the occasional encounter with large animals a lot more memorable.
Also, using procedural as a "force multiplier" for content developers is really interesting: Letting them make snippets or "mad libs" and have algorithms mix and match and adjust under constraints that make the content make sense (i.e. buildings where the rooms have purpose and their interconnections make sense).
I know this has been explored in some games, particularly rogue-likes like Spelunky and Rogue Legacy.
What about shipping a trained neural network with your game taught with human-made levels to create even more levels? How neat would that be?
I just hope procedural generation doesn't get a bad name and is explored even more.
A third layer would allow players to rate cool creatures so that they show up in others' games. No Man's Sky already has the "scan creatures and upload discoveries" mechanic; with a rating system the good ones would have an increased chance of showing up in someone else's game.
Procedural generation obviously has legs, but developers need to move beyond the 'infinite monkeys at infinite typewriters' stage, and artificially ensure player enjoyment is less at the mercy of randomness.
[0]http://hci.stanford.edu/publications/2012/Talton12LDPBG.pdf
This is a big deal. E.g. Minecraft have underground mine complexes that can be a lot of fun to explore, but they don't make any structural sense. The thing is it'd be quite easy to design them in a way that makes much more sense:
Record how human players dig tunnels, which generally tends to involve either starting with a cave system, and then divert in where there is ore, or starting to dig at a downwards angle until you're at a depth where ores are likely, and then start branching it out in search, and then expanding. Add some collapse shafts etc.. Creating rules from that should not be too hard.
I think you could improve a lot of these algorithms by modelling them based on how a human would plan or pick placement instead of relying so much on pure chance.
E.g. if generating a village, don't randomly dump buildings. Consider that you want a water source, and various purposes (mining, farming, trading) that has would depend on the surroundings, and that roads must connect locations, and that certain types of buildings will be in certain locations in relation to each other. I think a lot could be done by creating rules that aim to simulate what would make a village grow, and iterate it.
E.g. place a few simulated NPCs and "fast forward" through exploring the surroundings. Have one try farming. Have one try mining. The miner hits a cave with lots of ore? Have it lead to trade, and generate a mining complex, and place a blacksmith. The farmer find large fertile areas? Have the farms expand, and population boom. And so on. Run a simplified model through a suitable number of iterations to place various features, and you'll get villages that make a lot more sense than when Minecraft e.g. place a village in the middle of a desert with no apparent purpose (to get villages in the desert that makes sense: make the generator place a few trees around lakes, have it place soil under the trees; have it place villages around those; lead roads to these oases; place houses near the water and road)
I know it's not the main topic of discussion, but sometimes I find it overwhelming and frustrating to analyze things that I have full access to the codebase, and it's really quite humbling to see this level of success and dedication.
Really impressive work.
You have your vertex buffer data, your index buffer data telling you how vertices are connected, and a list of commands telling you where in the index buffer to start/stop.
It might take you a bit, but after a while you notice the telltale signs of model data (e.g. 0x3F800000 being 1.0 in floating point), and you can usually make a first pass at it pretty quickly.
It's definitely a lot of fun if you haven't done it.
And a small team means far fewer testers so that exacerbates the problem.
I guess balance in single player is about difficulty? Or are there other aspects of single player games that are considered balance?
A good example of a well balanced single player game is tetris. All the pieces are useful. It may be easier to complete a line with the straight piece, and in a tight pinch a less skilled player might hold out for it while placing down other pieces willy nilly, but if every piece was as easy to use as the straight piece then the game would have less variety and tension! At certain points in the game you may not want a straight piece because of the way you have laid down your previous pieces, the game is dynamic because the optimal strategy is changing all the time because of how you played the game, this adds even more strategy because you can also influence how the optimal strategy will change.
A good example of a poorly balanced single player game is... well in my opinion most single player games are poorly balanced. Either the game is so easy that it really doesn't require you to strategize at all or the game is easily cheesed by using one overpowered technique. This is especially evident in many RPG's, although they try to hide it with a huge skill tree (of which almost invariably a large number of skills are useless and a couple are ridiculously overpowered) or by having you learn a whole bunch of enemy weaknesses and resistances (IMO this is cheating, the challenge isn't dynamic as these stats are unchanging and typically only serve as an overwrought color matching exercise). Pokemon is a good example of this, although you have hundreds of pokemon to collect and train and it seems a variety of enemy types should force you to have a varied party yourself, the easiest way to beat the game is to overlevel your starting pokemon by giving them all the experience points and grab one or two other pokemon along the way to cover your weaknesses in the end stages of the game and load up with necessary non-combat moves.
In a sense balance is always about difficulty. But it's also about not ruining all the depth your game offers. If one of the easiest paths becomes objectively the best to achieve a goal, there's no reason for the player to explore or use any of the other paths.
This appears in all kinds of systems: if there's one class that's just the best, your class system is unbalanced and most players will barely play the other classes. If there's this "one simple trick" to earn lots of money (e.g. mine that one very common ore, like in No Man's Sky), an interesting economy becomes a boring timesink due to being unbalanced. If one of the early weapons is the best, everyone will use it and all the time you spent designing other weapons was just a waste.
No Man's Sky was supposed to be multiplayer, originally. There can also be a notion of balance in single player games. For example, in a 4X game or an RTS in single player mode, you can still have issues of balance with regards to the relative effectiveness of ECM versus weapons. Missiles vs. beams. Fighters vs. small units.
The result invariably looks about as exciting as one of those mix-and-match flipbooks: https://s-media-cache-ak0.pinimg.com/236x/de/a7/7d/dea77dbbf...
One of my first Dwarf Fortress runs had me embarking to a cold area in the middle of winter. The lake had frozen over and that's where my caravan landed. As I was still learning the basics of the game, I forgot to make beds for my dwarves. They fell asleep on the iced-over lake, and while they were sleeping, spring came, the lake thawed, and seven very surprised dwarves suddenly found themselves struggling to swim. I think one or two died and I laughed my ass off and started over.
In No Man's Sky, this one time, I went to a planet and saw some cool stuff and mined some minerals and made some stuff... oh wait, that was every planet, every time. Once I found a neat spaceship! Then a few miles later I found another one. Then I realized that the distribution of procedurally-generated content meant that there was a random, abandoned spaceship every few dozen miles. On every planet. That's around the time when I stopped playing No Man's Sky.
Obviously the two games are extremely dissimilar in many ways, but this just goes to show how "shallow" the procedural elements of NMS end up being. Yes, the technical details of the underlying systems are super cool to explore from a programming standpoint... but design-wise, the procedural systems don't really lend themselves to interesting or emergent gameplay. There's like three different AI routines for fauna, or something, the different planetary hazards all amount to different bars with different flavor text that affect gameplay in the exact same ways, etc. etc.
The bottom line is, if your procedurally-generated world has enough interacting systems that leads to interesting and emergent gameplay, you'll have your players recounting stories of interesting, unique things that happened to them for years to come. If your procedural generation systems just generate different visuals for the exact same gameplay, it will get very old, very fast.
Not every game with procedural generation has to be Dwarf Fortress, of course... but if you're going to hang your game's proverbial hat more or less entirely on its procedural generation systems and sell it for sixty bucks a copy, you should probably make sure that all that work you put into your procedural generation code is going to do more to your game than generate different skins of paint on top of the same mundane gameplay.
Right on. I'll give a concrete example from one of the most immersive games I recall, Ultima VII. Now, this may or may not have been intended as a possibility by the developers, but I think it's important to consider this could have been emergent gameplay non the less. Why is this important? Because it should serve to inspire the pursuit of future emergent gameplay of course!
So here it is -> The Bank Robbery.
The Setup:
Lord British will resurrect dead people you bring to him(you can put dead people in your sack!). NPC's have daily schedules(go to work, the pub, home to sleep, etc), and resurrected NPC's will find their way back into their schedule. The bank/mint in Britain has a banker name Cynthia. She has the keys to all the locked doors and chests that have tones of gold bars and coins.. There are powerful guards in lobby.
What you do:
Grab powder kegs from the castle and bring them to the lobby. Ignite the kegs to kill the guards and Cynthia. Loot her corpse to get the keys, then place the corps in a party mates bag. Now start making your way through the mint with the keys while locking the doors behind you. More guards will arrive and be blocked by you locking the doors. Loot every room and exit the back of the mint. Flee town until the heat is off. Return and take Cynthia to Lord British asking him to resurrect her. Cynthia will go home and return to her routine. Go back to the mint the next day and Cynthia will be at work! Sell her all the gold bars and nuggets you stole for coin. Profit :D
Systems interacting in unforeseen ways is totally the way to go with this stuff. Ultima VII has given me a lot of inspiration for creating a multi-resolution whole-world AI system that can make more of these sorts of stories possible. One day perhaps.
I hope there will be games for future generations of computers, maybe quantum computers, where world will be generated on the molecular level. Maybe very small world, but it will be interesting just to increase time speed and bring some action there - just watching of micro-world evolution will be interesting.
Why not let the lesson be that space content is pretty boring, or that resource management is boring. Just because they did it poorly doesn't mean that the type of content they made was the problem.
Procedurally generated content has been around for a long time and has been done waaaaay better than NMS did it. There are plenty of rougelikes that have interesting procedurally generated content.
As stated in the article, if they doubled the size of the art team, they could have had hundreds of times more models from which to generate creatures.
The possibilities could be near-endless but the execution in NMS was poor because clearly not enough effort was spent on building up the assets. The author believes that it would be madness to create such a full-featured engine and then abandon it so soon. I'm inclined to agree, until HG or ASA say otherwise, and then folks will probably start knocking out the NMS clones.
Could you please provide an example of the game where generated content is interesting enough to explore? Where it's not just decoration.
It seems like the emergent story in dwarf fortress continually draws people in (you might find this a stretch, but I'd argue that the game was explicitly made to procedurally generate a story).
It sounds like Ultima Ratio Regum is aiming to have deep procedural content.
Buddy, you need to play some Dungeon Crawl - Stone Soup.