Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: jaccarmac on May 02, 2013, 12:58:45 pm

Title: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 02, 2013, 12:58:45 pm
Dwarf Fortress is a great game. There's an amazing amount of depth, plenty of room for ridiculous situations, and more choices than most people know what to do with. All those choices can be a little confusing, so people come up with standard ways to begin a game: embark away from aquifers, make sure you have trees, and don't forget to (f)ind metals and flux stone! In Adventure, it seems to boil down to: a point in Swimming, a point in Reading, and some more points in combat skills. Of course, there are always exceptions to the rule: people like challenging themselves with an aquifer, zombies, or some evil mists. You can go even further and mod some stuff to up the challenge. But what if you didn't have to wrack your own brain for challenging possibilities? What if you could get the computer to do it for you?

!!FUN!! Randomization is the goal of Drunken-Bear. Start up the program, give it a few bits of information about your world, configure it if you want to, and it will spit out a random embark and/or embark profile and/or adventurer stats for you to play with. There's no telling what you might get! If you want, Drunken-Bear can even roll up a new world for you to start a new saga in, with random characteristics and minimal rejections.

Right now, Drunken-Bear is in the not-even-started-yet stage. I'm still in the process of throwing around ideas and getting a computer I can use to work on it. There is a github page at https://github.com/jaccarmac/drunken-bear (https://github.com/jaccarmac/drunken-bear), though!

As time goes on, I will begin to populate the github page and this post with updates, features, and !!FUN!! randomness (of course :-) Until then (and even after that), I'm open to ideas, so leave a reply before you go!
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Deon on May 02, 2013, 01:03:34 pm
It would be fun to incorporate those scripts which create random plants, creatures etc in it later. It may become a really amazing project. You never know what awaits you in the next game!
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Trapezohedron on May 02, 2013, 01:04:09 pm
It would be fun to incorporate those scripts which create random plants, creatures etc in it later. It may become a really amazing project. You never know what awaits you in the next game!

Meta-Roguelike. No two games are the same. :P

Finally, if you could code in graphics through the use of repositories and identifiers, that'd be wonderful, if needlessly complex.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 02, 2013, 01:05:42 pm
It would be fun to incorporate those scripts which create random plants, creatures etc in it later. It may become a really amazing project. You never know what awaits you in the next game!

An excellent idea... Personally, I don't like modding the game (there's plenty there already!), but for those interested, packaging the two utilities together would make a lot of sense.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 02, 2013, 01:06:32 pm
Finally, if you could code in graphics through the use of repositories and identifiers, that'd be wonderful, if needlessly complex.

What do you mean?
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Trapezohedron on May 02, 2013, 01:08:24 pm
Finally, if you could code in graphics through the use of repositories and identifiers, that'd be wonderful, if needlessly complex.

What do you mean?

I don't know if it's possible, but would it be possible to make "randomly generated graphics" in a sense?

Like it'd apply "bird" graphics to avians and such?
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 02, 2013, 01:12:00 pm
I don't know if it's possible, but would it be possible to make "randomly generated graphics" in a sense?

Like it'd apply "bird" graphics to avians and such?

Yes... ?

I'll be doing it in Python (3), since I know Python best and the focus is not on fancy graphics or OS interaction, but doing simple calculation and writing to files. However, I'm pretty sure I could hack up something to (just thinking off the top of my head here) take a generic image and add color to different parts of it. I know it's possible to create an image by combining various parts, but on the small (20x20 or so) scale of DF graphics, I don't see that being feasible.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Trapezohedron on May 02, 2013, 01:14:07 pm
YES. Now, I shall wait, although really, graphics are just a bonus.

/ptw
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Mr S on May 02, 2013, 02:23:11 pm
Or pehaps randomly selecting from a set of packaged tilesets.

Today I start an advanturer who can neither read nor swim, but can crack a whip to put the lights out in a world with no HFS, many megabeasts, 19 Goblin civs, in an Age of Myth, made entirely of tiny islands and 80% glacier in Ironhand's graphic pack.

