e35bef No.28478
How do i go about making a game like dwarf fortress where the world and NPC's generates by itself?
____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28479
Step 1: complete at least a two year course in computer science or equivalent
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28480
>>28478
I just made NPCs and animals into dictionaries, and had them created (the dictionaries) when certain conditions are met
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28482
>>28478
Have you tried learning to code? Because it doesn't sound like it.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28498
>>28478
My approach would be something like this:
>create main loop that iterates through a list of things in a given area of the world
>if the object has an update() function, it is called
>if that object tries to attack another object, it checks for a 'health' variable
>if the other object has 'health' then that object's 'health' is reduced
>all other interactions are based on whether or not the target has the required functions/vars
This way, I don't have to manually create lists of things that are killable, things that can be picked up, things that need to do something every frame, etc. etc.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28499
>>28498
So component pattern.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28501
>>28479
I was going to argue with you but then I realized you were correct. The kind of work that OP wants to think about really does require second year CS knowledge.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28511
>>28501
>Be OP
>Spend 1.8 years learning Computer Science
>Drumpfocalypse (i.e. WW3) occurs and none of the knowledge goes to any use
Wow, it really makes you think
I actually like Trump, but all the people sperging about Drumpf on /tv/ make me predict what they would write before they write it, no bully
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28514
>>28478
First this >>28479: as far as I know, Toady One has a PhD in Math, but no programming experience. As a programmer, let me tell you that programming knowledge will not help you here: autism-level knowledge of math will. What you really need to know is how fractal geometry applies to the real world: at least, that's what I think I'm missing and why my attempts at randomly generated content look like a child with finger paint.
>>28511
>Drumpfocalypse
I voted for Johnson and I still want to stab everyone who talks about this. Look Liberals, he WON; he LEGITIMATELY WON, and THANKS TO OBAMA, he can never gain the title of "The President Who Made Foreign Children Afraid Of Blue Skies And Sunshine".
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28515
>>28514
> no programming experience
Let me clarify: no professional programming experience. He claims to have begun programming in middle school, but, to the best of my knowledge, he has never been employed (or trained) to do so. As someone with a degree in Computer Science, let me tell you that it doesn't mean a whole lot. The purpose of a degree is to make the job of Human Resources easier: the degree holder has put effort into showing their competence in the field. However, people are better at things which they do constantly, so I tend to think more highly of people employed at X rather than having a hobby of X. And while Toady One is paid for his hobby (he makes something like $100K in donations a year), it is still just a hobby. As far as I know, he doesn't use source control, and probably couldn't build DF without Visual Studio.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28516
>>28514
If you want procgen, just read up on (perlin) noise, midpoint displacement, etc. You need to know about fractals, but it's really not all that hard.
It's just about writing patterns most likely to result in something desirable and having an algorithm to determine whether some result is garbage, in which case you chug it.
>>28515
He stated multiple times how he can't be bothered to learn about source control and some people actually rewrote the rendering code for him, which was a huge bottleneck. They sped it up considerably, but he said he doesn't understand the code anymore.
So yes, he really isn't a good programmer and DF is supposed to be hell to work on, but he just has this autistic dedication.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28650
>>28501
It really doesn't. Tarn doesn't have Computer Science background and the guy writing URR only has like psychology background. What you need is dedication and patience.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28656
>>28650
That's like saying you don't need to be educated as a carpenter to build a house. Technically you don't, anyone can lean four walls against each other and put sheet metal over it. But if you want something reliable and doesn't take ten times longer to build than it should, then learning the theory and tools available to programmers is going to save time in the long run.
Also the first two years of CS are not that difficult for anyone already computer literate. The free online tutorials that teach game programming cover most of the same stuff and can be plowed through in a few months.
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28665
>>28478
you need to study procedural generation
there are many different well documented ways of generating stuff like terrain, but for more specific stuff like items and NPCs you might have to make your own algorithms
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.
e35bef No.28666
>>28514
>>28511
>people unirocally saying "drumpf" and voting on aleppoman
NOPE
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.