Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Pref Strings need Fluff.  (Read 1230 times)

Qloos

  • Bay Watcher
    • View Profile
Pref Strings need Fluff.
« on: May 16, 2009, 11:36:11 pm »

Sort of a game.  But definitely modding.
So here's where it gets posted.

I have something of a pet peeve with DF at the moment.  It seems all Dwarfs likes donkeys for the same reason, their stubbornness. 

So I would like to turn this:
Quote
[PREFSTRING:stubborness]

Into this:
Quote
[PREFSTRING:stubborness]
[PREFSTRING:taste]
[PREFSTRING:angry outbursts]
[PREFSTRING:eeehh hoonks]

But I have a few questions.  Is there a limit to the number of prefrence strings a creature can have?  And can I modify it so all the dwarfs don't end up loving domestic animals and instead broaden their range of animals they can like.

The game will involve thinking up preference strings for different animals.
« Last Edit: May 16, 2009, 11:37:46 pm by Qloos »
Logged

RavingManiac

  • Bay Watcher
    • View Profile
Re: Pref Strings need Fluff.
« Reply #1 on: May 17, 2009, 03:49:18 am »

I'm quite sure creatures can have multiple prefstrings.
Logged
Thief:"Quiet kitty, Qui-"
Cat:"THIEF! Protect the hoard from the skulking filth!"
The resulting party killed 20 dwarves, crippled 2 more and the remaining 9 managed to get along and have a nice party.

Qloos

  • Bay Watcher
    • View Profile
Re: Pref Strings need Fluff.
« Reply #2 on: May 17, 2009, 01:02:19 pm »

Yeah, but I was wondering if they can have 100+ different preference strings with no harmful side effects.
Logged

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Pref Strings need Fluff.
« Reply #3 on: May 17, 2009, 01:04:31 pm »

I suppose it could increase load times. Personally I've never been able to think of enough worthy additional prefstrings to worry but then I might lack imagination.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: Pref Strings need Fluff.
« Reply #4 on: May 17, 2009, 01:29:16 pm »

If I recall, preference strings are stored in a vector.  Vectors do not have a size limitation.  DF may limit the number of preferences in other ways, but it is unlikely.

Try it and find out.  Really, that's the answer to a lot of modding stuff.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Pref Strings need Fluff.
« Reply #5 on: May 17, 2009, 06:16:31 pm »

If I remember correctly, there was a mod a while back that added more prefstrings to each of the creatures, I think it was part of The Small Things mod. That might help you a little if you can dig it up. As for a limit, I have never encountered one.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Pref Strings need Fluff.
« Reply #6 on: May 18, 2009, 12:15:01 pm »

Yes, that was a part of the Small Things. It had a lot of stuff. And I don't think there's a limit except increasing load times and RAM requirements. Well, maybe an Integer-sized limit to the total number of tags per entry.
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Zaranthan

  • Bay Watcher
  • Plump Helmet Smelter
    • View Profile
Re: Pref Strings need Fluff.
« Reply #7 on: May 18, 2009, 01:00:16 pm »

IF you can come up with 65,536 different things to like about purring maggots, I'll buy you a cookie.
Logged
Quote from: Howard, Nerf This, by Scott D. Ferguson
Villains sleep with hookers, heroes sleep with destiny.

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Pref Strings need Fluff.
« Reply #8 on: May 18, 2009, 01:23:42 pm »

I said Integer-sized. It may depend on the medium, but at least in C++, the Int32 data type goes up to 4.3 billion.
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Zaranthan

  • Bay Watcher
  • Plump Helmet Smelter
    • View Profile
Re: Pref Strings need Fluff.
« Reply #9 on: May 18, 2009, 01:30:33 pm »

Fie on you and your longs. Back in my day, we had eight measly bits, and we loved every single one of them. 32 bits? How do you even remember their NAMES?
Logged
Quote from: Howard, Nerf This, by Scott D. Ferguson
Villains sleep with hookers, heroes sleep with destiny.

Volfram

  • Bay Watcher
  • hate you all.
    • View Profile
Re: Pref Strings need Fluff.
« Reply #10 on: May 19, 2009, 09:24:38 am »

Fie on you and your longs. Back in my day, we had eight measly bits, and we loved every single one of them. 32 bits? How do you even remember their NAMES?
You don't.  You just choose your 8 favorites. ;)
Logged
Andir and Roxorius "should" die.

Yes, actually, I am trying to get myself banned.  I wish Toady would quit working on this worthless piece of junk and go back to teaching math.

Zaranthan

  • Bay Watcher
  • Plump Helmet Smelter
    • View Profile
Re: Pref Strings need Fluff.
« Reply #11 on: May 19, 2009, 12:13:42 pm »

Fie on you and your longs. Back in my day, we had eight measly bits, and we loved every single one of them. 32 bits? How do you even remember their NAMES?
You don't.  You just choose your 8 favorites. ;)
Wha-

F... Fa... FAVORITES??!?

Zaranthan cancels drink: throwing tantrum.
Logged
Quote from: Howard, Nerf This, by Scott D. Ferguson
Villains sleep with hookers, heroes sleep with destiny.

jaked122

  • Bay Watcher
  • [PREFSTRING:Lurker tendancies]
    • View Profile
Re: Pref Strings need Fluff.
« Reply #12 on: May 19, 2009, 06:46:26 pm »

IF you can come up with 65,536 different things to like about purring maggots, I'll buy you a cookie.
... I'll come up with 100.

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Pref Strings need Fluff.
« Reply #13 on: May 20, 2009, 02:24:36 am »

You probably could turn this into a game.  Just give a topic, say donkeys, and a reasonable time span, and start asking for prefstring ideas, to be included in the mod.  I'm sure you'd get a good mix of funny and serious suggestions.  If you are up for it:

[PREFSTRING:tousled manes]
[PREFSTRING:impassive faces]
[PREFSTRING:noble ears]
Logged
EMPATHY - being able to feel other peoples' stuff.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Pref Strings need Fluff.
« Reply #14 on: May 20, 2009, 08:30:44 am »

I just don't want to be the person who is checking for duplicates once you hit over 100,000. ;D
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.
Pages: [1] 2