Yesterday it shot me a Fortress, starting with 5 lye makers, 1 fisherdwarf and a shearer, 1 male horse, 1 male ox, 1 rooster, 1 male hunting dog, 11 cats, cave wheat seeds, dwarven cheese, goat's milk, NO picks, an iron anvil, 6 buckets and enough sewer brew to drown an otter in a Very Large world, with 1050 years of history, at least 8 of every race's civilizations, MAX caves, SMB, MB, 17 of all the goodie creatures, necro towers through the yowee zowee on a single mega-continent with active volcanos and 3 partial oceans in Dumb Ass of the Year graphics.

Super awesome.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: mastahcheese on May 03, 2013, 12:31:26 am
PTW
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Demdemeh on May 03, 2013, 01:13:38 pm
PTW
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: mkmr on May 04, 2013, 05:13:17 am
Would it be wrong to think this topic was about literal Drunk Bears?

Also,

PTW
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: mastahcheese on May 04, 2013, 04:23:51 pm
Would it be wrong to think this topic was about literal !!Drunk Bears!!?
Fixed that for you.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: rooth on May 08, 2013, 01:37:03 pm
how exactly would I be able to run this?
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 08, 2013, 02:24:44 pm
How exactly would I be able to run this?

It'll come packaged as a Python 3 script. Assuming you have Python, you'll just double-click the script, or enter a command of the form ./script.py or python script.py into a terminal. A GUI will ask you what exactly you want, and the program will then try to write some text to some files. Random worldgens would go in your worldgen file, and you'd just open up DF, scroll down to Advanced World Gen, select the profile, and go. For Adventure Mode, since there's no way to automate the process, you would follow instructions from a window. For Dwarf Mode, you would follow instructions to select your site, then select the randomly generated embark profile.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: rooth on May 08, 2013, 03:01:49 pm
Ah I see that's where I went wrong; I don't have python. going to see if i can get over the hurdle now, thanks for the quick reply!
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 08, 2013, 03:25:36 pm
Ah I see that's where I went wrong; I don't have python. going to see if i can get over the hurdle now, thanks for the quick reply!

Well, what are you trying to run? 'Cause there's nothing, and I mean nothing, written for Drunken-Bear just yet...
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: rooth on May 08, 2013, 06:06:42 pm
Or pehaps randomly selecting from a set of packaged tilesets.

Today I start an advanturer who can neither read nor swim, but can crack a whip to put the lights out in a world with no HFS, many megabeasts, 19 Goblin civs, in an Age of Myth, made entirely of tiny islands and 80% glacier in Ironhand's graphic pack.

Yesterday it shot me a Fortress, starting with 5 lye makers, 1 fisherdwarf and a shearer, 1 male horse, 1 male ox, 1 rooster, 1 male hunting dog, 11 cats, cave wheat seeds, dwarven cheese, goat's milk, NO picks, an iron anvil, 6 buckets and enough sewer brew to drown an otter in a Very Large world, with 1050 years of history, at least 8 of every race's civilizations, MAX caves, SMB, MB, 17 of all the goodie creatures, necro towers through the yowee zowee on a single mega-continent with active volcanos and 3 partial oceans in Dumb Ass of the Year graphics.

Super awesome.

ah,this got me all excited/confused!
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: jaccarmac on May 08, 2013, 07:21:42 pm
Sorry about that! It's all speculation at this point...
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Wilde Card on May 09, 2013, 02:18:54 am
I'm looking forward to seeing this project in motion :D
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: Mr S on May 09, 2013, 09:21:45 am
I suppose I should have formatted the preceding post to make it more clear that it was speculative, a quote from some future date.  But, then again, I'm also not so fun of continuing quotations over multiple paragraphs.
Title: Re: Drunken-Bear: Add Loads of !!FUN!!
Post by: rooth on May 10, 2013, 08:26:43 am
Haha, well atleast you have people amped up now!